org.databene.commons.visitor
Class WrapperElement<E>

java.lang.Object
  extended by org.databene.commons.visitor.AbstractElement<E>
      extended by org.databene.commons.visitor.WrapperElement<E>
All Implemented Interfaces:
Element<E>
Direct Known Subclasses:
FileElement

public abstract class WrapperElement<E>
extends AbstractElement<E>

Element implementation that serves as proxy for another Element.

Created: 04.02.2007 08:17:20

Author:
Volker Bergmann

Field Summary
protected  E wrappedObject
           
 
Constructor Summary
protected WrapperElement(E wrappedObject)
           
 
Method Summary
protected  void acceptImpl(Visitor<E> visitor)
           
 boolean equals(java.lang.Object o)
           
 E getWrappedObject()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class org.databene.commons.visitor.AbstractElement
accept, getChildren
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

wrappedObject

protected E wrappedObject
Constructor Detail

WrapperElement

protected WrapperElement(E wrappedObject)
Method Detail

getWrappedObject

public E getWrappedObject()

acceptImpl

protected void acceptImpl(Visitor<E> visitor)
Overrides:
acceptImpl in class AbstractElement<E>

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.