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

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.forms.datatype.typeimpl.AbstractDatatypeBuilder
All Implemented Interfaces:
Disposable, Configurable, Contextualizable, LogEnabled, Serviceable, DatatypeBuilder
Direct Known Subclasses:
BeanTypeBuilder, BooleanTypeBuilder, CharTypeBuilder, DateTypeBuilder, DecimalTypeBuilder, DoubleTypeBuilder, EnumTypeBuilder, FloatTypeBuilder, IntegerTypeBuilder, LongTypeBuilder, StringTypeBuilder

public abstract class AbstractDatatypeBuilder
extends AbstractLogEnabled
implements DatatypeBuilder, Serviceable, Configurable, Contextualizable, Disposable

Abstract base class for datatype builders, most concrete datatype builders will derive from this class.

Version:
$Id: AbstractDatatypeBuilder.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Field Summary
protected  ServiceManager serviceManager
           
 
Constructor Summary
AbstractDatatypeBuilder()
           
 
Method Summary
 Convertor buildConvertor(Element convertorEl)
           
 void buildConvertor(Element datatypeEl, AbstractDatatype datatype)
           
protected  void buildValidationRules(Element datatypeElement, AbstractDatatype datatype, DatatypeManager datatypeManager)
           
 void configure(Configuration configuration)
           
 void contextualize(Context context)
           
 void dispose()
           
 Convertor getPlainConvertor()
           
 void service(ServiceManager serviceManager)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.forms.datatype.DatatypeBuilder
build
 

Field Detail

serviceManager

protected ServiceManager serviceManager
Constructor Detail

AbstractDatatypeBuilder

public AbstractDatatypeBuilder()
Method Detail

service

public void service(ServiceManager serviceManager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException

contextualize

public void contextualize(Context context)
                   throws ContextException
Specified by:
contextualize in interface Contextualizable
Throws:
ContextException

configure

public void configure(Configuration configuration)
               throws ConfigurationException
Specified by:
configure in interface Configurable
Throws:
ConfigurationException

dispose

public void dispose()
Specified by:
dispose in interface Disposable

buildConvertor

public void buildConvertor(Element datatypeEl,
                           AbstractDatatype datatype)
                    throws Exception
Throws:
Exception

buildConvertor

public Convertor buildConvertor(Element convertorEl)
                         throws Exception
Specified by:
buildConvertor in interface DatatypeBuilder
Throws:
Exception

getPlainConvertor

public Convertor getPlainConvertor()
Specified by:
getPlainConvertor in interface DatatypeBuilder

buildValidationRules

protected void buildValidationRules(Element datatypeElement,
                                    AbstractDatatype datatype,
                                    DatatypeManager datatypeManager)
                             throws Exception
Throws:
Exception


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