java.lang.Object
org.odpi.openmetadata.viewservices.collectionmanager.rest.NewElementRequestBody
org.odpi.openmetadata.viewservices.collectionmanager.rest.TemplateRequestBody

public class TemplateRequestBody extends NewElementRequestBody
TemplateRequestBody provides a structure for passing the properties for a new metadata element that is to be created via a template.
  • Constructor Details

    • TemplateRequestBody

      public TemplateRequestBody()
      Default constructor
    • TemplateRequestBody

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

    • getReplacementProperties

      public ElementProperties getReplacementProperties()
      Return the properties for the new metadata element.
      Returns:
      list of properties
    • setReplacementProperties

      public void setReplacementProperties(ElementProperties replacementProperties)
      Set up the properties for the new metadata element.
      Parameters:
      replacementProperties - list of properties
    • setTemplateGUID

      public void setTemplateGUID(String templateGUID)
      Set up the unique identifier of the element to use as a template (optional).
      Parameters:
      templateGUID - String guid
    • getTemplateGUID

      public String getTemplateGUID()
      Returns the unique identifier of the element to use as a template (optional).
      Returns:
      string guid
    • getPlaceholderPropertyValues

      public Map<String,String> getPlaceholderPropertyValues()
      Return the property values to replace placeholders in the template.
      Returns:
      map of property name to property value
    • setPlaceholderPropertyValues

      public void setPlaceholderPropertyValues(Map<String,String> placeholderPropertyValues)
      Set up the property values to replace placeholders in the template.
      Parameters:
      placeholderPropertyValues - map of property name to property value
    • equals

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

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