dk.brics.xact.wrappers
Class ElementWrapper

java.lang.Object
  extended by dk.brics.xact.wrappers.NodeWrapper<T>
      extended by dk.brics.xact.wrappers.TempNodeWrapper<T>
          extended by dk.brics.xact.wrappers.ConcreteTempNodeWrapper<Element>
              extended by dk.brics.xact.wrappers.ElementWrapper

public class ElementWrapper
extends ConcreteTempNodeWrapper<Element>

Wrapper for Element.


Constructor Summary
ElementWrapper(Element real, ElementWrapper parent)
          Constructs a new wrapper.
 
Method Summary
 AttributeWrapper getFirstAttribute()
          Returns the first attribute node wrapper.
 AttrNodeWrapper<? extends AttrNode> getFirstAttrWrapper()
          Returns the first attribute-like node wrapper.
 ConcreteTempNodeWrapper<? extends TempNode> getFirstChild()
          Returns the first concrete child node wrapper.
 TempNodeWrapper<? extends TempNode> getFirstChildWrapper()
          Returns the first child node wrapper.
 AttrNode getRealFirstAttr()
          Returns the first attribute-like node.
 XML getRealFirstChild()
          Returns the first child node.
 void visitBy(WrapperNodeVisitor v)
          Visits this wrapper by the given visitor.
 
Methods inherited from class dk.brics.xact.wrappers.TempNodeWrapper
getNextSibling, getNextSiblingWrapper, getRealNextSibling, make
 
Methods inherited from class dk.brics.xact.wrappers.NodeWrapper
getParent, getReal, setReal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementWrapper

public ElementWrapper(Element real,
                      ElementWrapper parent)
Constructs a new wrapper.

Method Detail

getFirstAttribute

public AttributeWrapper getFirstAttribute()
Returns the first attribute node wrapper.


getFirstAttrWrapper

public AttrNodeWrapper<? extends AttrNode> getFirstAttrWrapper()
Returns the first attribute-like node wrapper.


getFirstChild

public ConcreteTempNodeWrapper<? extends TempNode> getFirstChild()
Returns the first concrete child node wrapper.


getFirstChildWrapper

public TempNodeWrapper<? extends TempNode> getFirstChildWrapper()
Returns the first child node wrapper.


getRealFirstAttr

public AttrNode getRealFirstAttr()
Returns the first attribute-like node.


getRealFirstChild

public XML getRealFirstChild()
Returns the first child node.


visitBy

public void visitBy(WrapperNodeVisitor v)
Description copied from class: NodeWrapper
Visits this wrapper by the given visitor.

Specified by:
visitBy in class NodeWrapper<Element>


Copyright © 2005-2011 Aarhus University.