This project has retired. For details please refer to its
Attic page .
DefaultDatatypeManager (Cocoon API 2.1.12-dev [March 20 2012])
org.apache.cocoon.woody.datatype
Class DefaultDatatypeManager
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.woody.datatype.DefaultDatatypeManager
All Implemented Interfaces: Disposable , Initializable , Configurable , LogEnabled , Serviceable , ThreadSafe , DatatypeManager
public class DefaultDatatypeManager extends AbstractLogEnabled implements DatatypeManager , ThreadSafe , Serviceable , Configurable , Initializable , Disposable
Implementation of the DatatypeManager component.
It supports an extensible number of datatype and validation rule implementations
by delegating the creation of them to DatatypeBuilder s and ValidationRuleBuilder s.
Currently the list of datatype and validationrule builders is hardcoded, but this will
become externally configurable in the future.
Version:
$Id: DefaultDatatypeManager.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
DefaultDatatypeManager
public DefaultDatatypeManager ()
configure
public void configure (Configuration configuration)
throws ConfigurationException
Specified by: configure in interface Configurable
Throws:
ConfigurationException
service
public void service (ServiceManager serviceManager)
throws ServiceException
Specified by: service in interface Serviceable
Throws:
ServiceException
initialize
public void initialize ()
throws Exception
Specified by: initialize in interface Initializable
Throws:
Exception
createDatatype
public Datatype createDatatype (Element datatypeElement,
boolean arrayType)
throws Exception
Description copied from interface: DatatypeManager
Creates a datatype from an XML description.
Specified by: createDatatype in interface DatatypeManager
Throws:
Exception
createValidationRule
public ValidationRule createValidationRule (Element validationRuleElement)
throws Exception
Description copied from interface: DatatypeManager
Creates a validation rule from an XML description. This will usually be used by the
DatatypeBuilder s while building a Datatype .
Specified by: createValidationRule in interface DatatypeManager
Throws:
Exception
createConvertor
public Convertor createConvertor (String dataTypeName,
Element convertorElement)
throws Exception
Description copied from interface: DatatypeManager
Creates a convertor based on an XML description.
Specified by: createConvertor in interface DatatypeManager
Throws:
Exception
dispose
public void dispose ()
Specified by: dispose in interface Disposable
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.