Interface DataTypeParameters

  • All Known Implementing Classes:
    PeriodDataTypeParameters

    public interface DataTypeParameters
    Interface definition for an object used to represent any restrictions a data type may enforce.
    Author:
    Gavin Cornwell
    • Method Detail

      • getAsObject

        java.lang.Object getAsObject()
        Returns the parameters in a Java friendly manner i.e. as an Object. The Object can be as complex as a multiple nested Map of Maps or as simple as a String.
        Returns:
        An Object representing the data type parameters
      • getAsJSON

        java.lang.Object getAsJSON()
        Returns the parameters represented as JSON.

        Implementations can use whatever JSON libraries they desire, the only rule is that the object returned must toString() to either a JSON array or JSON object i.e. [...] or {...}

        Returns:
        JSON Object representing the parameters