Class LicenseElement
java.lang.Object
org.odpi.openmetadata.accessservices.assetowner.metadataelements.LicenseElement
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 Summary
ConstructorDescriptionDefault constructorLicenseElement
(LicenseElement template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return comparison result based on the content of the properties.Return the element header associated with the relationship.Return details of the relationshipReturn the element header associated with end 2 of the relationship (license type).Return the properties of the license type.int
hashCode()
Return hash code for this objectvoid
setLicenseHeader
(ElementHeader licenseHeader) Set up the element header associated with the relationship.void
setLicenseProperties
(RelationshipProperties licenseProperties) Set up relationship propertiesvoid
setLicenseTypeHeader
(ElementHeader licenseTypeHeader) Set up the element header associated with end 2 of the relationship (license type).void
setLicenseTypeProperties
(LicenseProperties licenseTypeProperties) Set up the properties of the license type.toString()
JSON-style toString
-
Constructor Details
-
LicenseElement
public LicenseElement()Default constructor -
LicenseElement
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getLicenseHeader
Return the element header associated with the relationship.- Returns:
- element header object
-
setLicenseHeader
Set up the element header associated with the relationship.- Parameters:
licenseHeader
- element header object
-
getLicenseProperties
Return details of the relationship- Returns:
- relationship properties
-
setLicenseProperties
Set up relationship properties- Parameters:
licenseProperties
- relationship properties
-
getLicenseTypeHeader
Return the element header associated with end 2 of the relationship (license type).- Returns:
- element stub object
-
setLicenseTypeHeader
Set up the element header associated with end 2 of the relationship (license type).- Parameters:
licenseTypeHeader
- element stub object
-
getLicenseTypeProperties
Return the properties of the license type.- Returns:
- properties
-
setLicenseTypeProperties
Set up the properties of the license type.- Parameters:
licenseTypeProperties
- properties
-
toString
JSON-style toString -
equals
Return comparison result based on the content of the properties. -
hashCode
public int hashCode()Return hash code for this object
-