Java Doc for SimpleFormTransformer.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » cocoon » transformation » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Content Management System » apache lenya 2.0 » org.apache.cocoon.transformation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.cocoon.transformation.AbstractTransformer
   org.apache.cocoon.transformation.AbstractSAXTransformer
      org.apache.cocoon.transformation.SimpleFormTransformer

SimpleFormTransformer
public class SimpleFormTransformer extends AbstractSAXTransformer (Code)

author:
   Christian Haul
version:
   $Id: SimpleFormTransformer.java 433543 2006-08-22 06:22:54Z crossley $

Inner Class :protected static class RepeaterStatus
Inner Class :protected static class ValueList

Field Summary
final protected static  StringINPUT_MODULE_ROLE
    
final protected static  StringINPUT_MODULE_SELECTOR
    
protected  MapformValues
     Map of ValueList to track multiple parameters.
protected  intrecordingCount
     Count nested repeat elements.
protected  Listrepeater
     List of RepeaterStatus elements keeping track of nested repeat blocks.
protected  booleanskipChildrenOnly
     Skip element's content only.
protected  MapvalidationResults
    
protected  Object[]values
    

Constructor Summary
public  SimpleFormTransformer()
    

Method Summary
public  voidconfigure(Configuration config)
    
protected  voidendRepeatElement(String uri, String name, String raw)
     Stop recording repeat contents and replay required number of times.
public  voidendTransformingElement(String uri, String name, String raw)
     Start processing elements of our namespace.
protected  StringprintAttributes(Attributes attr)
     Generate string representation of attributes.
public  voidrecycle()
     Recycle this component.
protected  voidrelayEndElement(String uri, String name, String raw)
     Calls the super's method endTransformingElement and decrements the ignoreEventsCount if larger than zero.
protected  voidrelayStartElement(String uri, String name, String raw, Attributes attr)
     Calls the super's method startTransformingElement.
protected  voidrelayStartElement(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  voidsetup(SourceResolver resolver, Map objectModel, String src, Parameters par)
     Setup the next round.
protected  voidstartCheckableElement(String aName, String uri, String name, String raw, AttributesImpl attributes)
     Handle input elements that may have a "checked" attributes, i.e.
protected  voidstartErrorElement(String uri, String name, String raw, Attributes attr)
     Handle error elements.
protected  voidstartFormElement(String uri, String name, String raw, Attributes attr)
     Start processing a form element.
protected  voidstartInputElement(String uri, String name, String raw, Attributes attr)
     Handle input elements.
protected  voidstartNonCheckableElement(String aName, String uri, String name, String raw, AttributesImpl attributes)
     Handle input elements that may don't have a "checked" attributes, e.g.
protected  voidstartOptionElement(String uri, String name, String raw, Attributes attr)
     Handle option elements.
protected  voidstartRepeatElement(String uri, String name, String raw, Attributes attr)
     Start recording repeat element contents and push repeat expression and variable to repeater stack.
protected  voidstartSelectElement(String uri, String name, String raw, Attributes attr)
     Handle select elements.
protected  voidstartTextareaElement(String uri, String name, String raw, Attributes attributes)
     Handles textarea elements.
public  voidstartTransformingElement(String uri, String name, String raw, Attributes attr)
     Start processing elements of our namespace.

Field Detail
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




Constructor Detail
SimpleFormTransformer
public SimpleFormTransformer()(Code)




Method Detail
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(String uri, String name, String raw, Attributes attr) throws SAXException(Code)
Calls the super's method startTransformingElement.
Parameters:
  uri -
Parameters:
  name -
Parameters:
  raw -
Parameters:
  attr -
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.



startCheckableElement
protected void startCheckableElement(String aName, String uri, String name, String raw, AttributesImpl attributes) throws SAXException(Code)
Handle input elements that may have a "checked" attributes, i.e. checkbox and radio.



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.



startInputElement
protected void startInputElement(String uri, String name, String raw, Attributes attr) throws SAXException(Code)
Handle input elements. Calls startCheckableElement or startNonCheckableElement.



startNonCheckableElement
protected void startNonCheckableElement(String aName, String uri, String name, String raw, AttributesImpl attributes) throws SAXException(Code)
Handle input elements that may don't have a "checked" attributes, e.g. text, password, button.



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 -



startSelectElement
protected void startSelectElement(String uri, String name, String raw, Attributes attr) throws SAXException(Code)
Handle select elements. Sets up some instance variables for following option elements.



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.



Fields inherited from org.apache.cocoon.transformation.AbstractSAXTransformer
final protected static Attributes EMPTY_ATTRIBUTES(Code)(Java Doc)
protected Context context(Code)(Java Doc)
protected String defaultNamespaceURI(Code)(Java Doc)
protected Attributes emptyAttributes(Code)(Java Doc)
protected boolean ignoreEmptyCharacters(Code)(Java Doc)
protected int ignoreEventsCount(Code)(Java Doc)
protected int ignoreHooksCount(Code)(Java Doc)
protected boolean ignoreWhitespaces(Code)(Java Doc)
protected ServiceManager manager(Code)(Java Doc)
protected String namespaceURI(Code)(Java Doc)
protected Map objectModel(Code)(Java Doc)
protected Parameters parameters(Code)(Java Doc)
final protected Stack recorderStack(Code)(Java Doc)
protected Request request(Code)(Java Doc)
protected SourceResolver resolver(Code)(Java Doc)
protected Response response(Code)(Java Doc)
protected String source(Code)(Java Doc)
final protected Stack stack(Code)(Java Doc)

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)


www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.