Class AssetElementOrigin
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyElementBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetElementOrigin
-
- All Implemented Interfaces:
Serializable
public class AssetElementOrigin extends AssetPropertyElementBase
The ElementType bean provides details of the type information associated with a metadata element.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AssetElementOrigin(AssetElementOrigin template)Copy/clone constructorAssetElementOrigin(ElementOrigin elementBean)Bean constructor accepts bean version of the AssetElementOrigin to provide the values
-
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.protected ElementOrigingetElementBean()Clone the bean as part of the deep clone constructor.StringgetHomeMetadataCollectionId()Returns the OMRS identifier for the metadata collection that is managed by the repository where the element originates (its home repository).StringgetHomeMetadataCollectionName()Return the name of the metadata collection that this asset belongs to.StringgetLicense()Return the license associated with this metadata element (null means none).ElementOriginCategorygetOriginCategory()Return the origin of the metadata element.StringgetSourceServer()Return the name of the server where the element was retrieved from.inthashCode()Create a hash code for this element type.StringtoString()Standard toString method.
-
-
-
Constructor Detail
-
AssetElementOrigin
public AssetElementOrigin(ElementOrigin elementBean)
Bean constructor accepts bean version of the AssetElementOrigin to provide the values- Parameters:
elementBean- bean containing properties
-
AssetElementOrigin
public AssetElementOrigin(AssetElementOrigin template)
Copy/clone constructor- Parameters:
template- type to clone
-
-
Method Detail
-
getElementBean
protected ElementOrigin getElementBean()
Clone the bean as part of the deep clone constructor.- Returns:
- cloned element bean
-
getSourceServer
public String 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
public ElementOriginCategory getOriginCategory()
Return the origin of the metadata element.- Returns:
- ElementOriginCategory enum
-
getHomeMetadataCollectionId
public String 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
public String getHomeMetadataCollectionName()
Return the name of the metadata collection that this asset belongs to.- Returns:
- name string
-
getLicense
public String getLicense()
Return the license associated with this metadata element (null means none).- Returns:
- string license name
-
toString
public String toString()
Standard toString method.
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classAssetPropertyElementBase- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Create a hash code for this element type.- Overrides:
hashCodein classAssetPropertyElementBase- Returns:
- int hash code
-
-