|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ozoneDB.OzoneObject
org.ozoneDB.xml.dom4j.o3impl.OzoneDocumentFactoryImpl
OzoneDocumentFactoryImpl
is a collection of factory methods to allow
easy custom building of DOM4J trees. The default tree that is built uses
a doubly linked tree.
The tree built allows full XPath expressions from anywhere on the tree.
Field Summary | |
protected O3NamespaceCache |
namespaceCache
|
protected O3QNameCache |
qnameCache
|
Fields inherited from interface org.ozoneDB.xml.dom4j.OzoneDocumentFactory |
OBJECT_NAME |
Constructor Summary | |
OzoneDocumentFactoryImpl()
|
Method Summary | |
static OzoneDocumentFactory |
create(org.ozoneDB.OzoneInterface db)
|
Attribute |
createAttribute(Element owner,
QName qname,
java.lang.String value)
|
Attribute |
createAttribute(Element owner,
java.lang.String name,
java.lang.String value)
|
CDATA |
createCDATA(java.lang.String text)
|
Comment |
createComment(java.lang.String text)
|
DocumentType |
createDocType(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
|
Document |
createDocument()
|
Document |
createDocument(Element rootElement)
|
Document |
createDocument(Element rootElement,
java.lang.String name)
|
Document |
createDocument(java.lang.String name)
|
Element |
createElement(QName qname)
|
Element |
createElement(java.lang.String name)
|
Element |
createElement(java.lang.String qualifiedName,
java.lang.String namespaceURI)
|
Entity |
createEntity(java.lang.String name,
java.lang.String text)
|
Namespace |
createNamespace(java.lang.String prefix,
java.lang.String uri)
|
Pattern |
createPattern(java.lang.String xpathPattern)
createPattern parses the given
XPath expression to create an XSLT style Pattern instance
which can then be used in an XSLT processing model. |
ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.util.Map data)
|
ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data)
|
QName |
createQName(java.lang.String localName)
|
QName |
createQName(java.lang.String localName,
Namespace namespace)
|
QName |
createQName(java.lang.String qualifiedName,
java.lang.String uri)
|
QName |
createQName(java.lang.String name,
java.lang.String prefix,
java.lang.String uri)
|
Text |
createText(java.lang.String text)
|
XPath |
createXPath(java.lang.String xpathExpression)
createXPath parses an XPath expression
and creates a new XPath XPath instance. |
XPath |
createXPath(java.lang.String xpathExpression,
org.jaxen.VariableContext variableContext)
createXPath parses an XPath expression
and creates a new XPath XPath instance. |
NodeFilter |
createXPathFilter(java.lang.String xpathFilterExpression)
createXPathFilter parses a NodeFilter
from the given XPath filter expression.
|
NodeFilter |
createXPathFilter(java.lang.String xpathFilterExpression,
org.jaxen.VariableContext variableContext)
createXPathFilter parses a NodeFilter
from the given XPath filter expression.
|
static OzoneDocumentFactory |
getInstance(org.ozoneDB.OzoneInterface db)
|
Namespace |
getNamespace(java.lang.String uri)
|
O3NamespaceCache |
getNamespaceCache()
|
Namespace |
getNoNamespace()
|
java.util.List |
getQNames()
Deprecated. or was it just forgotten when the interfaces war created? |
Namespace |
getXmlNameSpace()
|
java.util.Map |
getXPathNamespaceURIs()
|
protected QName |
intern(QName qname)
|
void |
onActivate()
|
void |
onCreate()
|
void |
onPassivate()
|
void |
setNamespaceCache(O3NamespaceCache namespaceCache)
|
void |
setXPathNamespaceURIs(java.util.Map xpathNamespaceURIs)
Deprecated. or was it just forgotten and should be in XPathFactory |
Methods inherited from class org.ozoneDB.OzoneObject |
container, database, deleteRecursive, equals, getHandle, getObjectID, handle, hashCode, onDelete, requireWriteLocking, self, setContainer, toString, toXML |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.ozoneDB.OzoneCompatibleOrProxy |
getObjectID |
Field Detail |
protected transient O3QNameCache qnameCache
protected transient O3NamespaceCache namespaceCache
Constructor Detail |
public OzoneDocumentFactoryImpl()
Method Detail |
public static OzoneDocumentFactory getInstance(org.ozoneDB.OzoneInterface db)
public static OzoneDocumentFactory create(org.ozoneDB.OzoneInterface db)
public void onCreate()
onCreate
in interface org.ozoneDB.OzoneCompatible
public void onActivate()
onActivate
in interface org.ozoneDB.OzoneCompatible
public void onPassivate()
onPassivate
in interface org.ozoneDB.OzoneCompatible
public Document createDocument()
createDocument
in interface NodeFactory
public Document createDocument(Element rootElement)
createDocument
in interface NodeFactory
public Document createDocument(java.lang.String name)
createDocument
in interface OzoneDocumentFactory
name
- is the name for the document which is used to retrieve the
document at a later time.
public Document createDocument(Element rootElement, java.lang.String name)
createDocument
in interface OzoneDocumentFactory
rootElement
- name
- is the name for the document which is used to retrieve the
document at a later time.
public DocumentType createDocType(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
createDocType
in interface NodeFactory
public Element createElement(QName qname)
createElement
in interface NodeFactory
public Element createElement(java.lang.String name)
createElement
in interface NodeFactory
public Element createElement(java.lang.String qualifiedName, java.lang.String namespaceURI)
createElement
in interface NodeFactory
public Attribute createAttribute(Element owner, QName qname, java.lang.String value)
createAttribute
in interface NodeFactory
public Attribute createAttribute(Element owner, java.lang.String name, java.lang.String value)
createAttribute
in interface NodeFactory
public CDATA createCDATA(java.lang.String text)
createCDATA
in interface NodeFactory
public Comment createComment(java.lang.String text)
createComment
in interface NodeFactory
public Text createText(java.lang.String text)
createText
in interface NodeFactory
public Entity createEntity(java.lang.String name, java.lang.String text)
createEntity
in interface NodeFactory
public Namespace createNamespace(java.lang.String prefix, java.lang.String uri)
createNamespace
in interface NodeFactory
public Namespace getNamespace(java.lang.String uri)
getNamespace
in interface NodeFactory
public Namespace getXmlNameSpace()
getXmlNameSpace
in interface NodeFactory
public Namespace getNoNamespace()
getNoNamespace
in interface NodeFactory
public ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data)
createProcessingInstruction
in interface NodeFactory
public ProcessingInstruction createProcessingInstruction(java.lang.String target, java.util.Map data)
createProcessingInstruction
in interface NodeFactory
public QName createQName(java.lang.String localName, Namespace namespace)
createQName
in interface NodeFactory
public QName createQName(java.lang.String localName)
createQName
in interface NodeFactory
public QName createQName(java.lang.String name, java.lang.String prefix, java.lang.String uri)
createQName
in interface NodeFactory
public QName createQName(java.lang.String qualifiedName, java.lang.String uri)
createQName
in interface NodeFactory
public XPath createXPath(java.lang.String xpathExpression) throws InvalidXPathException
createXPath
parses an XPath expression
and creates a new XPath XPath
instance.
createXPath
in interface XPathFactory
xpathExpression
- is the XPath expression to create
XPath
instance
InvalidXPathException
- if the XPath expression is invalidpublic XPath createXPath(java.lang.String xpathExpression, org.jaxen.VariableContext variableContext)
createXPath
parses an XPath expression
and creates a new XPath XPath
instance.
createXPath
in interface XPathFactory
xpathExpression
- is the XPath expression to createvariableContext
- is the variable context to use when evaluating the XPath
XPath
instance
InvalidXPathException
- if the XPath expression is invalidpublic NodeFilter createXPathFilter(java.lang.String xpathFilterExpression, org.jaxen.VariableContext variableContext)
createXPathFilter
parses a NodeFilter
from the given XPath filter expression.
XPath filter expressions occur within XPath expressions such as
self::node()[ filterExpression ]
createXPathFilter
in interface XPathFactory
xpathFilterExpression
- is the XPath filter expression
to createvariableContext
- is the variable context to use when evaluating the XPath
NodeFilter
instancepublic NodeFilter createXPathFilter(java.lang.String xpathFilterExpression)
createXPathFilter
parses a NodeFilter
from the given XPath filter expression.
XPath filter expressions occur within XPath expressions such as
self::node()[ filterExpression ]
createXPathFilter
in interface XPathFactory
xpathFilterExpression
- is the XPath filter expression
to create
NodeFilter
instancepublic Pattern createPattern(java.lang.String xpathPattern)
createPattern
parses the given
XPath expression to create an XSLT style Pattern
instance
which can then be used in an XSLT processing model.
createPattern
in interface XPathFactory
xpathPattern
- is the XPath pattern expression
to create
Pattern
instancepublic java.util.List getQNames()
getQNames
in interface OzoneDocumentFactory
public java.util.Map getXPathNamespaceURIs()
getXPathNamespaceURIs
in interface OzoneDocumentFactory
public void setXPathNamespaceURIs(java.util.Map xpathNamespaceURIs)
setXPathNamespaceURIs
in interface XPathFactory
public O3NamespaceCache getNamespaceCache()
public void setNamespaceCache(O3NamespaceCache namespaceCache)
protected QName intern(QName qname)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |