java.lang.Object
org.odpi.openmetadata.viewservices.assetcatalog.beans.ElementOrigin

public class ElementOrigin extends Object
The ElementOrigin object holds information about the origin of the retrieved element. This means information about the metadata server, the metadata collection ID and name, etc.
  • Constructor Details

    • ElementOrigin

      public ElementOrigin()
      Default constructor.
  • Method Details

    • getSourceServer

      public String getSourceServer()
      Returns the name of the server.
      Returns:
      String - the name of the server
    • setSourceServer

      public void setSourceServer(String sourceServer)
      Set up the name of the server.
      Parameters:
      sourceServer - - name of the server
    • getMetadataCollectionId

      public String getMetadataCollectionId()
      Returns the id of the metadata collection.
      Returns:
      String - the id of the metadata collection.
    • setMetadataCollectionId

      public void setMetadataCollectionId(String metadataCollectionId)
      Set up the id of the metadata collection.
      Parameters:
      metadataCollectionId - - id of the metadata collection.
    • getMetadataCollectionName

      public String getMetadataCollectionName()
      Returns the name of the metadata collection.
      Returns:
      String - the name of the metadata collection.
    • setMetadataCollectionName

      public void setMetadataCollectionName(String metadataCollectionName)
      Set up the name of the metadata collection.
      Parameters:
      metadataCollectionName - - name of the metadata collection.
    • getInstanceLicense

      public String getInstanceLicense()
      Returns the license for this instance.
      Returns:
      String - the license string.
    • setInstanceLicense

      public void setInstanceLicense(String instanceLicense)
      Set up the license string for this instance.
      Parameters:
      instanceLicense - - the license string.
    • getOriginCategory

      public ElementOriginCategory getOriginCategory()
      Returns the origin category.
      Returns:
      the value from the enum representing the origin category
    • setOriginCategory

      public void setOriginCategory(ElementOriginCategory originCategory)
      Set up the origin category of the element.
      Parameters:
      originCategory - - the origin category value
    • 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()
      Return hash code based on properties.
      Overrides:
      hashCode in class Object
      Returns:
      int