Class SchemaTypeChoiceProperties

All Implemented Interfaces:
Serializable

public class SchemaTypeChoiceProperties extends SchemaTypeProperties
SchemaTypeChoiceProperties carries the specialized parameters for creating or updating a choice of schema types.
See Also:
  • Constructor Details

    • SchemaTypeChoiceProperties

      public SchemaTypeChoiceProperties()
      Default constructor
    • SchemaTypeChoiceProperties

      public SchemaTypeChoiceProperties(SchemaTypeChoiceProperties template)
      Copy/clone Constructor - the parentAsset is passed separately to the template because it is also likely to be being cloned in the same operation, and we want the definitions clone to point to the asset clone and not the original asset.
      Parameters:
      template - template object to copy.
  • Method Details

    • getSchemaOptions

      public List<SchemaTypeProperties> getSchemaOptions()
      Return the list of alternative schema types that this attribute or asset may use.
      Returns:
      list of schema types
    • setSchemaOptions

      public void setSchemaOptions(List<SchemaTypeProperties> schemaOptions)
      Set up the list of alternative schema types that this attribute or asset may use.
      Parameters:
      schemaOptions - list of schema types
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class SchemaTypeProperties
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class SchemaTypeProperties
      Returns:
      print out of variables in a JSON-style
    • hashCode

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