Class DummyElementProcessor
java.lang.Object
org.openstreetmap.osmosis.xml.common.BaseElementProcessor
org.openstreetmap.osmosis.xml.common.DummyElementProcessor
- All Implemented Interfaces:
ElementProcessor
Provides a no-op implementation of an element processor. This implementation
is provided to allow nested elements to be ignored if they are not required.
-
Constructor Summary
ConstructorsConstructorDescriptionDummyElementProcessor(BaseElementProcessor parentProcessor) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidbegin(Attributes attributes) This implementation does not do any processing.voidend()This implementation does not do any processing.This implementation returns itself and increments an internal counter.This implementation decrements an internal counter, if the counter reaches zero the true parent is returned, else this instance is returned.Methods inherited from class org.openstreetmap.osmosis.xml.common.BaseElementProcessor
createTimestampContainer
-
Constructor Details
-
DummyElementProcessor
Creates a new instance.- Parameters:
parentProcessor- The parent of this element processor.
-
-
Method Details
-
begin
This implementation does not do any processing.- Parameters:
attributes- The attributes of the new element.
-
getChild
This implementation returns itself and increments an internal counter. The corresponding getParent method decrements the counter and when it reaches zero returns the true parent of this instance.- Specified by:
getChildin interfaceElementProcessor- Overrides:
getChildin classBaseElementProcessor- Parameters:
uri- The element uri.localName- The element localName.qName- The element qName.- Returns:
- This instance.
-
getParent
This implementation decrements an internal counter, if the counter reaches zero the true parent is returned, else this instance is returned.- Specified by:
getParentin interfaceElementProcessor- Overrides:
getParentin classBaseElementProcessor- Returns:
- The element processor for the parent of the current element.
-
end
public void end()This implementation does not do any processing.
-