Class ExternalReferenceLinkProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.externalreferences.ExternalReferenceLinkProperties
ExternalReferenceLinkProperties provides a structure for the properties that link an external reference to an object.
-
Constructor Summary
ConstructorDescriptionDefault constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.Return the description of the external reference with respect to the linked object.Return the identifier that this reference is to be known as with respect to the linked object.getPages()
Return the page range for the reference.int
hashCode()
Return hash code for this objectvoid
setLinkDescription
(String linkDescription) Set up the description of the external reference with respect to the linked object.void
Set up the identifier that this reference is to be known as with respect to the linked object.void
Set up the page range for the reference.toString()
JSON-style toString.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties
getEffectiveFrom, getEffectiveTo, getExtendedProperties, setEffectiveFrom, setEffectiveTo, setExtendedProperties
-
Constructor Details
-
ExternalReferenceLinkProperties
public ExternalReferenceLinkProperties()Default constructor -
ExternalReferenceLinkProperties
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getLinkId
Return the identifier that this reference is to be known as with respect to the linked object.- Returns:
- String identifier
-
setLinkId
Set up the identifier that this reference is to be known as with respect to the linked object.- Parameters:
linkId
- String identifier
-
getLinkDescription
Return the description of the external reference with respect to the linked object.- Returns:
- string
-
setLinkDescription
Set up the description of the external reference with respect to the linked object.- Parameters:
linkDescription
- string
-
getPages
Return the page range for the reference.- Returns:
- string
-
setPages
Set up the page range for the reference.- Parameters:
pages
- string
-
toString
JSON-style toString.- Overrides:
toString
in classRelationshipProperties
- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equals
in classRelationshipProperties
- Parameters:
objectToCompare
- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCode
in classRelationshipProperties
- Returns:
- int hash code
-