Package org.faktorips.runtime
Interface IVisitorSupport
- All Known Implementing Classes:
GenericVisitorSupport
public interface IVisitorSupport
Marks a model object as accepting visitors.
- Author:
- Jan Ortmann
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(IModelObjectVisitor visitor) Accepts the given visitor.static IVisitorSupportorGenericVisitorSupport(IModelObject modelObject) Returns the given model object if it implementsIVisitorSupportotherwise aGenericVisitorSupportwrapping it.
-
Method Details
-
accept
Accepts the given visitor. This results in a call to the visitor's visit method for this object and, if it returnstrue, to all its children recursively.- Parameters:
visitor- the visitor to accept- Returns:
- the result of the visitor's visit method
- See Also:
-
orGenericVisitorSupport
Returns the given model object if it implementsIVisitorSupportotherwise aGenericVisitorSupportwrapping it.- Since:
- 21.6
-