Class ElementOrigin
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementOrigin
The ElementType bean provides details of the type information associated with a metadata element.
-
Constructor Summary
ConstructorDescriptionDefault constructorElementOrigin
(ElementOrigin templateType) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.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.void
setHomeMetadataCollectionId
(String homeMetadataCollectionId) Set up the unique identifier for the metadata collection that is managed by the repository where the element originates (its home repository).void
setHomeMetadataCollectionName
(String homeMetadataCollectionName) Set up the name of the metadata collection that this asset belongs to.void
setLicense
(String license) Set up the license associated with this metadata element (null means none)void
setOriginCategory
(ElementOriginCategory originCategory) Set up the details of this element's origin.void
setSourceServer
(String sourceServer) Set up the name of the server where the element was retrieved from.toString()
Standard toString method.
-
Constructor Details
-
ElementOrigin
public ElementOrigin()Default constructor -
ElementOrigin
Copy/clone constructor- Parameters:
templateType
- type to clone
-
-
Method Details
-
setSourceServer
Set up 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.- Parameters:
sourceServer
- URL of the server
-
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
-
setOriginCategory
Set up the details of this element's origin.- Parameters:
originCategory
- see ElementOriginCategory enum
-
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
-
setHomeMetadataCollectionId
Set up the unique identifier for the metadata collection that is managed by the repository where the element originates (its home repository).- Parameters:
homeMetadataCollectionId
- String unique identifier for the home metadata repository
-
getHomeMetadataCollectionName
Return the name of the metadata collection that this asset belongs to.- Returns:
- name string
-
setHomeMetadataCollectionName
Set up the name of the metadata collection that this asset belongs to.- Parameters:
homeMetadataCollectionName
- name string
-
getLicense
Return the license associated with this metadata element (null means none).- Returns:
- string license name
-
setLicense
Set up the license associated with this metadata element (null means none)- Parameters:
license
- string license name
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Create a hash code for this element type.
-