|
|||||||||
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
public abstract class BaseElementProcessor
Provides common functionality shared by element processor implementations.
Constructor Summary | |
---|---|
protected |
BaseElementProcessor(BaseElementProcessor parentProcessor,
boolean enableDateParsing)
Creates a new instance. |
Method Summary | |
---|---|
protected TimestampContainer |
createTimestampContainer(java.lang.String data)
Parses a date using the standard osm date format. |
ElementProcessor |
getChild(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
This implementation returns a dummy element processor as the child which ignores all nested xml elements. |
ElementProcessor |
getParent()
Returns the parent element processor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.openstreetmap.osmosis.core.xml.common.ElementProcessor |
---|
begin, end |
Constructor Detail |
---|
protected BaseElementProcessor(BaseElementProcessor parentProcessor, boolean enableDateParsing)
parentProcessor
- The parent of this element processor.enableDateParsing
- If true, dates will be parsed from xml data, else the current
date will be used thus saving parsing time.Method Detail |
---|
public ElementProcessor getChild(java.lang.String uri, java.lang.String localName, java.lang.String qName)
getChild
in interface ElementProcessor
uri
- The element uri.localName
- The element localName.qName
- The element qName.
public ElementProcessor getParent()
getParent
in interface ElementProcessor
protected TimestampContainer createTimestampContainer(java.lang.String data)
data
- The date string to be parsed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |