Class Referenceable
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementControlHeader
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Certification,Comment,Connection,ConnectorType,Endpoint,ExternalIdentifier,ExternalReference,GovernedReferenceable,License,Location,Note,NoteLogHeader,SoftwareCapability,ValidValue
public class Referenceable extends ElementBase
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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,String>additionalPropertiesprotected StringqualifiedName-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
extendedProperties, url
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
-
Constructor Summary
Constructors Constructor Description Referenceable()Default constructorReferenceable(Referenceable template)Copy/clone constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.Map<String,String>getAdditionalProperties()Return a copy of the additional properties.StringgetQualifiedName()Returns the stored qualified name property for the metadata entity.inthashCode()Return hash code based on properties.voidsetAdditionalProperties(Map<String,String> additionalProperties)Set up additional properties.voidsetQualifiedName(String qualifiedName)Set up the fully qualified name.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
getExtendedProperties, getURL, setExtendedProperties, setURL
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
getClassifications, getGUID, setClassifications, setGUID
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementControlHeader
getOrigin, getStatus, getType, getVersions, setOrigin, setStatus, setType, setVersions
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
getHeaderVersion, setHeaderVersion
-
-
-
-
Constructor Detail
-
Referenceable
public Referenceable()
Default constructor
-
Referenceable
public Referenceable(Referenceable template)
Copy/clone constructor. Retrieves the values from the supplied template- Parameters:
template- element to copy
-
-
Method Detail
-
setQualifiedName
public void setQualifiedName(String qualifiedName)
Set up the fully qualified name.- Parameters:
qualifiedName- String name
-
getQualifiedName
public String 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
-
setAdditionalProperties
public void setAdditionalProperties(Map<String,String> additionalProperties)
Set up additional properties.- Parameters:
additionalProperties- Additional properties object
-
getAdditionalProperties
public Map<String,String> getAdditionalProperties()
Return a copy of the additional properties. Null means no additional properties are available.- Returns:
- AdditionalProperties
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classElementBase- Returns:
- print out of variables in a JSON-style
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classElementBase- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Return hash code based on properties.- Overrides:
hashCodein classElementBase- Returns:
- int
-
-