Java Doc for ConverterUtil.java in  » Web-Services-AXIS2 » adb » org » apache » axis2 » databinding » utils » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Services AXIS2 » adb » org.apache.axis2.databinding.utils 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.axis2.databinding.utils.ConverterUtil

ConverterUtil
public class ConverterUtil (Code)
Converter methods to go from 1. simple type -> String 2. simple type -> Object 3. String -> simpletype 4. Object list -> array

Inner Class :public static class ObjectConversionException extends RuntimeException



Method Summary
public static  intcompare(int intValue, String value)
    
public static  doublecompare(double doubleValue, String value)
    
public static  floatcompare(float floatValue, String value)
    
public static  longcompare(long longValue, String value)
    
public static  intcompare(short shortValue, String value)
    
public static  intcompare(byte byteVlaue, String value)
    
public static  intcompare(BigInteger binBigInteger, String value)
    
public static  doublecompare(BigDecimal binBigDecimal, String value)
    
public static  longcompare(Duration duration, String value)
    
public static  longcompare(Date date, String value)
    
public static  longcompare(Time time, String value)
    
public static  longcompare(Calendar calendar, String value)
    
public static  StringconvertToAnySimpleType(String s)
    
public static  OMElementconvertToAnyType(String s)
    
public static  URIconvertToAnyURI(String s)
    
public static  ObjectconvertToArray(Class baseArrayClass, String[] valueArray)
    
public static  ObjectconvertToArray(Class baseArrayClass, List objectList)
    
public static  javax.activation.DataHandlerconvertToBase64Binary(String s)
    
public static  BigDecimalconvertToBigDecimal(String s)
    
public static  BigIntegerconvertToBigInteger(String s)
    
public static  booleanconvertToBoolean(String s)
    
public static  byteconvertToByte(String s)
    
public static  javax.activation.DataHandlerconvertToDataHandler(String s)
    
public static  DateconvertToDate(String source)
     Converts a given string into a date.
public static  CalendarconvertToDateTime(String source)
    
public static  BigDecimalconvertToDecimal(String s)
    
public static  doubleconvertToDouble(String s)
    
public static  DurationconvertToDuration(String s)
    
public static  EntitiesconvertToENTITIES(String s)
    
public static  EntityconvertToENTITY(String s)
    
public static  floatconvertToFloat(String s)
    
public static  DayconvertToGDay(String s)
    
public static  MonthconvertToGMonth(String s)
    
public static  MonthDayconvertToGMonthDay(String s)
    
public static  YearconvertToGYear(String s)
    
public static  YearMonthconvertToGYearMonth(String s)
    
public static  HexBinaryconvertToHexBinary(String s)
    
public static  IdconvertToID(String s)
    
public static  IDRefconvertToIDREF(String s)
    
public static  IDRefsconvertToIDREFS(String s)
    
public static  IdconvertToId(String s)
    
public static  intconvertToInt(String s)
    
public static  BigIntegerconvertToInteger(String s)
    
public static  LanguageconvertToLanguage(String s)
    
public static  longconvertToLong(String s)
    
public static  NCNameconvertToNCName(String s)
    
public static  NMTokenconvertToNMTOKEN(String s)
    
public static  NMTokensconvertToNMTOKENS(String s)
    
public static  NotationconvertToNOTATION(String s)
    
public static  NameconvertToName(String s)
    
public static  NegativeIntegerconvertToNegativeInteger(String s)
    
public static  NonNegativeIntegerconvertToNonNegativeInteger(String s)
    
public static  NonPositiveIntegerconvertToNonPositiveInteger(String s)
    
public static  NormalizedStringconvertToNormalizedString(String s)
    
public static  ObjectconvertToObject(String i)
    
public static  ObjectconvertToObject(boolean i)
    
public static  ObjectconvertToObject(double i)
    
public static  ObjectconvertToObject(byte i)
    
public static  ObjectconvertToObject(char i)
    
