org.ozoneDB.xml.dom4j.o3impl
Class DelegateDocumentFactory

java.lang.Object
  extended byorg.dom4j.DocumentFactory
      extended byorg.ozoneDB.xml.dom4j.o3impl.DelegateDocumentFactory
All Implemented Interfaces:
NodeFactory, java.io.Serializable, XPathFactory

public class DelegateDocumentFactory
extends DocumentFactory

Author:
Maarten
See Also:
Serialized Form

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.
 Namespace getNamespace(java.lang.String uri)
           
 Namespace getNoNamespace()
           
 Namespace getXmlNameSpace()
           
 
Methods inherited from class org.dom4j.DocumentFactory
createQNameCache, createSingleton, getInstance, getQNames, getXPathNamespaceURIs, init, intern, setXPathNamespaceURIs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegateDocumentFactory

public DelegateDocumentFactory(NodeFactory nodeFactory,
                               XPathFactory xpathFactory)
Creates a new instance of DelegateDocumentFactory

Method Detail

createAttribute

public Attribute createAttribute(Element owner,
                                 java.lang.String name,
                                 java.lang.String value)
Specified by:
createAttribute in interface NodeFactory
Overrides:
createAttribute in class DocumentFactory

createAttribute

public Attribute createAttribute(Element owner,
                                 QName qname,
                                 java.lang.String value)
Specified by:
createAttribute in interface NodeFactory
Overrides:
createAttribute in class DocumentFactory

createCDATA

public CDATA createCDATA(java.lang.String text)
Specified by:
createCDATA in interface NodeFactory
Overrides:
createCDATA in class DocumentFactory

createComment

public Comment createComment(java.lang.String text)
Specified by:
createComment in interface NodeFactory
Overrides:
createComment in class DocumentFactory

createDocType

public DocumentType createDocType(java.lang.String name,
                                  java.lang.String publicId,
                                  java.lang.String systemId)
Specified by:
createDocType in interface NodeFactory
Overrides:
createDocType in class DocumentFactory

createDocument

public Document createDocument()
Specified by:
createDocument in interface NodeFactory
Overrides:
createDocument in class DocumentFactory

createDocument

public Document createDocument(Element rootElement)
Specified by:
createDocument in interface NodeFactory
Overrides:
createDocument in class DocumentFactory

createElement

public Element createElement(QName qname)
Specified by:
createElement in interface NodeFactory
Overrides:
createElement in class DocumentFactory

createElement

public Element createElement(java.lang.String name)
Specified by:
createElement in interface NodeFactory
Overrides:
createElement in class DocumentFactory

createElement

public Element createElement(java.lang.String qualifiedName,
                             java.lang.String namespaceURI)
Specified by:
createElement in interface NodeFactory
Overrides:
createElement in class DocumentFactory

createEntity

public Entity createEntity(java.lang.String name,
                           java.lang.String text)
Specified by:
createEntity in interface NodeFactory
Overrides:
createEntity in class DocumentFactory

createNamespace

public Namespace createNamespace(java.lang.String prefix,
                                 java.lang.String uri)
Specified by:
createNamespace in interface NodeFactory
Overrides:
createNamespace in class DocumentFactory

getNamespace

public Namespace getNamespace(java.lang.String uri)
Specified by:
getNamespace in interface NodeFactory
Overrides:
getNamespace in class DocumentFactory

getXmlNameSpace

public Namespace getXmlNameSpace()
Specified by:
getXmlNameSpace in interface NodeFactory
Overrides:
getXmlNameSpace in class DocumentFactory

getNoNamespace

public Namespace getNoNamespace()
Specified by:
getNoNamespace in interface NodeFactory
Overrides:
getNoNamespace in class DocumentFactory

createPattern

public Pattern createPattern(java.lang.String xpathPattern)
Description copied from class: DocumentFactory

createPattern parses the given XPath expression to create an XSLT style Pattern instance which can then be used in an XSLT processing model.

Specified by:
createPattern in interface XPathFactory
Overrides:
createPattern in class DocumentFactory
Parameters:
xpathPattern - is the XPath pattern expression to create
Returns:
a new Pattern instance

createProcessingInstruction

public ProcessingInstruction createProcessingInstruction(java.lang.String target,
                                                         java.util.Map data)
Specified by:
createProcessingInstruction in interface NodeFactory
Overrides:
createProcessingInstruction in class DocumentFactory

createProcessingInstruction

public ProcessingInstruction createProcessingInstruction(java.lang.String target,
                                                         java.lang.String data)
Specified by:
createProcessingInstruction in interface NodeFactory
Overrides:
createProcessingInstruction in class DocumentFactory

createQName

public QName createQName(java.lang.String localName)
Specified by:
createQName in interface NodeFactory
Overrides:
createQName in class DocumentFactory

createQName

public QName createQName(java.lang.String qualifiedName,
                         java.lang.String uri)
Specified by:
createQName in interface NodeFactory
Overrides:
createQName in class DocumentFactory

createQName

public QName createQName(java.lang.String localName,
                         Namespace namespace)
Specified by:
createQName in interface NodeFactory
Overrides:
createQName in class DocumentFactory

createQName

public QName createQName(java.lang.String name,
                         java.lang.String prefix,
                         java.lang.String uri)
Specified by:
createQName in interface NodeFactory
Overrides:
createQName in class DocumentFactory

createText

public Text createText(java.lang.String text)
Specified by:
createText in interface NodeFactory
Overrides:
createText in class DocumentFactory

createXPath

public XPath createXPath(java.lang.String xpathExpression)
                  throws InvalidXPathException
Description copied from class: DocumentFactory

createXPath parses an XPath expression and creates a new XPath XPath instance.

Specified by:
createXPath in interface XPathFactory
Overrides:
createXPath in class DocumentFactory
Parameters:
xpathExpression - is the XPath expression to create
Returns:
a new XPath instance
Throws:
InvalidXPathException - if the XPath expression is invalid

createXPath

public XPath createXPath(java.lang.String xpathExpression,
                         org.jaxen.VariableContext variableContext)
Description copied from class: DocumentFactory

createXPath parses an XPath expression and creates a new XPath XPath instance.

Specified by:
createXPath in interface XPathFactory
Overrides:
createXPath in class DocumentFactory
Parameters:
xpathExpression - is the XPath expression to create
variableContext - is the variable context to use when evaluating the XPath
Returns:
a new XPath instance

createXPathFilter

public NodeFilter createXPathFilter(java.lang.String xpathFilterExpression)
Description copied from class: DocumentFactory

createXPathFilter parses a NodeFilter from the given XPath filter expression. XPath filter expressions occur within XPath expressions such as self::node()[ filterExpression ]

Specified by:
createXPathFilter in interface XPathFactory
Overrides:
createXPathFilter in class DocumentFactory
Parameters:
xpathFilterExpression - is the XPath filter expression to create
Returns:
a new NodeFilter instance

createXPathFilter

public NodeFilter createXPathFilter(java.lang.String xpathFilterExpression,
                                    org.jaxen.VariableContext variableContext)
Description copied from class: DocumentFactory

createXPathFilter parses a NodeFilter from the given XPath filter expression. XPath filter expressions occur within XPath expressions such as self::node()[ filterExpression ]

Specified by:
createXPathFilter in interface XPathFactory
Overrides:
createXPathFilter in class DocumentFactory
Parameters:
xpathFilterExpression - is the XPath filter expression to create
variableContext - is the variable context to use when evaluating the XPath
Returns:
a new NodeFilter instance


Copyright © 2004 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.