net.sf.jsefa.xml.lowlevel.model
Class ElementEndImpl

java.lang.Object
  extended by net.sf.jsefa.xml.lowlevel.model.ElementEndImpl
All Implemented Interfaces:
ElementEnd, XmlItem

public final class ElementEndImpl
extends Object
implements ElementEnd

Implementation of ElementEnd.

Instances of this class are immutable and thread safe.

Author:
Norman Lahme-Huetig

Constructor Summary
ElementEndImpl(QName name, int depth)
          Constructs a new ElementEndImpl.
 
Method Summary
 int getDepth()
          Returns the depth of this element.
 QName getName()
          Returns the name of the xml element.
 XmlItemType getType()
          Returns the type of this xml item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementEndImpl

public ElementEndImpl(QName name,
                      int depth)
Constructs a new ElementEndImpl.

Parameters:
name - the name of the element
depth - the depth of the element
Method Detail

getName

public QName getName()
Returns the name of the xml element.

Specified by:
getName in interface ElementEnd
Returns:
the name of the xml element

getDepth

public int getDepth()
Returns the depth of this element.

The depth of the root element is 0.

Specified by:
getDepth in interface ElementEnd
Returns:
the depth of this element

getType

public XmlItemType getType()
Returns the type of this xml item.

Specified by:
getType in interface XmlItem
Returns:
the type of this xml item


Copyright © 2014. All rights reserved.