public static  ObjectconvertToObject(short i)
    
public static  PositiveIntegerconvertToPositiveInteger(String s)
    
public static  QNameconvertToQName(String source, String nameSpaceuri)
    
public static  shortconvertToShort(String s)
    
public static  StringconvertToString(int i)
    
public static  StringconvertToString(float i)
    
public static  StringconvertToString(long i)
    
public static  StringconvertToString(double i)
    
public static  StringconvertToString(byte i)
    
public static  StringconvertToString(char i)
    
public static  StringconvertToString(short i)
    
public static  StringconvertToString(boolean i)
    
public static  StringconvertToString(Date value)
    
public static  StringconvertToString(Calendar value)
    
public static  StringconvertToString(Day o)
    
public static  StringconvertToString(YearMonth o)
    
public static  StringconvertToString(Year o)
    
public static  StringconvertToString(HexBinary o)
    
public static  StringconvertToString(MonthDay o)
    
public static  StringconvertToString(Time o)
    
public static  StringconvertToString(Byte o)
    
public static  StringconvertToString(BigInteger o)
    
public static  StringconvertToString(Integer o)
    
public static  StringconvertToString(Long o)
    
public static  StringconvertToString(Short o)
    
public static  StringconvertToString(UnsignedByte o)
    
public static  StringconvertToString(UnsignedInt o)
    
public static  StringconvertToString(UnsignedLong o)
    
public static  StringconvertToString(QName o)
    
public static  StringconvertToString(Object o)
    
public static  StringconvertToString(Double o)
    
public static  StringconvertToString(Duration o)
    
public static  StringconvertToString(Float o)
    
public static  StringconvertToString(Month o)
    
public static  StringconvertToString(byte[] bytes)
    
public static  StringconvertToString(javax.activation.DataHandler handler)
    
public static  StringconvertToString(String s)
    
public static  TimeconvertToTime(String s)
    
public static  TokenconvertToToken(String s)
    
public static  URIconvertToURI(String s)
    
public static  UnsignedByteconvertToUnsignedByte(String s)
    
public static  UnsignedIntconvertToUnsignedInt(String s)
    
public static  UnsignedLongconvertToUnsignedLong(String s)
    
public static  UnsignedShortconvertToUnsignedShort(String s)
    
public static  ObjectgetObjectForClass(Class clazz, String value)
    
public static  StringgetStringFromDatahandler(DataHandler dataHandler)
    
public static  voidserializeAnyType(String string, XMLStreamWriter xmlStreamWriter)
    
public static  ListtoList(Object[] array)
    



Method Detail
compare
public static int compare(int intValue, String value)(Code)

Parameters:
  intValue -
Parameters:
  value - 0 if equal , + value if greater than , - value if less than



compare
public static double compare(double doubleValue, String value)(Code)

Parameters:
  doubleValue -
Parameters:
  value - 0 if equal , + value if greater than , - value if less than



compare
public static float compare(float floatValue, String value)(Code)

Parameters:
  floatValue -
Parameters:
  value - 0 if equal , + value if greater than , - value if less than



compare
public static long compare(long longValue, String value)(Code)

Parameters:
  longValue -
Parameters:
  value - 0 if equal , + value if greater than , - value if less than



compare
public static int compare(short shortValue, String value)(Code)

Parameters:
  shortValue -
Parameters:
  value - 0 if equal , + value if greater than , - value if less than



compare
public static int compare(byte byteVlaue, String value)(Code)

Parameters:
  byteVlaue -
Parameters:
  value - 0 if equal , + value if greater than , - value if less than



compare
public static int compare(BigInteger binBigInteger, String value)(Code)

Parameters:
  binBigInteger -
Parameters:
  value - 0 if equal , + value if greater than , - value if less than



compare
public static double compare(BigDecimal binBigDecimal, String value)(Code)

Parameters:
  binBigDecimal -
Parameters:
  value - 0 if equal , + value if greater than , - value if less than



