org.deegree.metadata.filter
Class XPathElementFilter

java.lang.Object
  extended by org.deegree.metadata.filter.XPathElementFilter
All Implemented Interfaces:
org.apache.axiom.om.OMContainer, org.apache.axiom.om.OMElement, org.apache.axiom.om.OMNode, org.apache.axiom.om.OMSerializable

public class XPathElementFilter
extends Object
implements org.apache.axiom.om.OMElement

TODO add class documentation here

Version:
$Revision: 30339 $, $Date: 2011-04-04 15:59:06 +0200 (Mo, 04. Apr 2011) $
Author:
Steffen Thomas, last edited by: $Author: mschneider $

Field Summary
 
Fields inherited from interface org.apache.axiom.om.OMNode
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE
 
Constructor Summary
XPathElementFilter(org.apache.axiom.om.OMElement input, List<XPath> elements)
           
 
Method Summary
 org.apache.axiom.om.OMAttribute addAttribute(org.apache.axiom.om.OMAttribute arg0)
           
 org.apache.axiom.om.OMAttribute addAttribute(String arg0, String arg1, org.apache.axiom.om.OMNamespace arg2)
           
 void addChild(org.apache.axiom.om.OMNode arg0)
           
 void build()
           
 void buildNext()
           
 void buildWithAttachments()
           
 org.apache.axiom.om.OMElement cloneOMElement()
           
 void close(boolean arg0)
           
 org.apache.axiom.om.OMNamespace declareDefaultNamespace(String arg0)
           
 org.apache.axiom.om.OMNamespace declareNamespace(org.apache.axiom.om.OMNamespace arg0)
           
 org.apache.axiom.om.OMNamespace declareNamespace(String arg0, String arg1)
           
 org.apache.axiom.om.OMNode detach()
           
 void discard()
           
 org.apache.axiom.om.OMNamespace findNamespace(String arg0, String arg1)
           
 org.apache.axiom.om.OMNamespace findNamespaceURI(String arg0)
           
 Iterator getAllAttributes()
           
 Iterator getAllDeclaredNamespaces()
           
 org.apache.axiom.om.OMAttribute getAttribute(QName arg0)
           
 String getAttributeValue(QName arg0)
           
 org.apache.axiom.om.OMXMLParserWrapper getBuilder()
           
 Iterator getChildElements()
           
 Iterator getChildren()
           
 Iterator getChildrenWithLocalName(String arg0)
           
 Iterator getChildrenWithName(QName arg0)
           
 Iterator getChildrenWithNamespaceURI(String arg0)
           
 org.apache.axiom.om.OMNamespace getDefaultNamespace()
           
 org.apache.axiom.om.OMElement getFirstChildWithName(QName arg0)
           
 org.apache.axiom.om.OMElement getFirstElement()
           
 org.apache.axiom.om.OMNode getFirstOMChild()
           
 int getLineNumber()
           
 String getLocalName()
           
 org.apache.axiom.om.OMNamespace getNamespace()
           
 org.apache.axiom.om.OMNode getNextOMSibling()
           
 org.apache.axiom.om.OMFactory getOMFactory()
           
 org.apache.axiom.om.OMContainer getParent()
           
 org.apache.axiom.om.OMNode getPreviousOMSibling()
           
 QName getQName()
           
 String getText()
           
 QName getTextAsQName()
           
 int getType()
           
 XMLStreamReader getXMLStreamReader()
           
 XMLStreamReader getXMLStreamReaderWithoutCaching()
           
 void insertSiblingAfter(org.apache.axiom.om.OMNode arg0)
           
 void insertSiblingBefore(org.apache.axiom.om.OMNode arg0)
           
 boolean isComplete()
           
 void removeAttribute(org.apache.axiom.om.OMAttribute arg0)
           
 QName resolveQName(String arg0)
           
 void serialize(OutputStream arg0)
           
 void serialize(OutputStream arg0, org.apache.axiom.om.OMOutputFormat arg1)
           
 void serialize(Writer arg0)
           
 void serialize(Writer arg0, org.apache.axiom.om.OMOutputFormat arg1)
           
 void serialize(XMLStreamWriter writer)
          Serializes the OMElement to the XMLStreamWriter.
 void serializeAndConsume(OutputStream arg0)
           
 void serializeAndConsume(OutputStream arg0, org.apache.axiom.om.OMOutputFormat arg1)
           
 void serializeAndConsume(Writer arg0)
           
 void serializeAndConsume(Writer arg0, org.apache.axiom.om.OMOutputFormat arg1)
           
 void serializeAndConsume(XMLStreamWriter arg0)
           
 void setBuilder(org.apache.axiom.om.OMXMLParserWrapper arg0)
           
 void setFirstChild(org.apache.axiom.om.OMNode arg0)
           
 void setLineNumber(int arg0)
           
 void setLocalName(String arg0)
           
 void setNamespace(org.apache.axiom.om.OMNamespace arg0)
           
 void setNamespaceWithNoFindInCurrentScope(org.apache.axiom.om.OMNamespace arg0)
           
 void setText(QName arg0)
           
 void setText(String arg0)
           
 String toString()
           
 String toStringWithConsume()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XPathElementFilter

