|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openstreetmap.osmosis.core.xml.common.BaseElementProcessor
org.openstreetmap.osmosis.core.xml.common.DummyElementProcessor
public class DummyElementProcessor
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 | |
|---|---|
DummyElementProcessor(BaseElementProcessor parentProcessor)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
begin(org.xml.sax.Attributes attributes)
This implementation does not do any processing. |
void |
end()
This implementation does not do any processing. |
ElementProcessor |
getChild(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
This implementation returns itself and increments an internal counter. |
ElementProcessor |
getParent()
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.core.xml.common.BaseElementProcessor |
|---|
createTimestampContainer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DummyElementProcessor(BaseElementProcessor parentProcessor)
parentProcessor - The parent of this element processor.| Method Detail |
|---|
public void begin(org.xml.sax.Attributes attributes)
attributes - The attributes of the new element.
public ElementProcessor getChild(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
getChild in interface ElementProcessorgetChild in class BaseElementProcessoruri - The element uri.localName - The element localName.qName - The element qName.
public ElementProcessor getParent()
getParent in interface ElementProcessorgetParent in class BaseElementProcessorpublic void end()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||