Class SimpleTypeMapper
- java.lang.Object
-
- org.apache.axis2.databinding.typemapping.SimpleTypeMapper
-
public class SimpleTypeMapper extends Object
-
-
Constructor Summary
Constructors Constructor Description SimpleTypeMapper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ArrayList
getArrayList(OMElement element)
static ArrayList
getArrayList(OMElement element, String localName)
static DataHandler
getDataHandler(OMElement element)
static DataHandler
getDataHandler(OMElement element, boolean hexBin)
Gets the DataHandler according to hexBin value.static HashSet
getHashSet(OMElement element, String localName)
static Object
getSimpleTypeObject(Class parameter, String text)
static Object
getSimpleTypeObject(Class parameter, OMElement value)
static String
getStringValue(Object obj)
static boolean
isCollection(Class obj)
static boolean
isDataHandler(Class obj)
static boolean
isDomDocument(Class classType)
Checks that given classType is a W3C Document.static boolean
isEnum(Class classType)
static boolean
isHashSet(Class obj)
static boolean
isMap(Class classType)
Checks weather passed parameter class is a java.util.Mapstatic boolean
isMultidimensionalObjectArray(Class type)
Checks weather passed parameter class is a multidimensional object array.static boolean
isObjectArray(Class obj)
Checks weather passed parameter class is java.lang.Object[] or not.static boolean
isObjectType(Class obj)
Checks weather passed parameter class is java.lang.Object or not.static boolean
isSimpleType(Class obj)
static boolean
isSimpleType(Object obj)
static boolean
isSimpleType(String objClassName)
static Object
makeCalendar(String source)
static Object
makeDate(String source)
-
-
-
Method Detail
-
getDataHandler
public static DataHandler getDataHandler(OMElement element)
-
getDataHandler
public static DataHandler getDataHandler(OMElement element, boolean hexBin)
Gets the DataHandler according to hexBin value.- Parameters:
element
- the elementhexBin
- 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)
-
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)
-
-