Enum PrimitiveType

    • Field Detail

      • datatypeMappings

        public static final Map<String,​String> datatypeMappings
    • Method Detail

      • values

        public static PrimitiveType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PrimitiveType c : PrimitiveType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PrimitiveType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • customExcludedClasses

        public static Set<String> customExcludedClasses()
        Adds support for custom mapping of classes to primitive types
        Returns:
        Map of custom classes to primitive type
        Since:
        2.0.6
      • customExcludedExternalClasses

        public static Set<String> customExcludedExternalClasses()
        Adds support for custom mapping of classes to primitive types
        Returns:
        Map of custom classes to primitive type
        Since:
        2.1.2
      • customClasses

        public static Map<String,​PrimitiveType> customClasses()
        Adds support for custom mapping of classes to primitive types
        Returns:
        Map of custom classes to primitive type
        Since:
        2.0.6
      • systemPrefixes

        public static Set<String> systemPrefixes()
        class qualified names prefixes to be considered as "system" types
        Returns:
        Mutable set of class qualified names prefixes to be considered as "system" types
        Since:
        2.0.6
      • nonSystemTypes

        public static Set<String> nonSystemTypes()
        class qualified names NOT to be considered as "system" types
        Returns:
        Mutable set of class qualified names NOT to be considered as "system" types
        Since:
        2.0.6
      • nonSystemTypePackages

        public static Set<String> nonSystemTypePackages()
        package names NOT to be considered as "system" types
        Returns:
        Mutable set of package names NOT to be considered as "system" types
        Since:
        2.0.6
      • createProperty

        public static Schema createProperty​(Type type)
      • createProperty

        public static Schema createProperty​(String name)
      • getCommonName

        public static String getCommonName​(Type type)
      • getKeyClass

        public Class<?> getKeyClass()
      • getCommonName

        public String getCommonName()
      • createProperty

        public abstract Schema createProperty()
      • enablePartialTime

        public static void enablePartialTime()
        Convenience method to map LocalTime to string primitive with rfc3339 format partial-time. See https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14
        Since:
        2.0.6