Class AssetSchemaAttributeRelationship

  • All Implemented Interfaces:
    Serializable

    public class AssetSchemaAttributeRelationship
    extends AssetPropertyBase
    AssetSchemaAttributeRelationship defines a relationship between 2 SchemaAttributes. It is used in network type schemas such as a graph and for foreign keys in a relational database schema.
    See Also:
    Serialized Form
    • Constructor Detail

      • AssetSchemaAttributeRelationship

        public AssetSchemaAttributeRelationship​(SchemaAttributeRelationship schemaAttributeRelationshipBean)
        Bean constructor
        Parameters:
        schemaAttributeRelationshipBean - bean containing all of the properties
      • AssetSchemaAttributeRelationship

        public AssetSchemaAttributeRelationship​(AssetDescriptor parentAsset,
                                                SchemaAttributeRelationship schemaAttributeRelationship)
        Bean constructor with parent asset
        Parameters:
        parentAsset - descriptor of parent asset
        schemaAttributeRelationship - bean containing all of the properties
      • AssetSchemaAttributeRelationship

        public AssetSchemaAttributeRelationship​(AssetDescriptor parentAsset,
                                                AssetSchemaAttributeRelationship template)
        Copy/clone constructor makes a copy of the supplied object.
        Parameters:
        parentAsset - descriptor of parent asset
        template - template object to copy
    • Method Detail

      • getSchemaAttributeRelationshipBean

        protected SchemaAttributeRelationship getSchemaAttributeRelationshipBean()
        Return the bean with all of the properties
        Returns:
        schema link bean
      • getLinkType

        public String getLinkType()
        Return the type of the relationship.
        Returns:
        String link type
      • getLinkProperties

        public Map<String,​Object> getLinkProperties()
        Return the list of properties associated with this schema link.
        Returns:
        map of properties
      • getLinkedAttributeGUID

        public String getLinkedAttributeGUID()
        Return the GUID of the schema attribute that this link connects together.
        Returns:
        unique identifier
      • getLinkedAttributeName

        public String getLinkedAttributeName()
        Return the name of the schema type that this link connects together.
        Returns:
        unique name
      • toString

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

        public boolean equals​(Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        Overrides:
        equals in class AssetPropertyBase
        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 AssetPropertyBase
        Returns:
        int hash code