Class BasePrimitiveDomainType

    • Constructor Detail

      • BasePrimitiveDomainType

        public BasePrimitiveDomainType()
    • Method Detail

      • getFormatId

        public String getFormatId()
        Description copied from interface: PrimitiveDomainType
        Returns the id of the format definition to use for this domain type. Is normally only relevant for numeric domain types. The id is the prefix part of the name in the Format.xml file. So for example the id 'integer' maps to all the Format.xml entries with integer as a prefix.
        Specified by:
        getFormatId in interface PrimitiveDomainType
        Returns:
        the name of the format definition in the format.xml, if not relevant then null is returned.
      • createFromString

        public Object createFromString​(String strValue)
        Description copied from interface: PrimitiveDomainType
        Converts a string back to an object value of the primitive type ({link #getPrimitiveType()}) represented by this DomainType. This method is the opposite of the PrimitiveDomainType.convertToString(Object) method.
        Specified by:
        createFromString in interface PrimitiveDomainType
        Parameters:
        strValue - the string value to convert
        Returns:
        the object value, null is returned if an empty string or null are passed as parameter.