java.lang.Object
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementOrigin

public class ElementOrigin extends Object
The ElementType bean provides details of the type information associated with a metadata element.
  • Constructor Details

    • ElementOrigin

      public ElementOrigin()
      Default constructor
    • ElementOrigin

      public ElementOrigin(ElementOrigin templateType)
      Copy/clone constructor
      Parameters:
      templateType - type to clone
  • Method Details

    • 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.
      Overrides:
      toString in class Object
      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:
      equals in class Object
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Create a hash code for this element type.
      Overrides:
      hashCode in class Object
      Returns:
      int hash code