org.n52.security.common.xml
Class XMLChunk

java.lang.Object
  extended by org.n52.security.common.xml.XMLChunk

public class XMLChunk
extends Object

A chunk generated by XMLChunkIterator


Constructor Summary
XMLChunk(boolean start, List<QName> xpath, String chunk, XMLChunk parent)
           
XMLChunk(boolean start, List<QName> xpath, XMLChunk parent)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getChunk()
           
 XMLChunk getParent()
           
 QName getStartElement()
          Gets the start element of the chunk.
 List<QName> getXpath()
          Gets the xpath as QName instances.
protected  String getXPathSimple()
          Gets the xpath as simple element string, without namespaces.
protected  String getXPathWithNamespaces()
          Gets the xpath as string with namespaces.
 int hashCode()
           
 boolean hasParent()
           
 boolean isStart()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLChunk

public XMLChunk(boolean start,
                List<QName> xpath,
                XMLChunk parent)

XMLChunk

public XMLChunk(boolean start,
                List<QName> xpath,
                String chunk,
                XMLChunk parent)
Method Detail

getStartElement

public QName getStartElement()
Gets the start element of the chunk. Last element in xpath.


getXpath

public List<QName> getXpath()
Gets the xpath as QName instances.


getXPathSimple

protected String getXPathSimple()
Gets the xpath as simple element string, without namespaces.

Returns:
a string like: /elementA/elementB/..

getXPathWithNamespaces

protected String getXPathWithNamespaces()
Gets the xpath as string with namespaces.

Returns:
a string like: /{namespaceX}elementA/{namespaceY}elementB/..

isStart

public boolean isStart()

getChunk

public String getChunk()

getParent

public XMLChunk getParent()

hasParent

public boolean hasParent()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004–2014 52north.org. All rights reserved.