public XPathElementFilter(org.apache.axiom.om.OMElement input,
                          List<XPath> elements)
Method Detail

addAttribute

public org.apache.axiom.om.OMAttribute addAttribute(org.apache.axiom.om.OMAttribute arg0)
Specified by:
addAttribute in interface org.apache.axiom.om.OMElement

addAttribute

public org.apache.axiom.om.OMAttribute addAttribute(String arg0,
                                                    String arg1,
                                                    org.apache.axiom.om.OMNamespace arg2)
Specified by:
addAttribute in interface org.apache.axiom.om.OMElement

addChild

public void addChild(org.apache.axiom.om.OMNode arg0)
Specified by:
addChild in interface org.apache.axiom.om.OMContainer

build

public void build()
Specified by:
build in interface org.apache.axiom.om.OMSerializable

buildNext

public void buildNext()
Specified by:
buildNext in interface org.apache.axiom.om.OMContainer

buildWithAttachments

public void buildWithAttachments()
Specified by:
buildWithAttachments in interface org.apache.axiom.om.OMNode

cloneOMElement

public org.apache.axiom.om.OMElement cloneOMElement()
Specified by:
cloneOMElement in interface org.apache.axiom.om.OMElement

close

public void close(boolean arg0)
Specified by:
close in interface org.apache.axiom.om.OMNode

declareDefaultNamespace

public org.apache.axiom.om.OMNamespace declareDefaultNamespace(String arg0)
Specified by:
declareDefaultNamespace in interface org.apache.axiom.om.OMElement

declareNamespace

public org.apache.axiom.om.OMNamespace declareNamespace(org.apache.axiom.om.OMNamespace arg0)
Specified by:
declareNamespace in interface org.apache.axiom.om.OMElement

declareNamespace

public org.apache.axiom.om.OMNamespace declareNamespace(String arg0,
                                                        String arg1)
Specified by:
declareNamespace in interface org.apache.axiom.om.OMElement

detach

public org.apache.axiom.om.OMNode detach()
                                  throws org.apache.axiom.om.OMException
Specified by:
detach in interface org.apache.axiom.om.OMNode
Returns:
OMNode that is extricated by the XPath elements specified during initialization.
Throws:
org.apache.axiom.om.OMException - if parsing of the XPath expression failed.

discard

public void discard()
             throws org.apache.axiom.om.OMException
Specified by:
discard in interface org.apache.axiom.om.OMNode
Throws:
org.apache.axiom.om.OMException

findNamespace

public org.apache.axiom.om.OMNamespace findNamespace(String arg0,
                                                     String arg1)
Specified by:
findNamespace in interface org.apache.axiom.om.OMElement

findNamespaceURI

public org.apache.axiom.om.OMNamespace findNamespaceURI(String arg0)
Specified by:
findNamespaceURI in interface org.apache.axiom.om.OMElement

getAllAttributes

public Iterator getAllAttributes()
Specified by:
getAllAttributes in interface org.apache.axiom.om.OMElement

getAllDeclaredNamespaces

public Iterator getAllDeclaredNamespaces()
                                  throws org.apache.axiom.om.OMException
Specified by:
getAllDeclaredNamespaces in interface org.apache.axiom.om.OMElement
Throws:
org.apache.axiom.om.OMException

getAttribute

public org.apache.axiom.om.OMAttribute getAttribute(QName arg0)
Specified by:
getAttribute in interface org.apache.axiom.om.OMElement

getAttributeValue

public String getAttributeValue(QName arg0)
Specified by:
getAttributeValue in interface org.apache.axiom.om.OMElement

getBuilder

