public class Relation extends GenericTaggedNode<Relation>
| Modifier and Type | Field and Description |
|---|---|
int |
id |
decodedtagArray, FIXME, flags, HAS_ID, HAS_ID64, HAS_INTERNET_ACCESS, HAS_TOLL, IS_AREA, IS_BRIDGE, IS_BUILDING, IS_DISUSED, IS_INFERRED_AREA, IS_ISLAND, IS_LIT, IS_ONEWAY, IS_ONEWAY_BACKWARDS, IS_TUNNEL, IS_WATER, RENDERABLE_FLAGS| Constructor and Description |
|---|
Relation() |
| Modifier and Type | Method and Description |
|---|---|
Relation |
dup()
Create a deep copy of this Relation.
|
java.lang.Number |
getId()
Return the ID of this OSM record as a sub-class of Number.
|
static void |
main(java.lang.String[] args) |
static Relation |
read(java.io.DataInput is) |
java.lang.String |
toString()
Returns a string representation of the Relation object.
|
void |
write(java.io.DataOutput dos) |
void |
writeGPX(java.io.PrintStream ps)
Write this Relation to the specified stream as the XML tags one element in GPX schema format.
|
protected void |
writeId(java.io.DataOutput dos)
Handle writing the ID field to the binary data stream (handles larger ID ranges in
varying subclasses).
|
decodedTagArrayToString, ensureElementHasTagArray, getDecodedTagCount, hasDecodedTags, putTag, readTags, writeTagsprotected void writeId(java.io.DataOutput dos)
throws java.io.IOException
writeId in class GenericTaggedNode<Relation>dos - DataOutput to use to append the binary ID valuejava.io.IOException - if write fails for any reasonpublic java.lang.Number getId()
getId in class GenericTaggedNode<Relation>public void write(java.io.DataOutput dos)
throws java.io.IOException
java.io.IOExceptionpublic static Relation read(java.io.DataInput is) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic Relation dup()
dup in class GenericTaggedNode<Relation>public void writeGPX(java.io.PrintStream ps)
writeGPX in class GenericTaggedNode<Relation>ps - PrintStream to write topublic static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException