| java.lang.Object biz.hammurapi.util.VisitableBase
All known Subclasses: biz.hammurapi.util.TreeNode, biz.hammurapi.config.GenericContainer,
VisitableBase | abstract public class VisitableBase implements Visitable(Code) | | Implements Visitable contract. Subclasses shall implement visitChildren() method.
author: Pavel Vlasov version: $Revision: 1.4 $ |
Method Summary | |
public boolean | accept(Visitor visitor) | protected void | acceptChildren(Visitor visitor) Override this method to navigate visitor through object constituents. | public static void | object2visitor(Object object, Visitor visitor) Properly handles passing visitor to a child - takes into account that child is visitable and visitor may
be an instance of PoliteVisitor. |
acceptChildren | protected void acceptChildren(Visitor visitor)(Code) | | Override this method to navigate visitor through object constituents.
Parameters: visitor - |
object2visitor | public static void object2visitor(Object object, Visitor visitor)(Code) | | Properly handles passing visitor to a child - takes into account that child is visitable and visitor may
be an instance of PoliteVisitor.
Parameters: visitor - Parameters: child - |
|
|