|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dom4j.DocumentFactory
org.dom4j.tree.DelegateDocumentFactory
Field Summary |
Fields inherited from class org.dom4j.DocumentFactory |
cache |
Constructor Summary | |
DelegateDocumentFactory(NodeFactory nodeFactory,
XPathFactory xpathFactory)
Creates a new instance of DelegateDocumentFactory |
Method Summary | |
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)
|
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.
|
Methods inherited from class org.dom4j.DocumentFactory |
createQNameCache, createSingleton, getInstance, getNamespace, getNoNamespace, getQNames, getXmlNameSpace, getXPathNamespaceURIs, init, intern, setXPathNamespaceURIs |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DelegateDocumentFactory(NodeFactory nodeFactory, XPathFactory xpathFactory)
Method Detail |
public Attribute createAttribute(Element owner, java.lang.String name, java.lang.String value)
createAttribute
in interface NodeFactory
createAttribute
in class DocumentFactory
public Attribute createAttribute(Element owner, QName qname, java.lang.String value)
createAttribute
in interface NodeFactory
createAttribute
in class DocumentFactory
public CDATA createCDATA(java.lang.String text)
createCDATA
in interface NodeFactory
createCDATA
in class DocumentFactory
public Comment createComment(java.lang.String text)
createComment
in interface NodeFactory
createComment
in class DocumentFactory
public DocumentType createDocType(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
createDocType
in interface NodeFactory
createDocType
in class DocumentFactory
public Document createDocument()
createDocument
in interface NodeFactory
createDocument
in class DocumentFactory
public Document createDocument(Element rootElement)
createDocument
in interface NodeFactory
createDocument
in class DocumentFactory
public Element createElement(QName qname)
createElement
in interface NodeFactory
createElement
in class DocumentFactory
public Element createElement(java.lang.String name)
createElement
in interface NodeFactory
createElement
in class DocumentFactory
public Element createElement(java.lang.String qualifiedName, java.lang.String namespaceURI)
createElement
in interface NodeFactory
createElement
in class DocumentFactory
public Entity createEntity(java.lang.String name, java.lang.String text)
createEntity
in interface NodeFactory
createEntity
in class DocumentFactory
public Namespace createNamespace(java.lang.String prefix, java.lang.String uri)
createNamespace
in interface NodeFactory
createNamespace
in class DocumentFactory
public Pattern createPattern(java.lang.String xpathPattern)
DocumentFactory
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
createPattern
in class DocumentFactory
xpathPattern
- is the XPath pattern expression
to create
Pattern
instancepublic ProcessingInstruction createProcessingInstruction(java.lang.String target, java.util.Map data)
createProcessingInstruction
in interface NodeFactory
createProcessingInstruction
in class DocumentFactory
public ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data)
createProcessingInstruction
in interface NodeFactory
createProcessingInstruction
in class DocumentFactory
public QName createQName(java.lang.String localName)
createQName
in interface NodeFactory
createQName
in class DocumentFactory
public QName createQName(java.lang.String qualifiedName, java.lang.String uri)
createQName
in interface NodeFactory
createQName
in class DocumentFactory
public QName createQName(java.lang.String localName, Namespace namespace)
createQName
in interface NodeFactory
createQName
in class DocumentFactory
public QName createQName(java.lang.String name, java.lang.String prefix, java.lang.String uri)
createQName
in interface NodeFactory
createQName
in class DocumentFactory
public Text createText(java.lang.String text)
createText
in interface NodeFactory
createText
in class DocumentFactory
public XPath createXPath(java.lang.String xpathExpression) throws InvalidXPathException
DocumentFactory
createXPath
parses an XPath expression
and creates a new XPath XPath
instance.
createXPath
in interface XPathFactory
createXPath
in class DocumentFactory
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)
DocumentFactory
createXPath
parses an XPath expression
and creates a new XPath XPath
instance.
createXPath
in interface XPathFactory
createXPath
in class DocumentFactory
xpathExpression
- is the XPath expression to createvariableContext
- is the variable context to use when evaluating the XPath
XPath
instancepublic NodeFilter createXPathFilter(java.lang.String xpathFilterExpression)
DocumentFactory
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
createXPathFilter
in class DocumentFactory
xpathFilterExpression
- is the XPath filter expression
to create
NodeFilter
instancepublic NodeFilter createXPathFilter(java.lang.String xpathFilterExpression, org.jaxen.VariableContext variableContext)
DocumentFactory
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
createXPathFilter
in class DocumentFactory
xpathFilterExpression
- is the XPath filter expression
to createvariableContext
- is the variable context to use when evaluating the XPath
NodeFilter
instance
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |