Enum Class RelationshipType
- All Implemented Interfaces:
Serializable,Comparable<RelationshipType>,Constable
Defines the relationship types between neighboring shapes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.A collection operation relationship exists between a resource and the operations bound to the resource in the "collectionOperations" property.Relationships that exist between a resource and the create lifecycle operation.Relationships that exist between a resource and the delete lifecycle operation.Relationships that exist onenumshapes to theirmember shapes.Relationships that exist onoperationshapes.Relationships that exist between amemberand the shapes that are referenced by its identifiers property.Relationships that exist onoperationshapes.Deprecated.Relationships that exist onintEnumshapes to theirmember shapes.Relationships that exist between a resource and the list lifecycle operation.Relationships that exist onlistshapes to theirmember shapes.Relationships that exist onmapshapes.Relationships that exist onmapshapes.Relationships exist onmembershapes.Relationships exist onmembershapes.Relationship that exists between a structure or union and a mixin applied to the shape.An operation relationship exists between a service and the operations bound to the service in the "operations" property, and between a resource and the operations bound to the resource in the "operations", "collectionOperations", and lifecycle properties.Relationships that exist onoperationshapes.Relationships that exist between amemberand the shapes that are referenced by its properties property.Relationships that exist between a resource and the put lifecycle operation.Relationships that exist between a resource and the get lifecycle operation.A resource relationship exists between a service or resource and the resources bound through the "resources" property.Deprecated.Relationships that exist onstructureshapes.Relationships that exist between a shape and traits bound to the shape.Relationships that exist onunionshapes.Relationships that exist between a resource and the update lifecycle operation. -
Method Summary
Modifier and TypeMethodDescriptionGets the direction of the relationship.Gets the token that is used inSelectorexpressions when referring to the relationship or an emptyOptionalif this relationship is not used directly in a selector.booleanReturns true if relationship connects a resource to a collection operation.booleanReturns true if relationship connects a resource to an instance operation.booleanChecks if the given relationship connects a container shape to a member.booleanChecks if the binding is to an operation (create|read|update|delete|put|list|operation|collectionOperation).static RelationshipTypeReturns the enum constant of this class with the specified name.static RelationshipType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RESOURCE
A resource relationship exists between a service or resource and the resources bound through the "resources" property. -
OPERATION
An operation relationship exists between a service and the operations bound to the service in the "operations" property, and between a resource and the operations bound to the resource in the "operations", "collectionOperations", and lifecycle properties. -
COLLECTION_OPERATION
A collection operation relationship exists between a resource and the operations bound to the resource in the "collectionOperations" property. -
INSTANCE_OPERATION
Deprecated. -
BOUND
Deprecated. -
PUT
Relationships that exist between a resource and the put lifecycle operation. -
CREATE
Relationships that exist between a resource and the create lifecycle operation. -
READ
Relationships that exist between a resource and the get lifecycle operation. -
UPDATE
Relationships that exist between a resource and the update lifecycle operation. -
DELETE
Relationships that exist between a resource and the delete lifecycle operation. -
LIST
Relationships that exist between a resource and the list lifecycle operation. -
IDENTIFIER
Relationships that exist between amemberand the shapes that are referenced by its identifiers property. -
PROPERTY
Relationships that exist between amemberand the shapes that are referenced by its properties property. -
MEMBER_CONTAINER
Relationships exist onmembershapes. The subject of the relationship is the member shape, and the neighbor is the aggregate shape that contains the member. -
MEMBER_TARGET
Relationships exist onmembershapes. The subject of the relationship is the member shape, and the neighbor is the shape that the member targets. -
INPUT
-
OUTPUT
-
ERROR
-
ENUM_MEMBER
Relationships that exist onenumshapes to theirmember shapes. -
INT_ENUM_MEMBER
Relationships that exist onintEnumshapes to theirmember shapes. -
LIST_MEMBER
Relationships that exist onlistshapes to theirmember shapes. -
SET_MEMBER
Deprecated.Relationships that exist onsetshapes to theirmember shapes. -
MAP_KEY
-
MAP_VALUE
-
STRUCTURE_MEMBER
-
UNION_MEMBER
-
TRAIT
Relationships that exist between a shape and traits bound to the shape. They reference shapes marked with theTraitDefinitiontrait.This kind of relationship is not returned by default from a
NeighborProvider. You must explicitly wrap aNeighborProviderwithNeighborProvider.withTraitRelationships(Model, NeighborProvider)in order to yield trait relationships. -
MIXIN
Relationship that exists between a structure or union and a mixin applied to the shape.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getSelectorLabel
Gets the token that is used inSelectorexpressions when referring to the relationship or an emptyOptionalif this relationship is not used directly in a selector.- Returns:
- Returns the optionally present selector token for this relationship.
-
getDirection
Gets the direction of the relationship.A
RelationshipDirection.DIRECTEDdirection is formed from a shape that defines a reference to another shape (for example, when a resource defines operations or resources it contains).A
RelationshipDirection.INVERTEDrelationship is a relationship from a shape to a shape that defines a relationship to it. The target of such a relationship doesn't define the relationship, but is the target of the relationship.- Returns:
- Returns the direction of the relationship.
-
isMemberBinding
public boolean isMemberBinding()Checks if the given relationship connects a container shape to a member.- Returns:
- Returns true if a member.
-
isOperationBinding
public boolean isOperationBinding()Checks if the binding is to an operation (create|read|update|delete|put|list|operation|collectionOperation).- Returns:
- Returns true if the binding is for any kind of operation binding.
-
isInstanceOperationBinding
public boolean isInstanceOperationBinding()Returns true if relationship connects a resource to an instance operation.- Returns:
- True if an instance operation.
-
isCollectionOperationBinding
public boolean isCollectionOperationBinding()Returns true if relationship connects a resource to a collection operation.- Returns:
- True if a collection operation.
-