public org.apache.axiom.om.OMXMLParserWrapper getBuilder()
Specified by:
getBuilder in interface org.apache.axiom.om.OMElement

getChildElements

public Iterator getChildElements()
Specified by:
getChildElements in interface org.apache.axiom.om.OMElement

getChildren

public Iterator getChildren()
Specified by:
getChildren in interface org.apache.axiom.om.OMContainer

getChildrenWithLocalName

public Iterator getChildrenWithLocalName(String arg0)
Specified by:
getChildrenWithLocalName in interface org.apache.axiom.om.OMContainer

getChildrenWithName

public Iterator getChildrenWithName(QName arg0)
Specified by:
getChildrenWithName in interface org.apache.axiom.om.OMContainer

getChildrenWithNamespaceURI

public Iterator getChildrenWithNamespaceURI(String arg0)
Specified by:
getChildrenWithNamespaceURI in interface org.apache.axiom.om.OMContainer

getDefaultNamespace

public org.apache.axiom.om.OMNamespace getDefaultNamespace()
Specified by:
getDefaultNamespace in interface org.apache.axiom.om.OMElement

getFirstChildWithName

public org.apache.axiom.om.OMElement getFirstChildWithName(QName arg0)
                                                    throws org.apache.axiom.om.OMException
Specified by:
getFirstChildWithName in interface org.apache.axiom.om.OMContainer
Throws:
org.apache.axiom.om.OMException

getFirstElement

public org.apache.axiom.om.OMElement getFirstElement()
Specified by:
getFirstElement in interface org.apache.axiom.om.OMElement

getFirstOMChild

public org.apache.axiom.om.OMNode getFirstOMChild()
Specified by:
getFirstOMChild in interface org.apache.axiom.om.OMContainer

getLineNumber

public int getLineNumber()
Specified by:
getLineNumber in interface org.apache.axiom.om.OMElement

getLocalName

public String getLocalName()
Specified by:
getLocalName in interface org.apache.axiom.om.OMElement

getNamespace

public org.apache.axiom.om.OMNamespace getNamespace()
                                             throws org.apache.axiom.om.OMException
Specified by:
getNamespace in interface org.apache.axiom.om.OMElement
Throws:
org.apache.axiom.om.OMException

getNextOMSibling

public org.apache.axiom.om.OMNode getNextOMSibling()
                                            throws org.apache.axiom.om.OMException
Specified by:
getNextOMSibling in interface org.apache.axiom.om.OMNode
Throws:
org.apache.axiom.om.OMException

getOMFactory

public org.apache.axiom.om.OMFactory getOMFactory()
Specified by:
getOMFactory in interface org.apache.axiom.om.OMSerializable

getParent

public org.apache.axiom.om.OMContainer getParent()
Specified by:
getParent in interface org.apache.axiom.om.OMNode

getPreviousOMSibling

public org.apache.axiom.om.OMNode getPreviousOMSibling()
Specified by:
getPreviousOMSibling in interface org.apache.axiom.om.OMNode

getQName

public QName getQName()
Specified by:
getQName in interface org.apache.axiom.om.OMElement

getText

public String getText()
Specified by:
getText in interface org.apache.axiom.om.OMElement

getTextAsQName

public QName getTextAsQName()
Specified by:
getTextAsQName in interface org.apache.axiom.om.OMElement

getType

public int getType()
Specified by:
getType in interface org.apache.axiom.om.OMNode

getXMLStreamReader

public XMLStreamReader getXMLStreamReader()
Specified by:
getXMLStreamReader in interface org.apache.axiom.om.OMElement

getXMLStreamReaderWithoutCaching

public XMLStreamReader getXMLStreamReaderWithoutCaching()
Specified by:
getXMLStreamReaderWithoutCaching in interface org.apache.axiom.om.OMElement

insertSiblingAfter

public void insertSiblingAfter(org.apache.axiom.om.OMNode arg0)
                        throws org.apache.axiom.om.OMException
Specified by:
insertSiblingAfter in interface org.apache.axiom.om.OMNode
Throws:
org.apache.axiom.om.OMException

insertSiblingBefore

public void insertSiblingBefore(org.apache.axiom.om.OMNode arg0)
                         throws org.apache.axiom.om.OMException
Specified by:
insertSiblingBefore in interface org.apache.axiom.om.OMNode
Throws:
org.apache.axiom.om.OMException

isComplete

public boolean isComplete()
Specified by:
isComplete in interface org.apache.axiom.om.OMSerializable

removeAttribute

public void removeAttribute(org.apache.axiom.om.OMAttribute arg0)
Specified by:
removeAttribute in interface org.apache.axiom.om.OMElement

resolveQName

public QName resolveQName(String arg0)
Specified by:
resolveQName in interface org.apache.axiom.om.OMElement

serialize

public void serialize(OutputStream arg0,
                      org.apache.axiom.om.OMOutputFormat arg1)
               throws XMLStreamException
Specified by:
serialize in interface org.apache.axiom.om.OMNode
Throws:
XMLStreamException

serialize

public void serialize(OutputStream arg0)
               throws XMLStreamException
Specified by:
serialize in interface org.apache.axiom.om.OMNode
Throws:
XMLStreamException

serialize

public void serialize(Writer arg0,
                      org.apache.axiom.om.OMOutputFormat arg1)
               throws XMLStreamException
Specified by:
serialize in interface org.apache.axiom.om.OMNode
Throws:
XMLStreamException

serialize

public void serialize(Writer arg0)
               throws XMLStreamException
Specified by:
serialize in interface org.apache.axiom.om.OMNode
Throws:
XMLStreamException

serialize

public void serialize(XMLStreamWriter writer)
               throws XMLStreamException
Serializes the OMElement to the XMLStreamWriter.

Specified by:
serialize in interface org.apache.axiom.om.OMSerializable
Parameters:
writer - to write to, must be not null.
Throws:
XMLStreamException

serializeAndConsume

public void serializeAndConsume(OutputStream arg0,
                                org.apache.axiom.om.OMOutputFormat arg1)
                         throws XMLStreamException
Specified by:
serializeAndConsume in interface org.apache.axiom.om.OMNode
Throws:
XMLStreamException

serializeAndConsume

public void serializeAndConsume(OutputStream arg0)
                         throws XMLStreamException
Specified by:
serializeAndConsume in interface org.apache.axiom.om.OMNode
Throws:
XMLStreamException

serializeAndConsume

public void serializeAndConsume(Writer arg0,
                                org.apache.axiom.om.OMOutputFormat arg1)
                         throws XMLStreamException
Specified by:
serializeAndConsume in interface org.apache.axiom.om.OMNode
Throws:
XMLStreamException

serializeAndConsume

public void serializeAndConsume(Writer arg0)
                         throws XMLStreamException
Specified by:
serializeAndConsume in interface org.apache.axiom.om.OMNode
Throws:
XMLStreamException

serializeAndConsume

public void serializeAndConsume(XMLStreamWriter arg0)
                         throws XMLStreamException
Specified by:
serializeAndConsume in interface org.apache.axiom.om.OMSerializable
Throws:
XMLStreamException

setBuilder

public void setBuilder(org.apache.axiom.om.OMXMLParserWrapper arg0)
Specified by:
setBuilder in interface org.apache.axiom.om.OMElement

setFirstChild

public void setFirstChild(org.apache.axiom.om.OMNode arg0)
Specified by:
setFirstChild in interface org.apache.axiom.om.OMElement

setLineNumber

public void setLineNumber(int arg0)
Specified by:
setLineNumber in interface org.apache.axiom.om.OMElement

setLocalName

public void setLocalName(String arg0)
Specified by:
setLocalName in interface org.apache.axiom.om.OMElement

setNamespace

public void setNamespace(org.apache.axiom.om.OMNamespace arg0)
Specified by:
setNamespace in interface org.apache.axiom.om.OMElement

setNamespaceWithNoFindInCurrentScope

public void setNamespaceWithNoFindInCurrentScope(org.apache.axiom.om.OMNamespace arg0)
Specified by:
setNamespaceWithNoFindInCurrentScope in interface org.apache.axiom.om.OMElement

setText

public void setText(QName arg0)
Specified by:
setText in interface org.apache.axiom.om.OMElement

setText

public void setText(String arg0)
Specified by:
setText in interface org.apache.axiom.om.OMElement

toString

public String toString()
Specified by:
toString in interface org.apache.axiom.om.OMElement
Overrides:
toString in class Object

toStringWithConsume

public String toStringWithConsume()
                           throws XMLStreamException
Specified by:
toStringWithConsume in interface org.apache.axiom.om.OMElement
Throws:
XMLStreamException


Copyright © 2011. All Rights Reserved.