java.lang.Object
org.odpi.openmetadata.accessservices.assetowner.metadataelements.LicenseElement

public class LicenseElement extends Object
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.
  • Constructor Details

    • LicenseElement

      public LicenseElement()
      Default constructor
    • LicenseElement

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

    • 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 String toString()
      JSON-style toString
      Overrides:
      toString in class Object
      Returns:
      return string containing the property names and values
    • equals

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

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