Class LiteralSchemaTypeProperties

  • All Implemented Interfaces:
    java.io.Serializable

    public class LiteralSchemaTypeProperties
    extends SchemaTypeProperties
    LiteralSchemaTypeProperties carries the specialized parameters for creating or updating literal schema types.
    See Also:
    Serialized Form
    • Constructor Detail

      • LiteralSchemaTypeProperties

        public LiteralSchemaTypeProperties()
        Default constructor
      • LiteralSchemaTypeProperties

        public LiteralSchemaTypeProperties​(LiteralSchemaTypeProperties 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 Detail

      • getDataType

        public java.lang.String getDataType()
        Return the data type for this element. Null means unknown data type.
        Returns:
        String data type name
      • setDataType

        public void setDataType​(java.lang.String dataType)
        Set up the data type for this element. Null means unknown data type.
        Parameters:
        dataType - data type name
      • getFixedValue

        public java.lang.String getFixedValue()
        Return the fixed value for the element. Null means fixed value is null.
        Returns:
        String containing fixed value
      • setFixedValue

        public void setFixedValue​(java.lang.String fixedValue)
        Set up the fixed value for the element. Null means fixed value is null.
        Parameters:
        fixedValue - String containing fixed value
      • toString

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

        public boolean equals​(java.lang.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
      • hashCode

        public int hashCode()
        Create a hash code for this element type.
        Overrides:
        hashCode in class SchemaTypeProperties
        Returns:
        int hash code