org.apache.commons.beanutils.converters

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 » Library » Apache commons beanutils 1.8.0 BETA src » org.apache.commons.beanutils.converters 
org.apache.commons.beanutils.converters
Package Documentation for org.apache.commons.beanutils.converters

Standard implementations of the Converter interface that are pre-registered with ConvertUtils at startup time.

Java Source File NameTypeComment
AbstractArrayConverter.javaClass

Convenience base class for converters that translate the String representation of an array into a corresponding array of primitives object.

AbstractConverter.javaClass Base Converter implementation that provides the structure for handling conversion to and from a specified type.
ArrayConverter.javaClass Generic Converter implementaion that handles conversion to and from array objects.

Can be configured to either return a default value or throw a ConversionException if a conversion error occurs.

The main features of this implementation are:

  • Element Conversion - delegates to a Converter , appropriate for the type, to convert individual elements of the array.
ArrayConverterTestCase.javaClass Test Case for the ArrayConverter class.
BigDecimalConverter.javaClassNumberConverter implementation that handles conversion to and from java.math.BigDecimal objects.

This implementation can be configured to handle conversion either by using BigDecimal's default String conversion, or by using a Locale's pattern or by specifying a format pattern.

BigDecimalConverterTestCase.javaClass Test Case for the DoubleConverter class.
BigIntegerConverter.javaClassNumberConverter implementation that handles conversion to and from java.math.BigInteger objects.

This implementation can be configured to handle conversion either by using BigInteger's default String conversion, or by using a Locale's pattern or by specifying a format pattern.

BigIntegerConverterTestCase.javaClass Test Case for the BigInteger class.
BooleanArrayConverter.javaClass

Standard org.apache.commons.beanutils.Converter implementation that converts an incoming String into a primitive array of boolean.

BooleanArrayConverterTestCase.javaClass Test conversions of String[]->boolean[] and String->boolean[].

Note that the tests here don't rigorously test conversions of individual strings to booleans, as the BooleanArrayConverter class uses a BooleanConverter instance to do those conversions, and the BooleanConverter class has its own unit tests.

BooleanConverter.javaClassorg.apache.commons.beanutils.Converter implementaion that handles conversion to and from Boolean objects. org.apache.commons.beanutils.Converter implementaion that handles conversion to and from java.lang.Boolean objects.

Can be configured to either return a default value or throw a ConversionException if a conversion error occurs.

By default any object whose string representation is one of the values {"yes", "y", "true", "on", "1"} is converted to Boolean.TRUE, and string representations {"no", "n", "false", "off", "0"} are converted to Boolean.FALSE.

BooleanConverterTestCase.javaClass
ByteArrayConverter.javaClass

Standard org.apache.commons.beanutils.Converter implementation that converts an incoming String into a primitive array of byte.

ByteConverter.javaClassNumberConverter implementation that handles conversion to and from java.lang.Byte objects.

This implementation can be configured to handle conversion either by using Byte's default String conversion, or by using a Locale's pattern or by specifying a format pattern.

ByteConverterTestCase.javaClass Test Case for the ByteConverter class.
CalendarConverter.javaClassDateTimeConverter implementation that handles conversion to and from java.util.Calendar objects.
CalendarConverterTestCase.javaClass Test Case for the CalendarConverter class.
CharacterArrayConverter.javaClass

Standard org.apache.commons.beanutils.Converter implementation that converts an incoming String into a primitive array of char.

CharacterConverter.javaClassorg.apache.commons.beanutils.Converter implementaion that handles conversion to and from java.lang.Character objects.

Can be configured to either return a default value or throw a ConversionException if a conversion error occurs.
author:
   Craig R.

CharacterConverterTestCase.javaClass Test Case for the CharacterConverter class.
ClassConverter.javaClassorg.apache.commons.beanutils.Converter implementaion that handles conversion to and from java.lang.Class objects.
ClassConverterTestCase.javaClass Test Case for the ClassConverter class.
ClassReloader.javaClass A special classloader useful for testing j2ee-like scenarios.

In some tests we want to be able to emulate "container" frameworks, where code runs in a hierarchy of classloaders, and certain classes may be loaded by various classloaders in the hierarchy.

Normally this is done by having certain jars or class-file-directories in the classpath of some classloaders but not others.

ClassReloaderTestCase.javaClass Tests for the ClassReloader utility class.
ConverterFacade.javaClass Provides a facade for Converter implementations preventing access to any public API in the implementation, other than that specified by Converter .
ConverterTestSuite.javaClass

Created a test suite so that new test cases can be added here without having to edit the build.xml.

DateConverter.javaClassDateTimeConverter implementation that handles conversion to and from java.util.Date objects.
DateConverterTestBase.javaClass Abstract base for <Date>Converter classes.
DateConverterTestCase.javaClass Test Case for the DateConverter class.
DateTimeConverter.javaClassorg.apache.commons.beanutils.Converter implementaion that handles conversion to and from date/time objects.
DoubleArrayConverter.javaClass

Standard org.apache.commons.beanutils.Converter implementation that converts an incoming String into a primitive array of double.

DoubleConverter.javaClassNumberConverter implementation that handles conversion to and from java.lang.Double objects.

This implementation can be configured to handle conversion either by using Double's default String conversion, or by using a Locale's pattern or by specifying a format pattern.

DoubleConverterTestCase.javaClass Test Case for the DoubleConverter class.
FileConverter.javaClassorg.apache.commons.beanutils.Converter implementaion that handles conversion to and from java.io.File objects.
FileConverterTestCase.javaClass Test Case for the FileConverter class.
FloatArrayConverter.javaClass

Standard org.apache.commons.beanutils.Converter implementation that converts an incoming String into a primitive array of float.

FloatConverter.javaClassNumberConverter implementation that handles conversion to and from java.lang.Float objects.

This implementation can be configured to handle conversion either by using Float's default String conversion, or by using a Locale's pattern or by specifying a format pattern.

FloatConverterTestCase.javaClass Test Case for the FloatConverter class.
IntegerArrayConverter.javaClass

Standard org.apache.commons.beanutils.Converter implementation that converts an incoming String into a primitive array of int.

IntegerConverter.javaClassNumberConverter implementation that handles conversion to and from java.lang.Integer objects.

This implementation can be configured to handle conversion either by using Integer's default String conversion, or by using a Locale's pattern or by specifying a format pattern.

IntegerConverterTestCase.javaClass Test Case for the IntegerConverter class.
LongArrayConverter.javaClass

Standard org.apache.commons.beanutils.Converter implementation that converts an incoming String into a primitive array of long.

LongConverter.javaClassNumberConverter implementation that handles conversion to and from java.lang.Long objects.

This implementation can be configured to handle conversion either by using Long's default String conversion, or by using a Locale's pattern or by specifying a format pattern.

LongConverterTestCase.javaClass Test Case for the LongConverter class.
MemoryTestCase.javaClass This class provides a number of unit tests related to classloaders and garbage collection, particularly in j2ee-like situations.
NumberConverter.javaClassorg.apache.commons.beanutils.Converter implementaion that handles conversion to and from java.lang.Number objects.
NumberConverterTestBase.javaClass Abstract base for <Number>Converter classes.
ShortArrayConverter.javaClass

Standard org.apache.commons.beanutils.Converter implementation that converts an incoming String into a primitive array of short.

ShortConverter.javaClassNumberConverter implementation that handles conversion to and from java.lang.Short objects.

This implementation can be configured to handle conversion either by using Short's default String conversion, or by using a Locale's pattern or by specifying a format pattern.

ShortConverterTestCase.javaClass Test Case for the ShortConverter class.
SqlDateConverter.javaClassDateTimeConverter implementation that handles conversion to and from java.sql.Date objects.

This implementation can be configured to handle conversion either by using java.sql.Date's default String conversion, or by using a Locale's default format or by specifying a set of format patterns. See the DateTimeConverter documentation for further details.

Can be configured to either return a default value or throw a ConversionException if a conversion error occurs.
author:
   Craig R.

SqlDateConverterTestCase.javaClass Test Case for the SqlDateConverter class.
SqlTimeConverter.javaClassDateTimeConverter implementation that handles conversion to and from java.sql.Time objects.

This implementation can be configured to handle conversion either by using java.sql.Time's default String conversion, or by using a Locale's default format or by specifying a set of format patterns. See the DateTimeConverter documentation for further details.

Can be configured to either return a default value or throw a ConversionException if a conversion error occurs.
author:
   Craig R.

SqlTimeConverterTestCase.javaClass Test Case for the SqlTimeConverter class.
SqlTimestampConverter.javaClassDateTimeConverter implementation that handles conversion to and from java.sql.Timestamp objects.

This implementation can be configured to handle conversion either by using java.sql.Timestamp's default String conversion, or by using a Locale's default format or by specifying a set of format patterns. See the DateTimeConverter documentation for further details.

Can be configured to either return a default value or throw a ConversionException if a conversion error occurs.
author:
   Craig R.

SqlTimestampConverterTestCase.javaClass Test Case for the SqlTimestampConverter class.
StringArrayConverter.javaClass Standard org.apache.commons.beanutils.Converter implementation that converts an incoming String into an array of String objects.
StringArrayConverterTestCase.javaClass
StringConverter.javaClassorg.apache.commons.beanutils.Converter implementation that converts an incoming object into a java.lang.String object.

Note that ConvertUtils really is designed to do string->object conversions, and offers very little support for object->string conversions.

URLConverter.javaClassorg.apache.commons.beanutils.Converter implementaion that handles conversion to and from java.net.URL objects.
URLConverterTestCase.javaClass Test Case for the URLConverter class.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.