compare
public static long compare(Duration duration, String value)(Code)



compare
public static long compare(Date date, String value)(Code)



compare
public static long compare(Time time, String value)(Code)



compare
public static long compare(Calendar calendar, String value)(Code)



convertToAnySimpleType
public static String convertToAnySimpleType(String s)(Code)



convertToAnyType
public static OMElement convertToAnyType(String s)(Code)



convertToAnyURI
public static URI convertToAnyURI(String s)(Code)



convertToArray
public static Object convertToArray(Class baseArrayClass, String[] valueArray)(Code)



convertToArray
public static Object convertToArray(Class baseArrayClass, List objectList)(Code)

Parameters:
  baseArrayClass -
Parameters:
  objectList - -> for primitive type array conversion we assume the content to bestrings! Returns Object.



convertToBase64Binary
public static javax.activation.DataHandler convertToBase64Binary(String s)(Code)



convertToBigDecimal
public static BigDecimal convertToBigDecimal(String s)(Code)



convertToBigInteger
public static BigInteger convertToBigInteger(String s)(Code)



convertToBoolean
public static boolean convertToBoolean(String s)(Code)



convertToByte
public static byte convertToByte(String s)(Code)



convertToDataHandler
public static javax.activation.DataHandler convertToDataHandler(String s)(Code)



convertToDate
public static Date convertToDate(String source)(Code)
Converts a given string into a date. Code from Axis1 DateDeserializer.
Parameters:
  source - Returns Date.



convertToDateTime
public static Calendar convertToDateTime(String source)(Code)
Code from Axis1 code base Note - We only follow the convention in the latest schema spec
Parameters:
  source - Returns Calendar.



convertToDecimal
public static BigDecimal convertToDecimal(String s)(Code)



convertToDouble
public static double convertToDouble(String s)(Code)



convertToDuration
public static Duration convertToDuration(String s)(Code)



convertToENTITIES
public static Entities convertToENTITIES(String s)(Code)



convertToENTITY
public static Entity convertToENTITY(String s)(Code)



convertToFloat
public static float convertToFloat(String s)(Code)



convertToGDay
public static Day convertToGDay(String s)(Code)



convertToGMonth
public static Month convertToGMonth(String s)(Code)



convertToGMonthDay
public static MonthDay convertToGMonthDay(String s)(Code)



convertToGYear
public static Year convertToGYear(String s)(Code)



convertToGYearMonth
public static YearMonth convertToGYearMonth(String s)(Code)



convertToHexBinary
public static HexBinary convertToHexBinary(String s)(Code)



convertToID
public static Id convertToID(String s)(Code)



convertToIDREF
public static IDRef convertToIDREF(String s)(Code)



convertToIDREFS
public static IDRefs convertToIDREFS(String s)(Code)



convertToId
public static Id convertToId(String s)(Code)



convertToInt
public static int convertToInt(String s)(Code)



convertToInteger
public static BigInteger convertToInteger(String s)(Code)



convertToLanguage
public static Language convertToLanguage(String s)(Code)



convertToLong
public static long convertToLong(String s)(Code)



convertToNCName
public static NCName convertToNCName(String s)(Code)



convertToNMTOKEN
public static NMToken convertToNMTOKEN(String s)(Code)



convertToNMTOKENS
public static NMTokens convertToNMTOKENS(String s)(Code)



convertToNOTATION
public static Notation convertToNOTATION(String s)(Code)



convertToName
public static Name convertToName(String s)(Code)



convertToNegativeInteger
public static NegativeInteger convertToNegativeInteger(String s)(Code)



convertToNonNegativeInteger
public static NonNegativeInteger convertToNonNegativeInteger(String s)(Code)



convertToNonPositiveInteger
public static NonPositiveInteger convertToNonPositiveInteger(String s)(Code)



convertToNormalizedString
public static NormalizedString convertToNormalizedString(String s)(Code)



