|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.databinding.utils.ConverterUtil
public class ConverterUtil
Converter methods to go from 1. simple type -> String 2. simple type -> Object 3. String -> simpletype 4. Object list -> array
Nested Class Summary | |
---|---|
static class |
ConverterUtil.ObjectConversionException
A simple exception that is thrown when the conversion fails |
Field Summary | |
---|---|
static java.lang.String |
SYSTEM_PROPERTY_ADB_CONVERTERUTIL
|
Constructor Summary | |
---|---|
ConverterUtil()
|
Method Summary | |
---|---|
static void |
appendDate(java.lang.StringBuffer dateString,
java.util.Calendar calendar)
|
static void |
appendTime(java.util.Calendar value,
java.lang.StringBuffer dateString)
|
static void |
appendTimeZone(java.util.Calendar calendar,
java.lang.StringBuffer dateString)
|
static double |
compare(java.math.BigDecimal binBigDecimal,
java.lang.String value)
|
static int |
compare(java.math.BigInteger binBigInteger,
java.lang.String value)
|
static int |
compare(byte byteVlaue,
java.lang.String value)
|
static long |
compare(java.util.Calendar calendar,
java.lang.String value)
|
static long |
compare(java.util.Date date,
java.lang.String value)
|
static double |
compare(double doubleValue,
java.lang.String value)
|
static long |
compare(Duration duration,
java.lang.String value)
|
static float |
compare(float floatValue,
java.lang.String value)
|
static int |
compare(int intValue,
java.lang.String value)
|
static long |
compare(long longValue,
java.lang.String value)
|
static int |
compare(short shortValue,
java.lang.String value)
|
static long |
compare(Time time,
java.lang.String value)
|
static java.lang.String |
convertToAnySimpleType(java.lang.String s)
|
static org.apache.axiom.om.OMElement |
convertToAnyType(java.lang.String s)
|
static URI |
convertToAnyURI(java.lang.String s)
|
static java.lang.Object |
convertToArray(java.lang.Class baseArrayClass,
java.util.List objectList)
|
static java.lang.Object |
convertToArray(java.lang.Class baseArrayClass,
java.lang.String[] valueArray)
|
static javax.activation.DataHandler |
convertToBase64Binary(java.lang.String s)
|
static java.math.BigDecimal |
convertToBigDecimal(java.lang.String s)
|
static java.math.BigInteger |
convertToBigInteger(java.lang.String s)
|
static boolean |
convertToBoolean(java.lang.String s)
|
static byte |
convertToByte(java.lang.String s)
|
static javax.activation.DataHandler |
convertToDataHandler(java.lang.String s)
|
static java.util.Date |
convertToDate(java.lang.String source)
Converts a given string into a date. |
static java.util.Calendar |
convertToDateTime(java.lang.String source)
Code from Axis1 code base Note - We only follow the convention in the latest schema spec |
static java.math.BigDecimal |
convertToDecimal(java.lang.String s)
|
static double |
convertToDouble(java.lang.String s)
|
static Duration |
convertToDuration(java.lang.String s)
|
static Entities |
convertToENTITIES(java.lang.String s)
|
static Entity |
convertToENTITY(java.lang.String s)
|
static float |
convertToFloat(java.lang.String s)
|
static Day |
convertToGDay(java.lang.String s)
|
static Month |
convertToGMonth(java.lang.String s)
|
static MonthDay |
convertToGMonthDay(java.lang.String s)
|
static Year |
convertToGYear(java.lang.String s)
|
static YearMonth |
convertToGYearMonth(java.lang.String s)
|
static HexBinary |
convertToHexBinary(java.lang.String s)
|
static Id |
convertToId(java.lang.String s)
|
static Id |
convertToID(java.lang.String s)
|
static IDRef |
convertToIDREF(java.lang.String s)
|
static IDRefs |
convertToIDREFS(java.lang.String s)
|
static int |
convertToInt(java.lang.String s)
|
static java.math.BigInteger |
convertToInteger(java.lang.String s)
|
static Language |
convertToLanguage(java.lang.String s)
|
static long |
convertToLong(java.lang.String s)
|
static Name |
convertToName(java.lang.String s)
|
static NCName |
convertToNCName(java.lang.String s)
|
static NegativeInteger |
convertToNegativeInteger(java.lang.String s)
|
static NMToken |
convertToNMTOKEN(java.lang.String s)
|
static NMTokens |
convertToNMTOKENS(java.lang.String s)
|
static NonNegativeInteger |
convertToNonNegativeInteger(java.lang.String s)
|
static NonPositiveInteger |
convertToNonPositiveInteger(java.lang.String s)
|
static NormalizedString |
convertToNormalizedString(java.lang.String s)
|
static Notation |
convertToNOTATION(java.lang.String s)
|
static java.lang.Object |
convertToObject(boolean i)
|
static java.lang.Object |
convertToObject(byte i)
|
static java.lang.Object |
convertToObject(char i)
|
static java.lang.Object |
convertToObject(double i)
|
static java.lang.Object |
convertToObject(short i)
|
static java.lang.Object |
convertToObject(java.lang.String i)
|
static PositiveInteger |
convertToPositiveInteger(java.lang.String s)
|
static QName |
convertToQName(java.lang.String source,
java.lang.String nameSpaceuri)
Code from Axis1 code base |
static short |
convertToShort(java.lang.String s)
|
static java.lang.String |
convertToString(java.math.BigInteger o)
|
static java.lang.String |
convertToString(boolean i)
|
static java.lang.String |
convertToString(byte i)
|
static java.lang.String |
convertToString(java.lang.Byte o)
|
static java.lang.String |
convertToString(byte[] bytes)
|
static java.lang.String |
convertToString(java.util.Calendar value)
|
static java.lang.String |
convertToString(char i)
|
static java.lang.String |
convertToString(javax.activation.DataHandler handler)
|
static java.lang.String |
convertToString(java.util.Date value)
|
static java.lang.String |
convertToString(Day o)
|
static java.lang.String |
convertToString(double i)
|
static java.lang.String |
convertToString(java.lang.Double o)
|
static java.lang.String |
convertToString(Duration o)
|
static java.lang.String |
convertToString(float i)
|
static java.lang.String |
convertToString(java.lang.Float o)
|
static java.lang.String |
convertToString(HexBinary o)
|
static java.lang.String |
convertToString(int i)
|
static java.lang.String |
convertToString(java.lang.Integer o)
|
static java.lang.String |
convertToString(long i)
|
static java.lang.String |
convertToString(java.lang.Long o)
|
static java.lang.String |
convertToString(Month o)
|
static java.lang.String |
convertToString(MonthDay o)
|
static java.lang.String |
convertToString(java.lang.Object o)
|
static java.lang.String |
convertToString(QName o)
|
static java.lang.String |
convertToString(short i)
|
static java.lang.String |
convertToString(java.lang.Short o)
|
static java.lang.String |
convertToString(java.lang.String s)
|
static java.lang.String |
convertToString(Time o)
|
static java.lang.String |
convertToString(UnsignedByte o)
|
static java.lang.String |
convertToString(UnsignedInt o)
|
static java.lang.String |
convertToString(UnsignedLong o)
|
static java.lang.String |
convertToString(Year o)
|
static java.lang.String |
convertToString(YearMonth o)
|
static Time |
convertToTime(java.lang.String s)
|
static Token |
convertToToken(java.lang.String s)
|
static UnsignedByte |
convertToUnsignedByte(java.lang.String s)
|
static UnsignedInt |
convertToUnsignedInt(java.lang.String s)
|
static UnsignedLong |
convertToUnsignedLong(java.lang.String s)
|
static UnsignedShort |
convertToUnsignedShort(java.lang.String s)
|
static URI |
convertToURI(java.lang.String s)
|
static java.lang.Object |
getAnyTypeObject(javax.xml.stream.XMLStreamReader xmlStreamReader,
java.lang.Class extensionMapperClass)
|
static java.lang.Object |
getObjectForClass(java.lang.Class clazz,
java.lang.String value)
A reflection based method to generate an instance of a given class and populate it with a given value |
static java.lang.String |
getStringFromDatahandler(javax.activation.DataHandler dataHandler)
Converts the given .datahandler to a string |
static void |
serializeAnyType(java.lang.Object value,
javax.xml.stream.XMLStreamWriter xmlStreamWriter)
|
static java.util.List |
toList(java.lang.Object[] array)
We could have used the Arraya.asList() method but that returns an *immutable* list !!!!! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SYSTEM_PROPERTY_ADB_CONVERTERUTIL
Constructor Detail |
---|
public ConverterUtil()
Method Detail |
---|
public static java.lang.String convertToString(int i)
public static java.lang.String convertToString(float i)
public static java.lang.String convertToString(long i)
public static java.lang.String convertToString(double i)
public static java.lang.String convertToString(byte i)
public static java.lang.String convertToString(char i)
public static java.lang.String convertToString(short i)
public static java.lang.String convertToString(boolean i)
public static java.lang.String convertToString(java.util.Date value)
public static void appendTimeZone(java.util.Calendar calendar, java.lang.StringBuffer dateString)
public static void appendDate(java.lang.StringBuffer dateString, java.util.Calendar calendar)
public static java.lang.String convertToString(java.util.Calendar value)
public static void appendTime(java.util.Calendar value, java.lang.StringBuffer dateString)
public static java.lang.String convertToString(Day o)
public static java.lang.String convertToString(YearMonth o)
public static java.lang.String convertToString(Year o)
public static java.lang.String convertToString(HexBinary o)
public static java.lang.String convertToString(MonthDay o)
public static java.lang.String convertToString(Time o)
public static java.lang.String convertToString(java.lang.Byte o)
public static java.lang.String convertToString(java.math.BigInteger o)
public static java.lang.String convertToString(java.lang.Integer o)
public static java.lang.String convertToString(java.lang.Long o)
public static java.lang.String convertToString(java.lang.Short o)
public static java.lang.String convertToString(UnsignedByte o)
public static java.lang.String convertToString(UnsignedInt o)
public static java.lang.String convertToString(UnsignedLong o)
public static java.lang.String convertToString(QName o)
public static java.lang.String convertToString(java.lang.Object o)
public static java.lang.String convertToString(java.lang.Double o)
public static java.lang.String convertToString(Duration o)
public static java.lang.String convertToString(java.lang.Float o)
public static java.lang.String convertToString(Month o)
public static java.lang.String convertToString(byte[] bytes)
public static java.lang.String convertToString(javax.activation.DataHandler handler)
public static int convertToInt(java.lang.String s)
public static java.math.BigDecimal convertToBigDecimal(java.lang.String s)
public static double convertToDouble(java.lang.String s)
public static java.math.BigDecimal convertToDecimal(java.lang.String s)
public static float convertToFloat(java.lang.String s)
public static java.lang.String convertToString(java.lang.String s)
public static long convertToLong(java.lang.String s)
public static short convertToShort(java.lang.String s)
public static boolean convertToBoolean(java.lang.String s)
public static java.lang.String convertToAnySimpleType(java.lang.String s)
public static org.apache.axiom.om.OMElement convertToAnyType(java.lang.String s)
public static YearMonth convertToGYearMonth(java.lang.String s)
public static MonthDay convertToGMonthDay(java.lang.String s)
public static Year convertToGYear(java.lang.String s)
public static Month convertToGMonth(java.lang.String s)
public static Day convertToGDay(java.lang.String s)
public static Duration convertToDuration(java.lang.String s)
public static HexBinary convertToHexBinary(java.lang.String s)
public static javax.activation.DataHandler convertToBase64Binary(java.lang.String s)
public static javax.activation.DataHandler convertToDataHandler(java.lang.String s)
public static java.util.Date convertToDate(java.lang.String source)
source
-
public static Time convertToTime(java.lang.String s)
public static Token convertToToken(java.lang.String s)
public static NormalizedString convertToNormalizedString(java.lang.String s)
public static UnsignedLong convertToUnsignedLong(java.lang.String s)
public static UnsignedInt convertToUnsignedInt(java.lang.String s)
public static UnsignedShort convertToUnsignedShort(java.lang.String s)
public static UnsignedByte convertToUnsignedByte(java.lang.String s)
public static NonNegativeInteger convertToNonNegativeInteger(java.lang.String s)
public static NegativeInteger convertToNegativeInteger(java.lang.String s)
public static PositiveInteger convertToPositiveInteger(java.lang.String s)
public static NonPositiveInteger convertToNonPositiveInteger(java.lang.String s)
public static Name convertToName(java.lang.String s)
public static NCName convertToNCName(java.lang.String s)
public static Id convertToID(java.lang.String s)
public static Id convertToId(java.lang.String s)
public static Language convertToLanguage(java.lang.String s)
public static NMToken convertToNMTOKEN(java.lang.String s)
public static NMTokens convertToNMTOKENS(java.lang.String s)
public static Notation convertToNOTATION(java.lang.String s)
public static Entity convertToENTITY(java.lang.String s)
public static Entities convertToENTITIES(java.lang.String s)
public static IDRef convertToIDREF(java.lang.String s)
public static IDRefs convertToIDREFS(java.lang.String s)
public static URI convertToURI(java.lang.String s)
public static URI convertToAnyURI(java.lang.String s)
public static java.math.BigInteger convertToInteger(java.lang.String s)
public static java.math.BigInteger convertToBigInteger(java.lang.String s)
public static byte convertToByte(java.lang.String s)
public static java.util.Calendar convertToDateTime(java.lang.String source)
source
-
public static QName convertToQName(java.lang.String source, java.lang.String nameSpaceuri)
source
-
public static java.lang.Object convertToObject(java.lang.String i)
public static java.lang.Object convertToObject(boolean i)
public static java.lang.Object convertToObject(double i)
public static java.lang.Object convertToObject(byte i)
public static java.lang.Object convertToObject(char i)
public static java.lang.Object convertToObject(short i)
public static java.lang.Object convertToArray(java.lang.Class baseArrayClass, java.lang.String[] valueArray)
public static java.lang.Object convertToArray(java.lang.Class baseArrayClass, java.util.List objectList)
baseArrayClass
- objectList
- -> for primitive type array conversion we assume the content to be
strings!
public static java.util.List toList(java.lang.Object[] array)
array
-
public static int compare(int intValue, java.lang.String value)
intValue
- value
-
public static double compare(double doubleValue, java.lang.String value)
doubleValue
- value
-
public static float compare(float floatValue, java.lang.String value)
floatValue
- value
-
public static long compare(long longValue, java.lang.String value)
longValue
- value
-
public static int compare(short shortValue, java.lang.String value)
shortValue
- value
-
public static int compare(byte byteVlaue, java.lang.String value)
byteVlaue
- value
-
public static int compare(java.math.BigInteger binBigInteger, java.lang.String value)
binBigInteger
- value
-
public static double compare(java.math.BigDecimal binBigDecimal, java.lang.String value)
binBigDecimal
- value
-
public static long compare(Duration duration, java.lang.String value)
public static long compare(java.util.Date date, java.lang.String value)
public static long compare(Time time, java.lang.String value)
public static long compare(java.util.Calendar calendar, java.lang.String value)
public static java.lang.String getStringFromDatahandler(javax.activation.DataHandler dataHandler)
public static java.lang.Object getObjectForClass(java.lang.Class clazz, java.lang.String value)
clazz
- value
-
public static void serializeAnyType(java.lang.Object value, javax.xml.stream.XMLStreamWriter xmlStreamWriter) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public static java.lang.Object getAnyTypeObject(javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.Class extensionMapperClass) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |