| org.apache.cocoon.transformation.AbstractTransformer org.apache.cocoon.transformation.AbstractSAXTransformer org.apache.cocoon.transformation.SourceWritingTransformer
Method Summary | |
public void | configure(Configuration configuration) Get the current Configuration instance used by this
Configurable . | public void | dispose() | public void | endTransformingElement(String uri, String name, String raw) Receive notification of the end of an element. | protected void | insertFragment(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 void | service(ServiceManager manager) | public void | setup(SourceResolver resolver, Map objectModel, String src, Parameters par) Get the Parameter called "serializer" from the
Transformer invocation. | public void | startTransformingElement(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. |
ACTION_ELEMENT | final public static String ACTION_ELEMENT(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) | | |
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) | | |
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
|
SourceWritingTransformer | public SourceWritingTransformer()(Code) | | Constructor. Set the namespace.
|
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 replacePath does 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) | | |
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. |
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)
|
|
|