Class SimpleSchemaType

    • Field Detail

      • dataType

        protected String dataType
      • defaultValue

        protected String defaultValue
    • Constructor Detail

      • SimpleSchemaType

        public SimpleSchemaType()
        Default constructor used by subclasses
      • SimpleSchemaType

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

      • getDataType

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

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

        public String getDefaultValue()
        Return the default value for the element. Null means no default value set up.
        Returns:
        String containing default value
      • setDefaultValue

        public void setDefaultValue​(String defaultValue)
        Set up the default value for the element. Null means no default value set up.
        Parameters:
        defaultValue - String containing default value
      • 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