Class AbstractFormFieldGenerator
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.generation.AbstractGenerator
org.apache.cocoon.generation.ServiceableGenerator
org.ametys.plugins.forms.processing.AbstractFormFieldGenerator
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
- Direct Known Subclasses:
FormEntryInformationGenerator
,FormResultsGenerator
Abstract generator to sax form entry values
-
Field Summary
FieldsFields inherited from class org.apache.cocoon.generation.ServiceableGenerator
manager
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, source
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LocalDate
_getLocalDate
(String value) Get the local date from string valueprotected String
_getReadableValue
(Field field, Object rawValue) Get the readable value as Stringprotected ZonedDateTime
_getZonedDateTime
(String value) Get the zoned date time from string valueprotected void
saxFieldValue
(String tagName, FieldValue fdValue) Sax a field valueprotected void
saxFieldValue
(FieldValue fdValue) Sax a field valuevoid
service
(ServiceManager smanager) Methods inherited from class org.apache.cocoon.generation.ServiceableGenerator
dispose
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setup
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
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.xml.XMLProducer
setConsumer
-
Field Details
-
_formPropManager
The form properties manager
-
-
Constructor Details
-
AbstractFormFieldGenerator
public AbstractFormFieldGenerator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableGenerator
- Throws:
ServiceException
-
saxFieldValue
Sax a field value- Parameters:
fdValue
- the field value- Throws:
SAXException
- if an error occurred while saxing
-
saxFieldValue
Sax a field value- Parameters:
tagName
- the root tag namefdValue
- the field value- Throws:
SAXException
- if an error occurred while saxing
-
_getReadableValue
Get the readable value as String- Parameters:
field
- the fieldrawValue
- the raw value. Cannot be null.- Returns:
- the value as String
-
_getZonedDateTime
Get the zoned date time from string value- Parameters:
value
- the string value- Returns:
- the zoned date time. Null if string value can't be parsed
-
_getLocalDate
Get the local date from string value- Parameters:
value
- the string value- Returns:
- the local date time. Null if string value can't be parsed
-