Java Doc for SourceWritingTransformer.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.SourceWritingTransformer

SourceWritingTransformer
public class SourceWritingTransformer extends AbstractSAXTransformer (Code)

author:
   Carsten Ziegeler
author:
   Jeremy Quinn
author:
   Gianugo Rabellino
version:
   $Id: SourceWritingTransformer.java 433543 2006-08-22 06:22:54Z crossley $


Field Summary
final public static  StringACTION_DELETE
    
final public static  StringACTION_ELEMENT
    
final public static  StringACTION_NEW
    
final public static  StringACTION_NONE
    
final public static  StringACTION_OVER
    
final public static  StringBEHAVIOUR_ELEMENT
    
final public static  StringCREATE_ATTRIBUTE
    
final public static  StringDEFAULT_SERIALIZER
    
final public static  StringDELETE_ELEMENT
    
final public static  StringEXECUTION_ELEMENT
    
final public static  StringFRAGMENT_ELEMENT
    
final public static  StringINSERT_ELEMENT
    
final public static  StringMESSAGE_ELEMENT
    
final public static  StringOVERWRITE_ATTRIBUTE
    
final public static  StringPATH_ELEMENT
    
final public static  StringREINSERT_ELEMENT
    
final public static  StringREPLACE_ELEMENT
    
final public static  StringRESULT_ELEMENT
    
final public static  StringRESULT_FAILED
    
final public static  StringRESULT_SUCCESS
    
final public static  StringSERIALIZER_ATTRIBUTE
    
final public static  StringSERIALIZER_ELEMENT
    
final public static  StringSOURCE_ELEMENT
    
final public static  StringSWT_URI
    
final public static  StringWRITE_ELEMENT
    
protected  StringconfiguredSerializerName
    
protected  XPathProcessorxpathProcessor
    

Constructor Summary
public  SourceWritingTransformer()
     Constructor.

Method Summary
public  voidconfigure(Configuration configuration)
     Get the current Configuration instance used by this Configurable.
public  voiddispose()
    
public  voidendTransformingElement(String uri, String name, String raw)
     Receive notification of the end of an element.
protected  voidinsertFragment(String systemID, String path, DocumentFragment fragment, String replacePath, boolean create, boolean overwrite, String reinsertPath, String localSerializer, String tagname)
     Insert a fragment into a file. The file is loaded by the resource connector.
Parameters:
  systemID - The name of the xml file.
Parameters:
  path - The XPath specifying the node under which the data is inserted
Parameters:
  fragment - The data to be inserted.
Parameters:
  replacePath - Optional XPath relative to path.
public  voidservice(ServiceManager manager)
    
public  voidsetup(SourceResolver resolver, Map objectModel, String src, Parameters par)
     Get the Parameter called "serializer" from the Transformer invocation.
public  voidstartTransformingElement(String uri, String name, String raw, Attributes attr)
     Receive notification of the beginning of an element.
Parameters:
  uri - The Namespace URI, or the empty string if the element has noNamespace URI or if Namespaceprocessing is not being performed.
Parameters:
  name - The local name (without prefix), or the empty string ifNamespace processing is not being performed.
Parameters:
  raw - The raw XML 1.0 name (with prefix), or the empty string ifraw names are not available.
Parameters:
  attr - The attributes attached to the element.

Field Detail
ACTION_DELETE
final public static String ACTION_DELETE(Code)



ACTION_ELEMENT
final public static String ACTION_ELEMENT(Code)



ACTION_NEW
final public static String ACTION_NEW(Code)



ACTION_NONE
final public static String ACTION_NONE(Code)



ACTION_OVER
final public static String ACTION_OVER(Code)



BEHAVIOUR_ELEMENT
final public static String BEHAVIOUR_ELEMENT(Code)



CREATE_ATTRIBUTE
final public static String CREATE_ATTRIBUTE(Code)



DEFAULT_SERIALIZER
final public static String DEFAULT_SERIALIZER(Code)



DELETE_ELEMENT
final public static String DELETE_ELEMENT(Code)



EXECUTION_ELEMENT
final public static String EXECUTION_ELEMENT(Code)



FRAGMENT_ELEMENT
final public static String FRAGMENT_ELEMENT(Code)



