|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExtensionVisitor
The ExtensionVisitor interface describes the implementation of a visitor pattern for GData data model processing.
ExtensionPoint.visit(ExtensionVisitor, ExtensionPoint)
Nested Class Summary | |
---|---|
static class |
ExtensionVisitor.StoppedException
The StoppedException is thrown by ExtensionVisitor instances to immediately exit from extension tree processing. |
Method Summary | |
---|---|
boolean |
visit(ExtensionPoint parent,
Extension extension)
Called during ExtensionPoint tree traversal to allow the visitor instance to process an extension in the tree. |
void |
visitComplete(ExtensionPoint target)
The visitComplete method is called when traversal for an ExtensionPoint and all of its nested children has been completed. |
Method Detail |
---|
boolean visit(ExtensionPoint parent, Extension extension) throws ExtensionVisitor.StoppedException
parent
- the parent of the visited extension.extension
- the target extension being visited.
ExtensionVisitor.StoppedException
- if the data model traversal should be stopped
immediately. This may be the result of an unexpected error, or some
visitor implementations may extend this exception type to signal
specific exit conditions.void visitComplete(ExtensionPoint target) throws ExtensionVisitor.StoppedException
target
- the visited extension point
ExtensionVisitor.StoppedException
- if the data model traversal should be stopped
immediately. This may be the result of an unexpected error, or some
visitor implementations may extend this exception type to signal
specific exit conditions.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |