|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.xnode.XNodeFactoryImpl
org.ceryle.xnode.XNodeCollectionFactoryImpl
public class XNodeCollectionFactoryImpl
This extends XNodeFactoryImpl, implementing the XNodeCollectionFactory API, providing a factory for creating both XNodes and XNodeCollections.
The XNode Implementation (the package org.ceryle.xnode.*, both its source code and documentation), are released under the Apache 2.0 License. For more details, check the LICENSE file contained with the distribution, or see The Ceryle Project for more information. It is distributed with no warranty.
XNodeFactoryImpl,
XNodeCollectionFactory| Field Summary |
|---|
| Fields inherited from class org.ceryle.xnode.XNodeFactoryImpl |
|---|
m_xns, MARKUP_1, MARKUP_2, TEXT_NODE, XNODE_TEXT_TAGNAME, xp |
| Constructor Summary | |
|---|---|
XNodeCollectionFactoryImpl(XNodeStore xnodestore,
XMLProcessor xmlprocessor)
A constructor for a XNodeCollectionFactoryImpl, provided with the parent XNodeStore and an optional XMLProcessor. |
|
| Method Summary | |
|---|---|
XNodeCollection |
createXNodeCollection(String cid,
Node node)
Return an XNodeCollection provided a String id and its DOM Node node content. |
protected Document |
getXNodeCollectionEnvelope(String id,
String created,
String modified)
Returns an empty XNodeCollection XML DOM Document. |
Node |
getXNodeContent(XNode xnode,
boolean includeEnvelope)
Returns a DOM node representation of the provided XNode, including the XNode envelope if includeEnvelope is true. |
XNodeCollection |
recreateXNodeCollection(String cid,
String content)
Returns an XNodeCollection provided a String containing its content as a String, assuming the provided content is a serialization of an XNodeCollection. |
| Methods inherited from class org.ceryle.xnode.XNodeFactoryImpl |
|---|
createXNode, createXNode, getTextDocument, getXNodeEnvelope, recreateXNode, recreateXNode, serializeXNode, serializeXNode, setMetadataFromHeader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XNodeCollectionFactoryImpl(XNodeStore xnodestore,
XMLProcessor xmlprocessor)
throws XNodeException
xnodestore - the XNodeStore supporting the database.xmlprocessor - an optional XMLProcessor instance.
XNodeException - if the XMLProcessor or XNodeCollectionFactory cannot be established.| Method Detail |
|---|
protected Document getXNodeCollectionEnvelope(String id,
String created,
String modified)
throws XNodeException
(this is not an XNode API method)
id - the XNode unique identifiercreated - the XNode creation timestampmodified - the XNode modification timestamp (optional)
XNodeException
public XNodeCollection createXNodeCollection(String cid,
Node node)
throws XNodeException
(this is an XNode API method)
createXNodeCollection in interface XNodeCollectionFactorycid - the XNodeCollection ID.
e @param node the DOM Node to be enclosed in the XNodeCollection.
XNodeException - if an error occurs during creation.
public XNodeCollection recreateXNodeCollection(String cid,
String content)
throws XNodeException
(this is an XNode API method)
recreateXNodeCollection in interface XNodeCollectionFactorycid - the XNodeCollection ID.content - the String to be processed as XNode content.
XNodeException - if an error occurs during recreation.
public Node getXNodeContent(XNode xnode,
boolean includeEnvelope)
throws XNodeException
(this is an XNode API method)
getXNodeContent in interface XNodeCollectionFactorygetXNodeContent in interface XNodeFactorygetXNodeContent in class XNodeFactoryImplxnode - the XNode to process.includeEnvelope - when true, include the entire XNode (XML) envelope.
XNodeException - if an error occurs during processing.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||