Class OpenTypeUtils


  • public abstract class OpenTypeUtils
    extends Object
    • Constructor Detail

      • OpenTypeUtils

        public OpenTypeUtils()
    • Method Detail

      • getSimpleType

        public static SimpleType getSimpleType​(Class<?> clazz)
        Returns the simple type for the given class. If the class is not a simple type then null is returned.
        Parameters:
        clazz - the class
        Returns:
        the simple type for the given class
      • createCompositeType

        public static CompositeType createCompositeType​(Class<?> clazz)
                                                 throws OpenDataException
        Introspects the given class to generate composite type.
        Parameters:
        clazz - the class
        Returns:
        the composite type of the given class
        Throws:
        OpenDataException - when an error happens during inspection
      • createTabularType

        public static TabularType createTabularType​(Class<?> clazz)
                                             throws OpenDataException
        Introspects the given class to generate tabular type. The class must be annotated with TabularTypeInfo.
        Parameters:
        clazz - the class
        Returns:
        the tabular type of the given class
        Throws:
        OpenDataException - when an error happens