Interface RelationType

All Superinterfaces:
Entity, Resource, Serializable

public interface RelationType extends Resource
Represents the type of a relation.
  • Method Details

    • getPublicId

      String getPublicId()
      Returns the public id of the relation type.
      Returns:
      the public id
    • getSourceType

      NamedResourceReference getSourceType()
      Returns the source type for this relation type. The reference can only have a resourceDiscriminator of value 'AssetType', 'ComplexRelationType' or 'Trait'.
      Returns:
      the source type for this relation type
    • getTargetType

      NamedResourceReference getTargetType()
      Returns the target type of this relation type.
      Returns:
      the target type of this relation type
    • getRole

      String getRole()
      Returns the name of the role that source plays in the relation.
      Returns:
      the name of the role that source plays in the relation
    • getCoRole

      String getCoRole()
      Returns the name of the role that target plays in the relation.
      Returns:
      the name of the role that target plays in the relation
    • getDescription

      String getDescription()
      Returns the description of the relation type.
      Returns:
      the description of the relation type