public abstract class SelectiveComponentVisitor extends java.lang.Object implements IComponentVisitor
IComponentVisitor
interface. The default behavior for each
method is to do nothing.
Classes that wish to deal with visit operations for specific
Component
s should extend or instantiate this class and override
only the methods which they are interested in.
For example, if you have a Component comp
and would like to
perform a special action if it is a DataComponent
, you would do
the following:
IComponentVisitor visitor = new SelectiveComponentVisitor() {
@Override
public void visit(DataComponent component) {
// Do something unique for DataComponents...
}
};
visitor.visit(comp);
IComponentVisitor
Constructor and Description |
---|
SelectiveComponentVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
visit(AdaptiveTreeComposite component)
This operation informs the visitor that it is actually working with an
AdaptiveTreeComposite and should operate accordingly.
|
void |
visit(DataComponent component)
This operation directs a visitor to perform its actions on the Component
as a DataComponent.
|
void |
visit(EMFComponent component)
This operation informs the visitor that it is actually working with an
EMFComponent and should operate accordingly.
|
void |
visit(GeometryComponent component)
This operation directs a visitor to perform its actions on the Component
as a GeometryComponent.
|
void |
visit(IReactorComponent component)
This operation informs the visitor that it is actually working with an
IReactorComponent and should operate accordingly.
|
void |
visit(IShape component)
This operation directs a visitor to perform its actions on the Component
as an IShape.
|
void |
visit(ListComponent<?> component)
This operation informs the visitor that it is actually working with a
ListComponent.
|
void |
visit(MasterDetailsComponent component)
This operation directs a visitor to perform its actions on the Component
as a MasterDetailsComponent.
|
void |
visit(MatrixComponent component)
This operation directs a visitor to perform its actions on the Component
as a MatrixComponent.
|
void |
visit(MeshComponent component)
This operation informs the visitor that it is actually working with a
MeshComponent and should operate accordingly.
|
void |
visit(ResourceComponent component)
This operation directs a visitor to perform its actions on the Component
as an OutputComponent.
|
void |
visit(TableComponent component)
This operation directs a visitor to perform its actions on the Component
as a VisitorComponent.
|
void |
visit(TimeDataComponent component)
This operation informs the visitor that it is actually working with a
TimeDataComponent and should operate accordingly.
|
void |
visit(TreeComposite component)
This operation informs the visitor that it is actually working with a
TreeComposite and should operate accordingly.
|
public void visit(DataComponent component)
IComponentVisitor
visit
in interface IComponentVisitor
component
- DataComponent which was originally called by the accept()
operationpublic void visit(ResourceComponent component)
IComponentVisitor
visit
in interface IComponentVisitor
component
- OutputComponent which was originally called by the accept()
operationpublic void visit(TableComponent component)
IComponentVisitor
visit
in interface IComponentVisitor
component
- TableComponent which was originally called by the accept()
operationpublic void visit(MatrixComponent component)
IComponentVisitor
visit
in interface IComponentVisitor
component
- MatrixComponent which was originally called by the accept()
operationpublic void visit(IShape component)
IComponentVisitor
visit
in interface IComponentVisitor
component
- IShape which was originally called by the accept() operationpublic void visit(GeometryComponent component)
IComponentVisitor
visit
in interface IComponentVisitor
component
- GeometryComponent which was originally called by the accept()
operationpublic void visit(MasterDetailsComponent component)
IComponentVisitor
visit
in interface IComponentVisitor
component
- MasterDetailsComponent which was originally called by the
accept() operation.public void visit(TreeComposite component)
IComponentVisitor
visit
in interface IComponentVisitor
component
- The TreeCompositepublic void visit(AdaptiveTreeComposite component)
IComponentVisitor
visit
in interface IComponentVisitor
component
- The AdaptiveTreeCompositepublic void visit(IReactorComponent component)
IComponentVisitor
visit
in interface IComponentVisitor
component
- The IReactorComponentpublic void visit(TimeDataComponent component)
IComponentVisitor
visit
in interface IComponentVisitor
component
- The TimeDataComponent.public void visit(MeshComponent component)
IComponentVisitor
visit
in interface IComponentVisitor
component
- The MeshComponent.public void visit(EMFComponent component)
IComponentVisitor
visit
in interface IComponentVisitor
component
- The EMFComponent.public void visit(ListComponent<?> component)
IComponentVisitor
visit
in interface IComponentVisitor
component
- The ListComponent