| org.apache.cocoon.components.source.impl.XModuleSource
XModuleSource | public class XModuleSource extends AbstractSource implements ModifiableSource,XMLizable,DOMBuilder.Listener(Code) | | A ModifiableSource that takes its content from a
module.
The URI syntax is
"xmodule:[|]:attribute-name[#XPath]",
where :
- an input-module name is used for finding an input-module for reading data from
,
- an output-module name is used for finding an output-module for writing data to
,
- "attribute-name" is the name of the attribute found in the module
,
- "XPath" is an XPath that is aplied on the object in the
attribute, by using JXPath.
author: Daniel Fagerstom |
Field Summary | |
protected ServiceManager | manager |
Constructor Summary | |
public | XModuleSource(Map objectModel, String uri, ServiceManager manager, Logger logger) Create a xmodule source from a 'xmodule:' uri and a the object model. |
manager | protected ServiceManager manager(Code) | | |
XModuleSource | public XModuleSource(Map objectModel, String uri, ServiceManager manager, Logger logger) throws MalformedURLException(Code) | | Create a xmodule source from a 'xmodule:' uri and a the object model.
The uri is of the form "xmodule:/attribute-type/attribute-name/xpath
|
delete | public void delete() throws SourceException(Code) | | Delete the source
|
deleteTest | public void deleteTest() throws SourceException(Code) | | FIXME
delete is an operator in java script, this method is for
testing puposes in java script only
|
exists | public boolean exists()(Code) | | Does this source actually exist ?
true if the resource exists. |
getContentHandler | public ContentHandler getContentHandler()(Code) | | Get a ContentHandler where an XML document can
be written using SAX events.
Care should be taken that the returned handler can actually
be a
org.apache.cocoon.xml.XMLConsumer supporting also
lexical events such as comments.
a handler for SAX events |
getOutputStream | public OutputStream getOutputStream() throws IOException(Code) | | Get an InputStream where raw bytes can be written to.
The signification of these bytes is implementation-dependent and
is not restricted to a serialized XML document.
a stream to write to |
|
|