Class SchemaAttributeRelationshipProperties

  • All Implemented Interfaces:
    java.io.Serializable

    public class SchemaAttributeRelationshipProperties
    extends java.lang.Object
    implements java.io.Serializable
    SchemaAttributeRelationshipProperties defines a relationship between 2 SchemaAttributes. It is used in network type schemas such as a graph or to show relationships such as foreign key relationships in relational schemas.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      java.lang.String getLinkedAttributeGUID()
      Return the GUID of the schema attribute that this link connects together.
      java.lang.String getLinkedAttributeName()
      Return the name of this link
      java.lang.String getLinkGUID()
      Return the identifier for the schema link.
      java.util.Map<java.lang.String,​java.lang.Object> getLinkProperties()
      Return the properties associated with this schema link.
      java.lang.String getLinkType()
      Return the type of the link - this is related to the type of the schema it is a part of.
      int hashCode()
      Create a hash code for this element type.
      void setLinkedAttributeGUID​(java.lang.String linkedAttributeGUID)
      Set up the GUIDs of the schema attributes that this link connects together.
      void setLinkedAttributeName​(java.lang.String linkedAttributeName)
      Set up the name of this link.
      void setLinkGUID​(java.lang.String linkGUID)
      Set up the identifier for the schema link.
      void setLinkProperties​(java.util.Map<java.lang.String,​java.lang.Object> linkProperties)
      Set up the properties associated with this schema link.
      void setLinkType​(java.lang.String linkType)
      Set up the type of the link - this is related to the type of the schema it is a part of.
      java.lang.String toString()
      Standard toString method.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SchemaAttributeRelationshipProperties

        public SchemaAttributeRelationshipProperties()
        Default constructor
      • SchemaAttributeRelationshipProperties

        public SchemaAttributeRelationshipProperties​(SchemaAttributeRelationshipProperties template)
        Copy/clone constructor makes a copy of the supplied object.
        Parameters:
        template - template object to copy
    • Method Detail

      • getLinkGUID

        public java.lang.String getLinkGUID()
        Return the identifier for the schema link.
        Returns:
        String guid
      • setLinkGUID

        public void setLinkGUID​(java.lang.String linkGUID)
        Set up the identifier for the schema link.
        Parameters:
        linkGUID - String guid
      • getLinkType

        public java.lang.String getLinkType()
        Return the type of the link - this is related to the type of the schema it is a part of.
        Returns:
        String link type
      • setLinkType

        public void setLinkType​(java.lang.String linkType)
        Set up the type of the link - this is related to the type of the schema it is a part of.
        Parameters:
        linkType - String link type
      • getLinkedAttributeName

        public java.lang.String getLinkedAttributeName()
        Return the name of this link
        Returns:
        String name
      • setLinkedAttributeName

        public void setLinkedAttributeName​(java.lang.String linkedAttributeName)
        Set up the name of this link.
        Parameters:
        linkedAttributeName - String name
      • getLinkProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getLinkProperties()
        Return the properties associated with this schema link.
        Returns:
        property map
      • setLinkProperties

        public void setLinkProperties​(java.util.Map<java.lang.String,​java.lang.Object> linkProperties)
        Set up the properties associated with this schema link.
        Parameters:
        linkProperties - property map
      • getLinkedAttributeGUID

        public java.lang.String getLinkedAttributeGUID()
        Return the GUID of the schema attribute that this link connects together.
        Returns:
        GUID for the attribute at the other end of the link.
      • setLinkedAttributeGUID

        public void setLinkedAttributeGUID​(java.lang.String linkedAttributeGUID)
        Set up the GUIDs of the schema attributes that this link connects together.
        Parameters:
        linkedAttributeGUID - GUIDs for either end of the link - returned as a list.
      • toString

        public java.lang.String toString()
        Standard toString method.
        Overrides:
        toString in class java.lang.Object
        Returns:
        print out of variables in a JSON-style
      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison
      • hashCode

        public int hashCode()
        Create a hash code for this element type.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        int hash code