org.apache.cocoon.forms.datatype.typeimpl
Class CharType

java.lang.Object
  extended by org.apache.cocoon.forms.datatype.typeimpl.AbstractDatatype
      extended by org.apache.cocoon.forms.datatype.typeimpl.CharType
All Implemented Interfaces:
Datatype

public class CharType
extends AbstractDatatype

The char datatype.

This datatype is useful when you are binding to a bean which have a char property. In that case you cannot use the string datatype, because JXPath will raise an error not being able to convert it.


Constructor Summary
CharType()
           
 
Method Summary
 String getDescriptiveName()
          Returns a descriptive name for the base type of this datatype, i.e. something like 'string', 'long', 'decimal', ...
 Class getTypeClass()
          Gets the class object for the type represented by this datatype.
 
Methods inherited from class org.apache.cocoon.forms.datatype.typeimpl.AbstractDatatype
addValidationRule, convertFromString, convertToString, generateSaxFragment, getBuilder, getConvertor, getPlainConvertor, isArrayType, setArrayType, setBuilder, setConvertor, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharType

public CharType()
Method Detail

getTypeClass

public Class getTypeClass()
Description copied from interface: Datatype
Gets the class object for the type represented by this datatype. E.g. Long, String, ... The objects returned from the convertFromString* methods are of this type, and the object passed to the convertToString* or validate methods should be of this type.


getDescriptiveName

public String getDescriptiveName()
Description copied from interface: Datatype
Returns a descriptive name for the base type of this datatype, i.e. something like 'string', 'long', 'decimal', ...



Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.