Class NewOpenMetadataElementRequestBody


public class NewOpenMetadataElementRequestBody extends NewElementOptions
NewOpenMetadataElementRequestBody provides a structure for passing the properties for a new metadata element.
  • Constructor Details

    • NewOpenMetadataElementRequestBody

      public NewOpenMetadataElementRequestBody()
      Default constructor
    • NewOpenMetadataElementRequestBody

      public NewOpenMetadataElementRequestBody(NewOpenMetadataElementRequestBody template)
      Copy/clone constructor
      Parameters:
      template - object to copy
    • NewOpenMetadataElementRequestBody

      public NewOpenMetadataElementRequestBody(NewElementOptions template)
      Copy/clone constructor
      Parameters:
      template - object to copy
  • Method Details

    • getTypeName

      public String getTypeName()
      Return the open metadata type name for the new metadata element.
      Returns:
      string name
    • setTypeName

      public void setTypeName(String typeName)
      Set up the open metadata type name for the new metadata element.
      Parameters:
      typeName - string name
    • getInitialClassifications

      public Map<String,NewElementProperties> getInitialClassifications()
      Return the map of classification name to properties describing the initial classification for the new metadata element.
      Returns:
      map of classification name to classification properties (or null for none)
    • setInitialClassifications

      public void setInitialClassifications(Map<String,NewElementProperties> initialClassifications)
      Set up the map of classification name to properties describing the initial classification for the new metadata element.
      Parameters:
      initialClassifications - map of classification name to classification properties (or null for none)
    • getProperties

      public NewElementProperties getProperties()
      Return the properties for the new metadata element.
      Returns:
      list of properties
    • setProperties

      public void setProperties(NewElementProperties properties)
      Set up the properties for the new metadata element.
      Parameters:
      properties - list of properties
    • getParentRelationshipProperties

      public NewElementProperties getParentRelationshipProperties()
      Return any properties that should be included in the parent relationship.
      Returns:
      element properties
    • setParentRelationshipProperties

      public void setParentRelationshipProperties(NewElementProperties parentRelationshipProperties)
      Set up any properties that should be included in the parent relationship.
      Parameters:
      parentRelationshipProperties - element properties
    • toString

      public String toString()
      JSON-style toString.
      Overrides:
      toString in class NewElementOptions
      Returns:
      list of properties and their values.
    • equals

      public boolean equals(Object objectToCompare)
      Equals method that returns true if containing properties are the same.
      Overrides:
      equals in class NewElementOptions
      Parameters:
      objectToCompare - object to compare
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code for this object
      Overrides:
      hashCode in class NewElementOptions
      Returns:
      int hash code