| java.lang.Object | |
| ↳ | com.google.gdata.model.CompositeElementVisitor |
This class provides an ElementVisitor implementation that aggregates multiple nested ElementVisitor instances. This makes it possible to apply several different unrelated visitor implementations during a single data model tree traversal.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ignoringVisitors | The ignoringVisitors map contains information about visitors that are currently ignoring child events. | ||||||||||
| stoppedVisitors | Contains the collection of inactive ElementVisitor instance and the
ElementVisitor.StoppedException that made them inactive. |
||||||||||
| visitors | The visitors field contains a list of the active ElementVisitor instances for the composite visitor. | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new CompositeElementVisitor instance containing the array of
visitor instances passed in.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Adds a new
ElementVisitor instance to the composite visitor. | |||||||||||
Returns any StoppedException thrown by the specified visitor, or
null if the visitor completed normally. | |||||||||||
Returns the list of active element visitor instances.
| |||||||||||
Called during Element tree traversal to allow the visitor instance
to process an element in the tree.
| |||||||||||
The visitComplete method is called when traversal for an Element
and all of its nested children has been completed.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.google.gdata.model.ElementVisitor
| |||||||||||
The ignoringVisitors map contains information about visitors that are currently ignoring child events. The key will be the visitor instance that is ignoring child events and the value will be the element beneath which all child events are being ignored.
Contains the collection of inactive ElementVisitor instance and the
ElementVisitor.StoppedException that made them inactive.
The visitors field contains a list of the active ElementVisitor instances for the composite visitor.
Constructs a new CompositeElementVisitor instance containing the array of visitor instances passed in. The order in which each visitor instance appears in the array is significant; it defines the order in which events for a given element will be delivered to the nested instances.
| visitors | List of ElementVisitor instances to compose. |
|---|
Adds a new ElementVisitor instance to the composite visitor. For
any element, events will be delivered to the added visitor after events
have been delivered to other visitors already contained in the composite
visitor at the time of addition.
| visitor | The new visitor to add. |
|---|
Returns any StoppedException thrown by the specified visitor, or
null if the visitor completed normally.
| visitor |
|---|
Returns the list of active element visitor instances. Any stopped visitors will not appear in this list.
Called during Element tree traversal to allow the visitor instance to process an element in the tree.
| parent | The parent of the target element |
|---|---|
| target | The target element being visited |
| metadata | The metadata for the target element |
The visitComplete method is called when traversal for an Element and all of its nested children has been completed.
| parent | The parent of the target element |
|---|---|
| target | The visited element |
| metadata | The metadata for the target element |