INSERT_ELEMENT
final public static String INSERT_ELEMENT(Code)



MESSAGE_ELEMENT
final public static String MESSAGE_ELEMENT(Code)



OVERWRITE_ATTRIBUTE
final public static String OVERWRITE_ATTRIBUTE(Code)



PATH_ELEMENT
final public static String PATH_ELEMENT(Code)



REINSERT_ELEMENT
final public static String REINSERT_ELEMENT(Code)



REPLACE_ELEMENT
final public static String REPLACE_ELEMENT(Code)



RESULT_ELEMENT
final public static String RESULT_ELEMENT(Code)
outgoing elements



RESULT_FAILED
final public static String RESULT_FAILED(Code)
results



RESULT_SUCCESS
final public static String RESULT_SUCCESS(Code)



SERIALIZER_ATTRIBUTE
final public static String SERIALIZER_ATTRIBUTE(Code)
main (write or insert) tag attributes



SERIALIZER_ELEMENT
final public static String SERIALIZER_ELEMENT(Code)



SOURCE_ELEMENT
final public static String SOURCE_ELEMENT(Code)



SWT_URI
final public static String SWT_URI(Code)



WRITE_ELEMENT
final public static String WRITE_ELEMENT(Code)
incoming elements



configuredSerializerName
protected String configuredSerializerName(Code)
The configured serializer name



xpathProcessor
protected XPathProcessor xpathProcessor(Code)
The XPath processor




Constructor Detail
SourceWritingTransformer
public SourceWritingTransformer()(Code)
Constructor. Set the namespace.




Method Detail
configure
public void configure(Configuration configuration) throws ConfigurationException(Code)
Get the current Configuration instance used by this Configurable.



dispose
public void dispose()(Code)



endTransformingElement
public void endTransformingElement(String uri, String name, String raw) throws SAXException, IOException, ProcessingException(Code)
Receive notification of the end of an element.
Parameters:
  uri - The Namespace URI, or the empty string if the element has noNamespace URI or if Namespaceprocessing is not being performed.
Parameters:
  name - The local name (without prefix), or the empty string ifNamespace processing is not being performed.
Parameters:
  raw - The raw XML 1.0 name (with prefix), or the empty string ifraw names are not available.



insertFragment
protected void insertFragment(String systemID, String path, DocumentFragment fragment, String replacePath, boolean create, boolean overwrite, String reinsertPath, String localSerializer, String tagname) throws SAXException, IOException, ProcessingException(Code)
Insert a fragment into a file. The file is loaded by the resource connector.
Parameters:
  systemID - The name of the xml file.
Parameters:
  path - The XPath specifying the node under which the data is inserted
Parameters:
  fragment - The data to be inserted.
Parameters:
  replacePath - Optional XPath relative to path. This pathcan specify a node which will be removed if it exists.So insertFragment can be used as a replace utility.
Parameters:
  create - If the file does not exists and this is set tofalse nothing is inserted. If it is setto true the file is created and the datais inserted.
Parameters:
  overwrite - If this is set to true the data is onlyinserted if the node specified by the replacePathdoes not exists.
Parameters:
  reinsertPath - If specified and a node is replaced , all children ofthis replaced node will be reinserted at the given path.
Parameters:
  localSerializer - The serializer used to serialize the XML
Parameters:
  tagname - The name of the tag that triggered me 'insert' or 'write'



service
public void service(ServiceManager manager) throws ServiceException(Code)



setup
public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException(Code)
Get the Parameter called "serializer" from the Transformer invocation.



startTransformingElement
public void startTransformingElement(String uri, String name, String raw, Attributes attr) throws SAXException, IOException, ProcessingException(Code)
Receive notification of the beginning of an element.
Parameters:
  uri - The Namespace URI, or the empty string if the element has noNamespace URI or if Namespaceprocessing is not being performed.
Parameters:
  name - The local name (without prefix), or the empty string ifNamespace processing is not being performed.
Parameters:
  raw - The raw XML 1.0 name (with prefix), or the empty string ifraw names are not available.
Parameters:
  attr - The attributes attached to the element. If there are noattributes, it shall be an empty Attributes object.



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.