Class AssetElementOrigin
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyElementBase
org.odpi.openmetadata.frameworks.connectors.properties.AssetElementOrigin
The ElementType bean provides details of the type information associated with a metadata element.
-
Constructor Summary
ConstructorDescriptionAssetElementOrigin
(AssetElementOrigin template) Copy/clone constructorAssetElementOrigin
(ElementOrigin elementBean) Bean constructor accepts bean version of the AssetElementOrigin to provide the values -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.protected ElementOrigin
Clone the bean as part of the deep clone constructor.Returns the OMRS identifier for the metadata collection that is managed by the repository where the element originates (its home repository).Return the name of the metadata collection that this asset belongs to.Return the license associated with this metadata element (null means none).Return the origin of the metadata element.Return the name of the server where the element was retrieved from.int
hashCode()
Create a hash code for this element type.toString()
Standard toString method.
-
Constructor Details
-
AssetElementOrigin
Bean constructor accepts bean version of the AssetElementOrigin to provide the values- Parameters:
elementBean
- bean containing properties
-
AssetElementOrigin
Copy/clone constructor- Parameters:
template
- type to clone
-
-
Method Details
-
getElementBean
Clone the bean as part of the deep clone constructor.- Returns:
- cloned element bean
-
getSourceServer
Return the name of the server where the element was retrieved from. Typically, this is a server where the OMAS interfaces are activated. If no name is known for the server then null is returned.- Returns:
- elementSourceServerURL the url of the server where the element came from
-
getOriginCategory
Return the origin of the metadata element.- Returns:
- ElementOriginCategory enum
-
getHomeMetadataCollectionId
Returns the OMRS identifier for the metadata collection that is managed by the repository where the element originates (its home repository).- Returns:
- String metadata collection id
-
getHomeMetadataCollectionName
Return the name of the metadata collection that this asset belongs to.- Returns:
- name string
-
getLicense
Return the license associated with this metadata element (null means none).- Returns:
- string license name
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classAssetPropertyElementBase
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Create a hash code for this element type.- Overrides:
hashCode
in classAssetPropertyElementBase
- Returns:
- int hash code
-