com.waveset.object
Class Visitor
java.lang.Object
com.waveset.object.Visitor
- public abstract class Visitor
- extends java.lang.Object
A base class for a PersistentObject visitor.
Rather than requiring subclasses to implement all of the visitation
methods, we'll provide default implementations that do nothing.
All of the default implementations will call the
visitPersistentObject method, so a subclass may want to override
that one method to catch visitations of unsupported classes.
Rather than adding visitation methods for all classes, I'm only
doing the ones that we need at the moment. Just add a method
to the interface, and implement it in your class as necessary.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
code_id
public static final java.lang.String code_id
- See Also:
- Constant Field Values
trace
protected static final Trace trace
Visitor
public Visitor()
visit
public void visit(PersistentObject obj)
throws WavesetException
- The visitor entry point. Ask the object to apply the appropriate
visitation method.
- Throws:
WavesetException
visitPersistentObject
public void visitPersistentObject(PersistentObject obj)
throws WavesetException
- Default visitor, does nothing.
The PersistentObject.visit method will call this, unless
overridden by a subclass.
- Throws:
WavesetException
visitAdminGroup
public void visitAdminGroup(AdminGroup obj)
throws WavesetException
- Throws:
WavesetException
visitAdminRole
public void visitAdminRole(AdminRole obj)
throws WavesetException
- Throws:
WavesetException
visitObjectGroup
public void visitObjectGroup(ObjectGroup obj)
throws WavesetException
- Throws:
WavesetException
visitUser
public void visitUser(WSUser obj)
throws WavesetException
- Throws:
WavesetException
visitApplication
public void visitApplication(Application obj)
throws WavesetException
- Throws:
WavesetException
visitAttributeDefinition
public void visitAttributeDefinition(AttributeDefinition obj)
throws WavesetException
- Throws:
WavesetException
visitEmailTemplate
public void visitEmailTemplate(EmailTemplate obj)
throws WavesetException
- Throws:
WavesetException
visitPolicy
public void visitPolicy(Policy obj)
throws WavesetException
- Throws:
WavesetException
visitResource
public void visitResource(Resource obj)
throws WavesetException
- Throws:
WavesetException
visitRole
public void visitRole(Role obj)
throws WavesetException
- Throws:
WavesetException
visitWSUser
public void visitWSUser(WSUser obj)
throws WavesetException
- Throws:
WavesetException
visitWorkItem
public void visitWorkItem(WorkItem obj)
throws WavesetException
- Throws:
WavesetException
visitTaskDefinition
public void visitTaskDefinition(TaskDefinition obj)
throws WavesetException
- Throws:
WavesetException
visitTaskInstance
public void visitTaskInstance(TaskInstance obj)
throws WavesetException
- Throws:
WavesetException
visitTaskSchedule
public void visitTaskSchedule(TaskSchedule obj)
throws WavesetException
- Throws:
WavesetException
visitTaskTemplate
public void visitTaskTemplate(TaskTemplate obj)
throws WavesetException
- Throws:
WavesetException
visitConfiguration
public void visitConfiguration(Configuration obj)
throws WavesetException
- Throws:
WavesetException
visitEvent
public void visitEvent(Event obj)
throws WavesetException
- Throws:
WavesetException
visitMetaView
public void visitMetaView(MetaView obj)
throws WavesetException
- Throws:
WavesetException
visitLoginApp
public void visitLoginApp(LoginApp obj)
throws WavesetException
- Throws:
WavesetException