Package org.dom4j.util
Class ProxyDocumentFactory
- java.lang.Object
-
- org.dom4j.util.ProxyDocumentFactory
-
public abstract class ProxyDocumentFactory extends java.lang.Object
ProxyDocumentFactory
implements a proxy to a DocumentFactory which is useful for implementation inheritence, allowing the pipelining of various factory implementations. For example an EncodingDocumentFactory which takes care of encoding strings outside of allowable XML ranges could be used with a DatatypeDocumentFactory which is XML Schema Data Type aware.
-
-
Constructor Summary
Constructors Constructor Description ProxyDocumentFactory()
ProxyDocumentFactory(DocumentFactory proxy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attribute
createAttribute(Element owner, java.lang.String name, java.lang.String value)
Attribute
createAttribute(Element owner, QName qname, 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(java.lang.String name)
Element
createElement(QName qname)
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)
ProcessingInstruction
createProcessingInstruction(java.lang.String target, java.lang.String data)
ProcessingInstruction
createProcessingInstruction(java.lang.String target, java.util.Map<java.lang.String,java.lang.String> data)
QName
createQName(java.lang.String localName)
QName
createQName(java.lang.String qualifiedName, java.lang.String uri)
QName
createQName(java.lang.String name, java.lang.String prefix, java.lang.String uri)
QName
createQName(java.lang.String localName, Namespace namespace)
Text
createText(java.lang.String text)
XPath
createXPath(java.lang.String xpathExpression)
XPath
createXPath(java.lang.String xpathExpression, org.jaxen.VariableContext variableContext)
NodeFilter
createXPathFilter(java.lang.String xpathFilterExpression)
NodeFilter
createXPathFilter(java.lang.String xpathFilterExpression, org.jaxen.VariableContext variableContext)
protected DocumentFactory
getProxy()
protected void
setProxy(DocumentFactory proxy)
-
-
-
Constructor Detail
-
ProxyDocumentFactory
public ProxyDocumentFactory()
-
ProxyDocumentFactory
public ProxyDocumentFactory(DocumentFactory proxy)
-
-
Method Detail
-
createDocument
public Document createDocument()
-
createDocType
public DocumentType createDocType(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
-
createElement
public Element createElement(java.lang.String name)
-
createAttribute
public Attribute createAttribute(Element owner, QName qname, java.lang.String value)
-
createAttribute
public Attribute createAttribute(Element owner, java.lang.String name, java.lang.String value)
-
createCDATA
public CDATA createCDATA(java.lang.String text)
-
createComment
public Comment createComment(java.lang.String text)
-
createText
public Text createText(java.lang.String text)
-
createEntity
public Entity createEntity(java.lang.String name, java.lang.String text)
-
createNamespace
public Namespace createNamespace(java.lang.String prefix, java.lang.String uri)
-
createProcessingInstruction
public ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data)
-
createProcessingInstruction
public ProcessingInstruction createProcessingInstruction(java.lang.String target, java.util.Map<java.lang.String,java.lang.String> data)
-
createQName
public QName createQName(java.lang.String localName)
-
createQName
public QName createQName(java.lang.String name, java.lang.String prefix, java.lang.String uri)
-
createQName
public QName createQName(java.lang.String qualifiedName, java.lang.String uri)
-
createXPath
public XPath createXPath(java.lang.String xpathExpression)
-
createXPath
public XPath createXPath(java.lang.String xpathExpression, org.jaxen.VariableContext variableContext)
-
createXPathFilter
public NodeFilter createXPathFilter(java.lang.String xpathFilterExpression, org.jaxen.VariableContext variableContext)
-
createXPathFilter
public NodeFilter createXPathFilter(java.lang.String xpathFilterExpression)
-
createPattern
public Pattern createPattern(java.lang.String xpathPattern)
-
getProxy
protected DocumentFactory getProxy()
-
setProxy
protected void setProxy(DocumentFactory proxy)
-
-