All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.xmlmiddleware.conversions.formatters.NoFormatter

java.lang.Object
   |
   +----org.xmlmiddleware.conversions.formatters.NoFormatter

public class NoFormatter
extends Object
implements StringFormatter
StringFormatter that just throws exceptions. For unsupported data types.

Version:
2.0
Author:
Ronald Bourret, 2002

Constructor Index

 o NoFormatter()

Method Index

 o canConvert(int)
Whether the class can convert to/from a certain type of object.
 o format(Object)
Throw an exception instead of formatting an object.
 o parse(String, int)
Throw an exception instead of parsing a string.

Constructors

 o NoFormatter
 public NoFormatter()

Methods

 o parse
 public Object parse(String s,
                     int jdbcType) throws XMLMiddlewareException
Throw an exception instead of parsing a string.

Parameters:
The - string to parse.
A - JDBC Types value indicating the type of object to return.
Returns:
Never reached.
Throws: XMLMiddlewareException
Always thrown
 o format
 public String format(Object o) throws XMLMiddlewareException
Throw an exception instead of formatting an object.

Parameters:
The - object to serialize.
Returns:
Never reached.
Throws: XMLMiddlewareException
Always thrown.
 o canConvert
 public boolean canConvert(int type)
Whether the class can convert to/from a certain type of object.

Parameters:
type - The JDBC Types value corresponding to the object type.
Returns:
Always false.

All Packages  Class Hierarchy  This Package  Previous  Next  Index