Class Referenceable
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
- Direct Known Subclasses:
Connection
,ConnectorType
,Endpoint
Many open metadata entities are referenceable. It means that they have a qualified name and additional
properties. In addition, the Referenceable class adds support for the parent asset, guid, url and type
for the entity through extending ElementBase.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
extendedProperties
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorReferenceable
(Referenceable template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return a copy of the additional properties.Returns the stored description property for the element.Returns the stored display name property for the element.Returns the stored qualified name property for the metadata entity.Set up the version identifier of the resource.int
hashCode()
Return hash code based on properties.void
setAdditionalProperties
(Map<String, String> additionalProperties) Set up additional properties.void
setDescription
(String description) Set up description of the element.void
setDisplayName
(String displayName) Set up the display name for UIs and reports.void
setQualifiedName
(String qualifiedName) Set up the fully qualified name.void
setVersionIdentifier
(String versionIdentifier) Set up the version identifier of the resource.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
getExtendedProperties, getGUID, setExtendedProperties, setGUID
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
getHeaderVersion, setHeaderVersion
-
Constructor Details
-
Referenceable
public Referenceable()Default constructor -
Referenceable
Copy/clone constructor. Retrieves the values from the supplied template- Parameters:
template
- element to copy
-
-
Method Details
-
setQualifiedName
Set up the fully qualified name.- Parameters:
qualifiedName
- String name
-
getQualifiedName
Returns the stored qualified name property for the metadata entity. If no qualified name is available then the empty string is returned.- Returns:
- qualifiedName
-
getDisplayName
Returns the stored display name property for the element. Null means that no displayName is available.- Returns:
- displayName
-
setDisplayName
Set up the display name for UIs and reports.- Parameters:
displayName
- String name
-
setDescription
Set up description of the element.- Parameters:
description
- String
-
getDescription
Returns the stored description property for the element. If no description is provided then null is returned.- Returns:
- description
-
getVersionIdentifier
Set up the version identifier of the resource.- Returns:
- string version name
-
setVersionIdentifier
Set up the version identifier of the resource.- Parameters:
versionIdentifier
- string version name
-
setAdditionalProperties
Set up additional properties.- Parameters:
additionalProperties
- Additional properties object
-
getAdditionalProperties
Return a copy of the additional properties. Null means no additional properties are available.- Returns:
- AdditionalProperties
-
toString
Standard toString method.- Overrides:
toString
in classElementBase
- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classElementBase
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCode
in classElementBase
- Returns:
- int
-