Class Relationship

  • All Implemented Interfaces:
    java.io.Serializable, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.OmasObject

    public abstract class Relationship
    extends java.lang.Object
    implements java.io.Serializable, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.OmasObject
    A relationship between 2 subject area OMAS Nodes. It is contains named attributes and has 2 relationship ends.
    See Also:
    Serialized Form
    • Method Detail

      • initialise

        protected void initialise()
      • setRelationshipType

        public void setRelationshipType​(RelationshipType relationshipType)
      • getSystemAttributes

        public org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.SystemAttributes getSystemAttributes()
      • setSystemAttributes

        public void setSystemAttributes​(org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.SystemAttributes systemAttributes)
      • getEffectiveFromTime

        public java.lang.Long getEffectiveFromTime()
        Return the date/time that this relationship should start to be used (null means it can be used from creationTime).
        Returns:
        Date the relationship becomes effective.
      • setEffectiveFromTime

        public void setEffectiveFromTime​(java.lang.Long effectiveFromTime)
      • getEffectiveToTime

        public java.lang.Long getEffectiveToTime()
        Return the date/time that this relationship should no longer be used.
        Returns:
        Date the relationship stops being effective.
      • setEffectiveToTime

        public void setEffectiveToTime​(java.lang.Long effectiveToTime)
      • getGuid

        public java.lang.String getGuid()
      • setGuid

        public void setGuid​(java.lang.String guid)
      • getName

        public java.lang.String getName()
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.String> getAdditionalProperties()
        Get the extra attributes - ones that are in addition to the standard types.
        Returns:
        extra attributes
      • setAdditionalProperties

        public void setAdditionalProperties​(java.util.Map<java.lang.String,​java.lang.String> additionalProperties)
      • getEnd1

        public RelationshipEnd getEnd1()
        Get relationship end 1. The child relationship sets the appropriate values for its relationship end 1
        Returns:
        RelationshipEnd relationship end 1
      • getEnd2

        public RelationshipEnd getEnd2()
        Get relationship end 1. The child relationship sets the appropriate values for its relationship end 1
        Returns:
        RelationshipEnd relationship end 1
      • isReadOnly

        public boolean isReadOnly()
        The relationship is readOnly
        Returns:
        whether read only
      • setReadOnly

        public void setReadOnly​(boolean readOnly)
        set whether the relationship is readOnly
        Parameters:
        readOnly - readonly flag
      • toString

        public java.lang.StringBuilder toString​(java.lang.StringBuilder sb)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object