Class LicenseElement

  • All Implemented Interfaces:
    java.io.Serializable

    public class LicenseElement
    extends java.lang.Object
    implements java.io.Serializable
    LicenseElement contains the properties and header for a license for an element. It includes the details of the specific element's license and details of the license type.
    See Also:
    Serialized Form
    • Constructor Detail

      • LicenseElement

        public LicenseElement()
        Default constructor
      • LicenseElement

        public LicenseElement​(LicenseElement template)
        Copy/clone constructor
        Parameters:
        template - object to copy
    • Method Detail

      • getLicenseHeader

        public ElementHeader getLicenseHeader()
        Return the element header associated with the relationship.
        Returns:
        element header object
      • setLicenseHeader

        public void setLicenseHeader​(ElementHeader licenseHeader)
        Set up the element header associated with the relationship.
        Parameters:
        licenseHeader - element header object
      • getLicenseProperties

        public RelationshipProperties getLicenseProperties()
        Return details of the relationship
        Returns:
        relationship properties
      • setLicenseProperties

        public void setLicenseProperties​(RelationshipProperties licenseProperties)
        Set up relationship properties
        Parameters:
        licenseProperties - relationship properties
      • getLicenseTypeHeader

        public ElementHeader getLicenseTypeHeader()
        Return the element header associated with end 2 of the relationship (license type).
        Returns:
        element stub object
      • setLicenseTypeHeader

        public void setLicenseTypeHeader​(ElementHeader licenseTypeHeader)
        Set up the element header associated with end 2 of the relationship (license type).
        Parameters:
        licenseTypeHeader - element stub object
      • getLicenseTypeProperties

        public LicenseProperties getLicenseTypeProperties()
        Return the properties of the license type.
        Returns:
        properties
      • setLicenseTypeProperties

        public void setLicenseTypeProperties​(LicenseProperties licenseTypeProperties)
        Set up the properties of the license type.
        Parameters:
        licenseTypeProperties - properties
      • toString

        public java.lang.String toString()
        JSON-style toString
        Overrides:
        toString in class java.lang.Object
        Returns:
        return string containing the property names and values
      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        Return comparison result based on the content of the properties.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        objectToCompare - test object
        Returns:
        result of comparison
      • hashCode

        public int hashCode()
        Return hash code for this object
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        int hash code