This project has retired. For details please refer to its
Attic page .
CharConvertor (Cocoon Forms Block Implementation 1.1.0 API)
org.apache.cocoon.forms.datatype.convertor
Class CharConvertor
java.lang.Object
org.apache.cocoon.forms.datatype.convertor.CharConvertor
All Implemented Interfaces: Convertor
public class CharConvertor extends Object implements Convertor
The CharConvertor converts a String to a Character object and viceversa.
Converting from char to String, returns a String only containing the input character
Converting from String to char, returns a Character object created with the first char of the input String
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
CharConvertor
public CharConvertor ()
convertFromString
public ConversionResult convertFromString (String value,
Locale locale,
Convertor.FormatCache formatCache)
Description copied from interface: Convertor
Converts string representation into the object of convertor's type.
Specified by: convertFromString
in interface Convertor
Parameters: formatCache
- can be null if not needed
convertToString
public String convertToString (Object value,
Locale locale,
Convertor.FormatCache formatCache)
Specified by: convertToString
in interface Convertor
getTypeClass
public Class getTypeClass ()
Specified by: getTypeClass
in interface Convertor
generateSaxFragment
public void generateSaxFragment (ContentHandler contentHandler,
Locale locale)
throws SAXException
Description copied from interface: Convertor
Generates a bit of information about this convertor (optional).
Specified by: generateSaxFragment
in interface Convertor
Throws:
SAXException
Copyright © 1999-2008 The Apache Software Foundation . All Rights Reserved.