public interface ElementVisitorFactory2 extends ElementVisitorFactory
If an ElementVisitorFactory is registered with
ElementContext#registerVisitorFactory(ElementVisitorFactory) and also
implements ElementVisitorFactory2, then the getVisitor(ElementContext,ElementName)
will be used in preference to ElementVisitorFactory.getVisitor(ElementName).
| Modifier and Type | Method and Description |
|---|---|
ElementVisitor |
getVisitor(ElementContext context,
ElementName name)
Get a suitable visitor for the specified element name.
|
boolean |
isDescending()
Returns true if this visitor factory supports descending
through all children of the element for which it was registered.
|
getVisitorboolean isDescending()
ElementVisitor getVisitor(ElementContext context, ElementName name) throws UnrecognizedElementException
context - the current context.name - a qualified element name.UnrecognizedElementException - if the factory does not
recognize the element and this should be raised as an error.