public final class PropertyBindingIndex extends java.lang.Object implements KnowledgeIndex
| Modifier and Type | Method and Description |
|---|---|
boolean |
doesMemberShapeRequireProperty(MemberShape memberShape)
Returns true if member is required to have an associated property mapping.
|
StructureShape |
getInputPropertiesShape(OperationShape operation)
Resolves and returns the input shape of an operation that contains the
top-level resource bound properties.
|
StructureShape |
getOutputPropertiesShape(OperationShape operation)
Resolves and returns the output shape of an operation that contains the
top-level resource bound properties.
|
java.util.Optional<java.lang.String> |
getPropertyName(ShapeId memberShapeId)
Gets the property name for a given member shape.
|
boolean |
isMemberShapeProperty(MemberShape memberShape)
Returns true if a member shape positively maps to a property.
|
static PropertyBindingIndex |
of(Model model) |
public static PropertyBindingIndex of(Model model)
public java.util.Optional<java.lang.String> getPropertyName(ShapeId memberShapeId)
memberShapeId - the ShapeId of the member shape to get the property name for.public boolean isMemberShapeProperty(MemberShape memberShape)
getPropertyName(ShapeId) will return a non-empty Optional if this method
returns true.memberShape - the member shape to checkpublic StructureShape getOutputPropertiesShape(OperationShape operation)
operation - operation to retrieve output properties shape for.public StructureShape getInputPropertiesShape(OperationShape operation)
operation - operation to retrieve output properties shape forpublic boolean doesMemberShapeRequireProperty(MemberShape memberShape)
memberShape - the member shape to check