Class SchemaTypeChoice

  • All Implemented Interfaces:
    Serializable

    public class SchemaTypeChoice
    extends SchemaType
    SchemaTypeChoice supports an element that has a selection of schema types that could be used as the type of the attribute. When the schema is used, values are only stored in one of the options.
    See Also:
    Serialized Form
    • Constructor Detail

      • SchemaTypeChoice

        public SchemaTypeChoice()
        Default constructor used by subclasses
      • SchemaTypeChoice

        public SchemaTypeChoice​(SchemaTypeChoice template)
        Copy/clone Constructor.
        Parameters:
        template - template object to copy.
    • Method Detail

      • getSchemaOptions

        public List<SchemaType> 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<SchemaType> schemaOptions)
        Set up the list of alternative schema types that this attribute or asset may use.
        Parameters:
        schemaOptions - list of schema types
      • cloneSchemaElement

        public SchemaElement cloneSchemaElement()
        Returns a clone of this object as the abstract SchemaElement class.
        Overrides:
        cloneSchemaElement in class SchemaType
        Returns:
        SchemaElement
      • cloneSchemaType

        public SchemaType cloneSchemaType()
        Returns a clone of this object as the abstract SchemaType class.
        Overrides:
        cloneSchemaType in class SchemaType
        Returns:
        PrimitiveSchemaType object
      • toString

        public String toString()
        Standard toString method.
        Overrides:
        toString in class SchemaType
        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 SchemaType
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison
      • hashCode

        public int hashCode()
        Hash of properties
        Overrides:
        hashCode in class SchemaType
        Returns:
        int