Class LabelledRelationshipResource<Owner extends IridaThing,​Child extends IridaThing>

  • Type Parameters:
    Owner - The object type owning the relationship
    Child - The owned object type in the relationship

    public class LabelledRelationshipResource<Owner extends IridaThing,​Child extends IridaThing>
    extends IridaRepresentationModel
    An implementation of a resource that only has a label and an identifier.
    • Constructor Detail

      • LabelledRelationshipResource

        public LabelledRelationshipResource​(java.lang.String label,
                                            Join<Owner,​Child> r)
    • Method Detail

      • getLabel

        public java.lang.String getLabel()
      • setLabel

        public void setLabel​(java.lang.String label)
      • getIdentifier

        public java.lang.String getIdentifier()
        We don't want to expose the id for the relationship, but rather the id for the object of the relationship.
        Returns:
        the id for the object of the relationship.