Class SimpleTypeMapper


  • public class SimpleTypeMapper
    extends Object
    • Constructor Detail

      • SimpleTypeMapper

        public SimpleTypeMapper()
    • Method Detail

      • getSimpleTypeObject

        public static Object getSimpleTypeObject​(Class parameter,
                                                 String text)
      • getSimpleTypeObject

        public static Object getSimpleTypeObject​(Class parameter,
                                                 OMElement value)
      • getDataHandler

        public static DataHandler getDataHandler​(OMElement element,
                                                 boolean hexBin)
        Gets the DataHandler according to hexBin value.
        Parameters:
        element - the element
        hexBin - the hex bin
        Returns:
        the DataHandler object
      • isSimpleType

        public static boolean isSimpleType​(Object obj)
      • isSimpleType

        public static boolean isSimpleType​(Class obj)
      • isDataHandler

        public static boolean isDataHandler​(Class obj)
      • isHashSet

        public static boolean isHashSet​(Class obj)
      • isCollection

        public static boolean isCollection​(Class obj)
      • isSimpleType

        public static boolean isSimpleType​(String objClassName)
      • getStringValue

        public static String getStringValue​(Object obj)
      • makeCalendar

        public static Object makeCalendar​(String source)
      • makeDate

        public static Object makeDate​(String source)
      • isObjectArray

        public static boolean isObjectArray​(Class obj)
        Checks weather passed parameter class is java.lang.Object[] or not.
        Parameters:
        obj - the Class type of particular object.
        Returns:
        true, if is object array
      • isObjectType

        public static boolean isObjectType​(Class obj)
        Checks weather passed parameter class is java.lang.Object or not.
        Parameters:
        obj - the Class type of particular object.
        Returns:
        true, if is object type
      • isDomDocument

        public static boolean isDomDocument​(Class classType)
        Checks that given classType is a W3C Document.
        Parameters:
        classType - the class type
        Returns:
        true, if is dom document
      • isMap

        public static boolean isMap​(Class classType)
        Checks weather passed parameter class is a java.util.Map
        Parameters:
        classType - the class type
        Returns:
        true, if it is a map
      • isMultidimensionalObjectArray

        public static boolean isMultidimensionalObjectArray​(Class type)
        Checks weather passed parameter class is a multidimensional object array.
        Parameters:
        type - the type
        Returns:
        true, if is multidimensional object array
      • isEnum

        public static boolean isEnum​(Class classType)