Class ExternalIdentifier
- 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
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.ExternalIdentifier
-
- All Implemented Interfaces:
Serializable
public class ExternalIdentifier extends Referenceable
ExternalIdentifier stores information about an identifier for the asset that is used in an external system. This is used for correlating information about the asset across different systems.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringdescriptionprotected Stringidentifierprotected KeyPatternkeyPatternprotected Referenceablescopeprotected StringscopeDescriptionprotected Stringsourceprotected Stringusage-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
additionalProperties, qualifiedName
-
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 ExternalIdentifier()Default constructorExternalIdentifier(ExternalIdentifier templateExternalIdentifier)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.StringgetDescription()Return the description of the external identifier.StringgetIdentifier()Return the external identifier for this asset.KeyPatterngetKeyPattern()Return the key pattern that is used with this external identifier.ReferenceablegetScope()Return the scope of this external identifier.StringgetScopeDescription()Return the text description of the scope for this external identifier.StringgetSource()Return details of the source system where this external identifier comes from.StringgetUsage()Return a description of how, where and when this external identifier is used.inthashCode()Hash of propertiesvoidsetDescription(String description)Set up the description of the external identifier.voidsetIdentifier(String identifier)Set up the external identifier for this asset.voidsetKeyPattern(KeyPattern keyPattern)Set up the key pattern that is used with this external identifier.voidsetScope(Referenceable scope)Set up the scope of this external identifier.voidsetScopeDescription(String scopeDescription)Set up the text description of the scope for this external identifier.voidsetSource(String source)Set up details of the source system where this external identifier comes from.voidsetUsage(String usage)Set up a description of how, where and when this external identifier is used.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
getAdditionalProperties, getQualifiedName, setAdditionalProperties, setQualifiedName
-
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
-
-
-
-
Field Detail
-
identifier
protected String identifier
-
description
protected String description
-
usage
protected String usage
-
source
protected String source
-
keyPattern
protected KeyPattern keyPattern
-
scope
protected Referenceable scope
-
scopeDescription
protected String scopeDescription
-
-
Constructor Detail
-
ExternalIdentifier
public ExternalIdentifier()
Default constructor
-
ExternalIdentifier
public ExternalIdentifier(ExternalIdentifier templateExternalIdentifier)
Copy/clone constructor.- Parameters:
templateExternalIdentifier- element to copy
-
-
Method Detail
-
getIdentifier
public String getIdentifier()
Return the external identifier for this asset.- Returns:
- String identifier
-
setIdentifier
public void setIdentifier(String identifier)
Set up the external identifier for this asset.- Parameters:
identifier- String identifier
-
getDescription
public String getDescription()
Return the description of the external identifier.- Returns:
- String text
-
setDescription
public void setDescription(String description)
Set up the description of the external identifier.- Parameters:
description- String text
-
getUsage
public String getUsage()
Return a description of how, where and when this external identifier is used.- Returns:
- String usage description
-
setUsage
public void setUsage(String usage)
Set up a description of how, where and when this external identifier is used.- Parameters:
usage- String usage description
-
getSource
public String getSource()
Return details of the source system where this external identifier comes from.- Returns:
- String server identifier
-
setSource
public void setSource(String source)
Set up details of the source system where this external identifier comes from.- Parameters:
source- String server identifier
-
getKeyPattern
public KeyPattern getKeyPattern()
Return the key pattern that is used with this external identifier.- Returns:
- KeyPattern enum
-
setKeyPattern
public void setKeyPattern(KeyPattern keyPattern)
Set up the key pattern that is used with this external identifier.- Parameters:
keyPattern- KeyPattern enum
-
getScope
public Referenceable getScope()
Return the scope of this external identifier. This depends on the key pattern. It may be a server definition, a reference data set or glossary term.- Returns:
- Referenceable scope
-
setScope
public void setScope(Referenceable scope)
Set up the scope of this external identifier. This depends on the key pattern. It may be a server definition, a reference data set or glossary term.- Parameters:
scope- Referenceable object defining the scope of this external identifier.
-
getScopeDescription
public String getScopeDescription()
Return the text description of the scope for this external identifier.- Returns:
- String scope description
-
setScopeDescription
public void setScopeDescription(String scopeDescription)
Set up the text description of the scope for this external identifier.- Parameters:
scopeDescription- String scope description
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classReferenceable- 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 classReferenceable- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Hash of properties- Overrides:
hashCodein classReferenceable- Returns:
- int
-
-