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

java.lang.Object
  extended byorg.apache.cocoon.forms.datatype.typeimpl.AbstractDatatype
      extended byorg.apache.cocoon.forms.datatype.typeimpl.BeanType
All Implemented Interfaces:
Datatype

public class BeanType
extends AbstractDatatype

The CForm type of a bean

Version:
$Id: BeanType.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Constructor Summary
BeanType(boolean arrayType, BeanTypeBuilder builder)
          Creates a new BeanType object.
 
Method Summary
 String getDescriptiveName()
          Returns a descriptive name for the base type of this datatype, i.e.
 Convertor getPlainConvertor()
          We make sure the plain Convertor is the same
 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, 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

BeanType

public BeanType(boolean arrayType,
                BeanTypeBuilder builder)
Creates a new BeanType object.

Parameters:
arrayType - whether it's an array or not
builder - The BeanTypeBuilder
Method Detail

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', ...

See Also:
Datatype.getDescriptiveName()

getPlainConvertor

public Convertor getPlainConvertor()
We make sure the plain Convertor is the same

Specified by:
getPlainConvertor in interface Datatype
Overrides:
getPlainConvertor in class AbstractDatatype
Returns:
The convertor

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.

See Also:
Datatype.getTypeClass()


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