Class CombinedSchemaRequestBody

java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.CombinedSchemaRequestBody

public class CombinedSchemaRequestBody extends Object
CombinedSchemaRequestBody carries the parameters for created a new schema to attach to an asset. A limited number of SchemaAttributes can accompany the SchemaType. If more SchemaAttributes are needed then use addSchemaAttributesToSchema() method.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
    Copy/clone constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object objectToCompare)
    Compare the values of the supplied object with those stored in the current object.
    List<org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaAttributeProperties>
    Return the names of the zones that this asset is a member of.
    org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaTypeProperties
    Return the type of owner stored in the owner property.
    int
    Return hash code based on properties.
    void
    setSchemaAttributes(List<org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaAttributeProperties> schemaAttributes)
    Set up the names of the zones that this asset is a member of.
    void
    setSchemaType(org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaTypeProperties schemaType)
    Set up the owner type for this asset.
    Standard toString method.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CombinedSchemaRequestBody

      public CombinedSchemaRequestBody()
      Default constructor
    • CombinedSchemaRequestBody

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

    • getSchemaType

      public org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaTypeProperties getSchemaType()
      Return the type of owner stored in the owner property.
      Returns:
      AssetOwnerType enum
    • setSchemaType

      public void setSchemaType(org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaTypeProperties schemaType)
      Set up the owner type for this asset.
      Parameters:
      schemaType - AssetOwnerType enum
    • getSchemaAttributes

      public List<org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaAttributeProperties> getSchemaAttributes()
      Return the names of the zones that this asset is a member of.
      Returns:
      list of zone names
    • setSchemaAttributes

      public void setSchemaAttributes(List<org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaAttributeProperties> schemaAttributes)
      Set up the names of the zones that this asset is a member of.
      Parameters:
      schemaAttributes - list of zone names
    • 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