Class ElementOrigin
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.datamanager.metadataelements.ElementOrigin
-
- All Implemented Interfaces:
Serializable
public class ElementOrigin extends Object implements Serializable
The ElementType bean provides details of the type information associated with a metadata element.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ElementOrigin()
Default constructorElementOrigin(ElementOrigin templateType)
Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.String
getHomeMetadataCollectionId()
Returns the OMRS identifier for the metadata collection that is managed by the repository where the element originates (its home repository).String
getHomeMetadataCollectionName()
Return the name of the metadata collection that this asset belongs to.String
getLicense()
Return the license associated with this metadata element (null means none).ElementOriginCategory
getOriginCategory()
Return the origin of the metadata element.String
getSourceServer()
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.String
toString()
Standard toString method.
-
-
-
Constructor Detail
-
ElementOrigin
public ElementOrigin()
Default constructor
-
ElementOrigin
public ElementOrigin(ElementOrigin templateType)
Copy/clone constructor- Parameters:
templateType
- type to clone
-
-
Method Detail
-
setSourceServer
public void setSourceServer(String sourceServer)
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
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
-
setOriginCategory
public void setOriginCategory(ElementOriginCategory originCategory)
Set up the details of this element's origin.- Parameters:
originCategory
- see ElementOriginCategory enum
-
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
-
setHomeMetadataCollectionId
public 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).- Parameters:
homeMetadataCollectionId
- String unique identifier for the home metadata repository
-
getHomeMetadataCollectionName
public String getHomeMetadataCollectionName()
Return the name of the metadata collection that this asset belongs to.- Returns:
- name string
-
setHomeMetadataCollectionName
public void setHomeMetadataCollectionName(String homeMetadataCollectionName)
Set up the name of the metadata collection that this asset belongs to.- Parameters:
homeMetadataCollectionName
- name string
-
getLicense
public String getLicense()
Return the license associated with this metadata element (null means none).- Returns:
- string license name
-
setLicense
public void setLicense(String license)
Set up the license associated with this metadata element (null means none)- Parameters:
license
- 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.
-
-