| org.apache.cocoon.transformation.AbstractTransformer org.apache.cocoon.transformation.AbstractSAXTransformer org.apache.cocoon.transformation.SimpleFormTransformer
Inner Class :protected static class RepeaterStatus | |
Inner Class :protected static class ValueList | |
Method Summary | |
public void | configure(Configuration config) | protected void | endRepeatElement(String uri, String name, String raw) Stop recording repeat contents and replay required number of times. | public void | endTransformingElement(String uri, String name, String raw) Start processing elements of our namespace. | protected String | printAttributes(Attributes attr) Generate string representation of attributes. | public void | recycle() Recycle this component. | protected void | relayEndElement(String uri, String name, String raw) Calls the super's method endTransformingElement and decrements the
ignoreEventsCount if larger than zero. | protected void | relayStartElement(String uri, String name, String raw, Attributes attr) Calls the super's method startTransformingElement. | protected void | relayStartElement(boolean skip, boolean skipChildrenOnly, String uri, String name, String raw, Attributes attr) Calls the super's method startTransformingElement and increments the
ignoreEventsCount if skip is true. | public void | setup(SourceResolver resolver, Map objectModel, String src, Parameters par) Setup the next round. | protected void | startCheckableElement(String aName, String uri, String name, String raw, AttributesImpl attributes) Handle input elements that may have a "checked" attributes,
i.e. | protected void | startErrorElement(String uri, String name, String raw, Attributes attr) Handle error elements. | protected void | startFormElement(String uri, String name, String raw, Attributes attr) Start processing a form element. | protected void | startInputElement(String uri, String name, String raw, Attributes attr) Handle input elements. | protected void | startNonCheckableElement(String aName, String uri, String name, String raw, AttributesImpl attributes) Handle input elements that may don't have a "checked"
attributes, e.g. | protected void | startOptionElement(String uri, String name, String raw, Attributes attr) Handle option elements. | protected void | startRepeatElement(String uri, String name, String raw, Attributes attr) Start recording repeat element contents and push repeat expression and
variable to repeater stack. | protected void | startSelectElement(String uri, String name, String raw, Attributes attr) Handle select elements. | protected void | startTextareaElement(String uri, String name, String raw, Attributes attributes) Handles textarea elements. | public void | startTransformingElement(String uri, String name, String raw, Attributes attr) Start processing elements of our namespace. |
INPUT_MODULE_ROLE | final protected static String INPUT_MODULE_ROLE(Code) | | |
INPUT_MODULE_SELECTOR | final protected static String INPUT_MODULE_SELECTOR(Code) | | |
formValues | protected Map formValues(Code) | | Map of
ValueList to track multiple parameters.
|
recordingCount | protected int recordingCount(Code) | | Count nested repeat elements.
|
repeater | protected List repeater(Code) | | List of
RepeaterStatus elements keeping track of nested repeat blocks.
|
skipChildrenOnly | protected boolean skipChildrenOnly(Code) | | Skip element's content only. Otherwise skip also surrounding element.
|
validationResults | protected Map validationResults(Code) | | current request's validation results (all validated elements)
|
values | protected Object[] values(Code) | | current element's request parameter values
|
SimpleFormTransformer | public SimpleFormTransformer()(Code) | | |
configure | public void configure(Configuration config) throws ConfigurationException(Code) | | Avalon Configurable Interface
|
endRepeatElement | protected void endRepeatElement(String uri, String name, String raw) throws SAXException(Code) | | Stop recording repeat contents and replay required number of times.
Stop only if outmost repeat element is ending.
Parameters: uri - Parameters: name - Parameters: raw - throws: SAXException - |
endTransformingElement | public void endTransformingElement(String uri, String name, String raw) throws SAXException(Code) | | Start processing elements of our namespace.
This hook is invoked for each sax event with our namespace.
Parameters: uri - The namespace of the element. Parameters: name - The local name of the element. Parameters: raw - The qualified name of the element. |
printAttributes | protected String printAttributes(Attributes attr)(Code) | | Generate string representation of attributes. For debug only.
|
recycle | public void recycle()(Code) | | Recycle this component.
|
relayEndElement | protected void relayEndElement(String uri, String name, String raw) throws SAXException(Code) | | Calls the super's method endTransformingElement and decrements the
ignoreEventsCount if larger than zero.
Parameters: uri - Parameters: name - Parameters: raw - throws: SAXException - |
relayStartElement | protected void relayStartElement(boolean skip, boolean skipChildrenOnly, String uri, String name, String raw, Attributes attr) throws SAXException(Code) | | Calls the super's method startTransformingElement and increments the
ignoreEventsCount if skip is true. Increment can be done either before
invoking super's method, so that the element itself is skipped, or afterwards,
so that only the children are skipped.
Parameters: skip - Parameters: skipChildrenOnly - Parameters: uri - Parameters: name - Parameters: raw - Parameters: attr - throws: SAXException - |
setup | public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException(Code) | | Setup the next round.
The instance variables are initialised.
Parameters: resolver - The current SourceResolver Parameters: objectModel - The objectModel of the environment. Parameters: src - The value of the src attribute in the sitemap. Parameters: par - The parameters from the sitemap. |
startErrorElement | protected void startErrorElement(String uri, String name, String raw, Attributes attr) throws SAXException(Code) | | Handle error elements. If validation results are available,
compares validation result for parameter with the same name as
the "name" attribute with the result names is "when" and
"when-ge". Drops element and all nested events when error
condition is not met.
|
startFormElement | protected void startFormElement(String uri, String name, String raw, Attributes attr) throws SAXException(Code) | | Start processing a form element. Sets protection indicator if attribute
"fixed" is present and either "true" or "yes". Removes attribute "fixed"
if present.
Parameters: uri - The namespace of the element. Parameters: name - The local name of the element. Parameters: raw - The qualified name of the element. Parameters: attr - The attributes of the element. |
startOptionElement | protected void startOptionElement(String uri, String name, String raw, Attributes attr) throws SAXException(Code) | | Handle option elements. Uses instance variables set up by
startSelectElement. Relies on option having a "value"
attribute, i.e. does not check following characters if "value"
is not present.
|
startRepeatElement | protected void startRepeatElement(String uri, String name, String raw, Attributes attr) throws SAXException(Code) | | Start recording repeat element contents and push repeat expression and
variable to repeater stack. Only start recording, if no other recorder is
currently running.
Parameters: uri - Parameters: name - Parameters: raw - Parameters: attr - throws: SAXException - |
startTextareaElement | protected void startTextareaElement(String uri, String name, String raw, Attributes attributes) throws SAXException(Code) | | Handles textarea elements. Skips nested events if request
parameter with same name exists.
|
startTransformingElement | public void startTransformingElement(String uri, String name, String raw, Attributes attr) throws SAXException(Code) | | Start processing elements of our namespace.
This hook is invoked for each sax event with our namespace.
Parameters: uri - The namespace of the element. Parameters: name - The local name of the element. Parameters: raw - The qualified name of the element. Parameters: attr - The attributes of the element. |
Methods inherited from org.apache.cocoon.transformation.AbstractSAXTransformer | protected void addRecorder(XMLConsumer recorder)(Code)(Java Doc) public void characters(char[] p0, int p1, int p2) throws SAXException(Code)(Java Doc) public void comment(char ary, int start, int length) throws SAXException(Code)(Java Doc) public void configure(Configuration configuration) throws ConfigurationException(Code)(Java Doc) public void dispose()(Code)(Java Doc) public void endCDATA() throws SAXException(Code)(Java Doc) public void endDTD() throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String name, String raw) throws SAXException(Code)(Java Doc) public void endEntity(String name) throws SAXException(Code)(Java Doc) public SourceParameters endParametersRecording(Parameters source) throws SAXException(Code)(Java Doc) public SourceParameters endParametersRecording(SourceParameters source) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public DocumentFragment endRecording() throws SAXException(Code)(Java Doc) public XMLizable endSAXRecording() throws SAXException(Code)(Java Doc) public String endSerializedXMLRecording() throws SAXException, ProcessingException(Code)(Java Doc) public String endTextRecording() throws SAXException(Code)(Java Doc) public void endTransformingElement(String uri, String name, String raw) throws ProcessingException, IOException, SAXException(Code)(Java Doc) protected String findPrefixMapping(String uri)(Code)(Java Doc) protected AttributesImpl getMutableAttributes(Attributes a)(Code)(Java Doc) public void ignorableWhitespace(char[] p0, int p1, int p2) throws SAXException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public void recycle()(Code)(Java Doc) protected Object removeRecorder()(Code)(Java Doc) public void sendEndElementEvent(String localname) throws SAXException(Code)(Java Doc) public void sendEndElementEventNS(String localname) throws SAXException(Code)(Java Doc) protected void sendEndPrefixMapping() throws SAXException(Code)(Java Doc) public void sendEvents(Node node) throws SAXException(Code)(Java Doc) public void sendParametersEvents(SourceParameters pars) throws SAXException(Code)(Java Doc) public void sendStartElementEvent(String localname) throws SAXException(Code)(Java Doc) public void sendStartElementEvent(String localname, Attributes attr) throws SAXException(Code)(Java Doc) public void sendStartElementEventNS(String localname) throws SAXException(Code)(Java Doc) public void sendStartElementEventNS(String localname, Attributes attr) throws SAXException(Code)(Java Doc) protected void sendStartPrefixMapping() throws SAXException(Code)(Java Doc) public void sendTextEvent(String text) throws SAXException(Code)(Java Doc) public void service(ServiceManager manager) throws ServiceException(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void setup(SourceResolver resolver, Map objectModel, String src, Parameters params) throws ProcessingException, SAXException, IOException(Code)(Java Doc) public void setupTransforming() throws IOException, ProcessingException, SAXException(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startCDATA() throws SAXException(Code)(Java Doc) public void startDTD(String name, String public_id, String system_id) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String name, String raw, Attributes attr) throws SAXException(Code)(Java Doc) public void startEntity(String name) throws SAXException(Code)(Java Doc) public void startParametersRecording() throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void startRecording() throws SAXException(Code)(Java Doc) public void startSAXRecording() throws SAXException(Code)(Java Doc) public void startSerializedXMLRecording(Properties format) throws SAXException(Code)(Java Doc) public void startTextRecording() throws SAXException(Code)(Java Doc) public void startTransformingElement(String uri, String name, String raw, Attributes attr) throws ProcessingException, IOException, SAXException(Code)(Java Doc)
|
|
|