Class AssetExternalIdentifier
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyElementBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetElementHeader
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetReferenceable
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetExternalIdentifier
-
- All Implemented Interfaces:
Serializable
public class AssetExternalIdentifier extends AssetReferenceable
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 ExternalIdentifierexternalIdentifierBean-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetReferenceable
referenceableBean
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
parentAsset
-
-
Constructor Summary
Constructors Constructor Description AssetExternalIdentifier(AssetDescriptor parentAsset, AssetExternalIdentifier templateExternalIdentifier)Copy/clone constructor.AssetExternalIdentifier(AssetDescriptor parentAsset, ExternalIdentifier externalIdentifierBean)Bean constructor with parent assetAssetExternalIdentifier(ExternalIdentifier externalIdentifierBean)Bean 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.protected ExternalIdentifiergetExternalIdentifierBean()Return the bean with all of the properties - used in the cloning process.StringgetIdentifier()Return the external identifier for this asset.KeyPatterngetKeyPattern()Return the key pattern that is used with this external identifier.AssetReferenceablegetScope()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 details of how, where and when this external identifier is used.inthashCode()Hash of propertiesStringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetReferenceable
getAdditionalProperties, getMeanings, getQualifiedName, getReferenceableBean, getSecurityTags, setBean
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetElementHeader
getAssetClassifications, getElementHeaderBean, getExtendedProperties, getGUID, getType, getURL, setBean
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
getParentAsset, getParentAssetName, getParentAssetTypeName
-
-
-
-
Field Detail
-
externalIdentifierBean
protected ExternalIdentifier externalIdentifierBean
-
-
Constructor Detail
-
AssetExternalIdentifier
public AssetExternalIdentifier(ExternalIdentifier externalIdentifierBean)
Bean constructor- Parameters:
externalIdentifierBean- bean containing all of the properties
-
AssetExternalIdentifier
public AssetExternalIdentifier(AssetDescriptor parentAsset, ExternalIdentifier externalIdentifierBean)
Bean constructor with parent asset- Parameters:
parentAsset- descriptor for parent assetexternalIdentifierBean- bean containing all of the properties
-
AssetExternalIdentifier
public AssetExternalIdentifier(AssetDescriptor parentAsset, AssetExternalIdentifier templateExternalIdentifier)
Copy/clone constructor.- Parameters:
parentAsset- descriptor for parent assettemplateExternalIdentifier- element to copy
-
-
Method Detail
-
getExternalIdentifierBean
protected ExternalIdentifier getExternalIdentifierBean()
Return the bean with all of the properties - used in the cloning process.- Returns:
- ExternalIdentifier bean
-
getIdentifier
public String getIdentifier()
Return the external identifier for this asset.- Returns:
- String identifier
-
getDescription
public String getDescription()
Return the description of the external identifier.- Returns:
- String description
-
getUsage
public String getUsage()
Return details of how, where and when this external identifier is used.- Returns:
- String usage
-
getSource
public String getSource()
Return details of the source system where this external identifier comes from.- Returns:
- String server
-
getKeyPattern
public KeyPattern getKeyPattern()
Return the key pattern that is used with this external identifier.- Returns:
- KeyPattern enum
-
getScope
public AssetReferenceable 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
-
getScopeDescription
public String getScopeDescription()
Return the text description of the scope for this external identifier.- Returns:
- String scope description
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classAssetReferenceable- 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 classAssetReferenceable- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Hash of properties- Overrides:
hashCodein classAssetReferenceable- Returns:
- int
-
-