convertToObject
public static Object convertToObject(String i)(Code)



convertToObject
public static Object convertToObject(boolean i)(Code)



convertToObject
public static Object convertToObject(double i)(Code)



convertToObject
public static Object convertToObject(byte i)(Code)



convertToObject
public static Object convertToObject(char i)(Code)



convertToObject
public static Object convertToObject(short i)(Code)



convertToPositiveInteger
public static PositiveInteger convertToPositiveInteger(String s)(Code)



convertToQName
public static QName convertToQName(String source, String nameSpaceuri)(Code)
Code from Axis1 code base
Parameters:
  source - Returns QName.



convertToShort
public static short convertToShort(String s)(Code)



convertToString
public static String convertToString(int i)(Code)



convertToString
public static String convertToString(float i)(Code)



convertToString
public static String convertToString(long i)(Code)



convertToString
public static String convertToString(double i)(Code)



convertToString
public static String convertToString(byte i)(Code)



convertToString
public static String convertToString(char i)(Code)



convertToString
public static String convertToString(short i)(Code)



convertToString
public static String convertToString(boolean i)(Code)



convertToString
public static String convertToString(Date value)(Code)



convertToString
public static String convertToString(Calendar value)(Code)



convertToString
public static String convertToString(Day o)(Code)



convertToString
public static String convertToString(YearMonth o)(Code)



convertToString
public static String convertToString(Year o)(Code)



convertToString
public static String convertToString(HexBinary o)(Code)



convertToString
public static String convertToString(MonthDay o)(Code)



convertToString
public static String convertToString(Time o)(Code)



convertToString
public static String convertToString(Byte o)(Code)



convertToString
public static String convertToString(BigInteger o)(Code)



convertToString
public static String convertToString(Integer o)(Code)



convertToString
public static String convertToString(Long o)(Code)



convertToString
public static String convertToString(Short o)(Code)



convertToString
public static String convertToString(UnsignedByte o)(Code)



convertToString
public static String convertToString(UnsignedInt o)(Code)



convertToString
public static String convertToString(UnsignedLong o)(Code)



convertToString
public static String convertToString(QName o)(Code)



convertToString
public static String convertToString(Object o)(Code)



convertToString
public static String convertToString(Double o)(Code)



convertToString
public static String convertToString(Duration o)(Code)



convertToString
public static String convertToString(Float o)(Code)



convertToString
public static String convertToString(Month o)(Code)



convertToString
public static String convertToString(byte[] bytes)(Code)



convertToString
public static String convertToString(javax.activation.DataHandler handler)(Code)



convertToString
public static String convertToString(String s)(Code)



convertToTime
public static Time convertToTime(String s)(Code)



convertToToken
public static Token convertToToken(String s)(Code)



convertToURI
public static URI convertToURI(String s)(Code)



convertToUnsignedByte
public static UnsignedByte convertToUnsignedByte(String s)(Code)



convertToUnsignedInt
public static UnsignedInt convertToUnsignedInt(String s)(Code)



convertToUnsignedLong
public static UnsignedLong convertToUnsignedLong(String s)(Code)



convertToUnsignedShort
public static UnsignedShort convertToUnsignedShort(String s)(Code)



getObjectForClass
public static Object getObjectForClass(Class clazz, String value)(Code)
A reflection based method to generate an instance of a given class and populate it with a given value
Parameters:
  clazz -
Parameters:
  value - object



getStringFromDatahandler
public static String getStringFromDatahandler(DataHandler dataHandler)(Code)
Converts the given .datahandler to a string string



serializeAnyType
public static void serializeAnyType(String string, XMLStreamWriter xmlStreamWriter) throws XMLStreamException(Code)
serialize the any type string object
Parameters:
  string -
Parameters:
  xmlStreamWriter -



toList
public static List toList(Object[] array)(Code)
We could have used the Arraya.asList() method but that returns an *immutable* list !!!!!
Parameters:
  array - list



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.