org.gvsig.tools.visitor.impl
Class AbstractIndexedVisitable

java.lang.Object
  extended by org.gvsig.tools.visitor.impl.AbstractVisitable
      extended by org.gvsig.tools.visitor.impl.AbstractIndexedVisitable
All Implemented Interfaces:
IndexedVisitable, Visitable

public abstract class AbstractIndexedVisitable
extends AbstractVisitable
implements IndexedVisitable

Abstract base implementation for Visitable classes.

Author:
2009- César Ordiñana - gvSIG team

Constructor Summary
AbstractIndexedVisitable()
           
 
Method Summary
 void accept(Visitor visitor, long firstValueIndex)
          Provides each value of this container to the provided Visitor, beginning from the provided index position.
protected  void doAccept(Visitor visitor)
          Provides each value of this container to the provided Visitor.
protected abstract  void doAccept(Visitor visitor, long firstValueIndex)
          Provides each value of this container to the provided Visitor.
 
Methods inherited from class org.gvsig.tools.visitor.impl.AbstractVisitable
accept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gvsig.tools.visitor.Visitable
accept
 

Constructor Detail

AbstractIndexedVisitable

public AbstractIndexedVisitable()
Method Detail

accept

public final void accept(Visitor visitor,
                         long firstValueIndex)
                  throws BaseException
Description copied from interface: IndexedVisitable
Provides each value of this container to the provided Visitor, beginning from the provided index position.

Specified by:
accept in interface IndexedVisitable
Parameters:
visitor - the visitor to apply to each value.
firstValueIndex - index of first element to be visited by the Visitor
Throws:
BaseException - if there is an error while performing the visit

doAccept

protected void doAccept(Visitor visitor)
                 throws VisitCanceledException,
                        BaseException
Description copied from class: AbstractVisitable
Provides each value of this container to the provided Visitor. The VisitCanceledException will be managed by the parent AbstractVisitable class, so simply throw it.

Specified by:
doAccept in class AbstractVisitable
Throws:
VisitCanceledException
BaseException

doAccept

protected abstract void doAccept(Visitor visitor,
                                 long firstValueIndex)
                          throws VisitCanceledException,
                                 BaseException
Provides each value of this container to the provided Visitor. The VisitCanceledException will be managed by the parent AbstractIndexedVisitable class, so simply throw it.

Throws:
VisitCanceledException
BaseException


Copyright © 2004-2011 gvSIG. All Rights Reserved.