Class LicenseElement
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.LicenseElement
-
- All Implemented Interfaces:
Serializable
public class LicenseElement extends Object implements 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 Summary
Constructors Constructor Description LicenseElement()Default constructorLicenseElement(LicenseElement template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Return comparison result based on the content of the properties.ElementHeadergetLicenseHeader()Return the element header associated with the relationship.RelationshipPropertiesgetLicenseProperties()Return details of the relationshipElementHeadergetLicenseTypeHeader()Return the element header associated with end 2 of the relationship (license type).LicensePropertiesgetLicenseTypeProperties()Return the properties of the license type.inthashCode()Return hash code for this objectvoidsetLicenseHeader(ElementHeader licenseHeader)Set up the element header associated with the relationship.voidsetLicenseProperties(RelationshipProperties licenseProperties)Set up relationship propertiesvoidsetLicenseTypeHeader(ElementHeader licenseTypeHeader)Set up the element header associated with end 2 of the relationship (license type).voidsetLicenseTypeProperties(LicenseProperties licenseTypeProperties)Set up the properties of the license type.StringtoString()JSON-style toString
-
-
-
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 String toString()
JSON-style toString
-
equals
public boolean equals(Object objectToCompare)
Return comparison result based on the content of the properties.
-
-