|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.io.AbstractReader
public abstract class AbstractReader
Abstract Reader, allowing other implementations than OsmReader (PbfReader in PBF plugin for example)
Field Summary | |
---|---|
protected DataSet |
ds
The dataset to add parsed objects to. |
protected java.util.Map<PrimitiveId,OsmPrimitive> |
externalIdMap
the map from external ids to read OsmPrimitives. |
protected java.util.Map<java.lang.Long,java.util.Collection<RelationMemberData>> |
relations
Data structure for relation objects |
protected Changeset |
uploadChangeset
|
protected java.util.Map<java.lang.Long,java.util.Collection<java.lang.Long>> |
ways
Data structure for the remaining way objects |
Constructor Summary | |
---|---|
AbstractReader()
|
Method Summary | |
---|---|
DataSet |
getDataSet()
Replies the parsed data set |
protected void |
prepareDataSet()
|
protected void |
processChangesetAfterParsing()
|
protected void |
processNodesAfterParsing()
Processes the parsed nodes after parsing. |
protected void |
processRelationsAfterParsing()
Completes the parsed relations with its members. |
protected void |
processWaysAfterParsing()
Processes the ways after parsing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DataSet ds
protected Changeset uploadChangeset
protected final java.util.Map<PrimitiveId,OsmPrimitive> externalIdMap
protected final java.util.Map<java.lang.Long,java.util.Collection<java.lang.Long>> ways
protected final java.util.Map<java.lang.Long,java.util.Collection<RelationMemberData>> relations
Constructor Detail |
---|
public AbstractReader()
Method Detail |
---|
public DataSet getDataSet()
protected void processNodesAfterParsing()
protected void processWaysAfterParsing() throws IllegalDataException
IllegalDataException
- thrown if a data integrity problem is detectedprotected void processRelationsAfterParsing() throws IllegalDataException
IllegalDataException
- thrown if a data integrity problem is detected, i.e. if a
relation member refers to a local primitive which wasn't available in the dataprotected void processChangesetAfterParsing()
protected final void prepareDataSet() throws IllegalDataException
IllegalDataException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |