|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ka2ddo.yaac.osm.GenericTaggedNode<ChangeSet>
org.ka2ddo.yaac.osm.ChangeSet
public class ChangeSet
This class contains the data extracted from a OSM changeset record.
| Field Summary | |
|---|---|
int |
id
|
java.lang.String |
timestamp
|
java.lang.String |
uid
|
java.lang.String |
user
|
static int |
YAAC_STRUCTURE_VERSION
Constant for indicating structural changes to YAAC compilation of OSM data. |
int |
yaacStructureVersion
|
| Fields inherited from class org.ka2ddo.yaac.osm.GenericTaggedNode |
|---|
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 Summary | |
|---|---|
ChangeSet()
|
|
| Method Summary | |
|---|---|
int |
compareTo(ChangeSet o)
Compares this object with the specified object for order. |
ChangeSet |
dup()
Create a deep copy of this ChangeSet. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
int |
hashCode()
Returns a hash code value for the object. |
static ChangeSet |
read(java.io.DataInput dis)
|
void |
write(java.io.DataOutput dos)
|
void |
writeGPX(java.io.PrintStream ps)
Write this ChangeSet 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). |
| Methods inherited from class org.ka2ddo.yaac.osm.GenericTaggedNode |
|---|
decodedTagArrayToString, ensureElementHasTagArray, getDecodedTagCount, hasDecodedTags, putTag, readTags, writeTags |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int YAAC_STRUCTURE_VERSION
public int id
public java.lang.String user
public java.lang.String uid
public java.lang.String timestamp
public int yaacStructureVersion
| Constructor Detail |
|---|
public ChangeSet()
| Method Detail |
|---|
public void write(java.io.DataOutput dos)
throws java.io.IOException
java.io.IOException
protected void writeId(java.io.DataOutput dos)
throws java.io.IOException
writeId in class GenericTaggedNode<ChangeSet>dos - DataOutput to use to append the binary ID value
java.io.IOException - if write fails for any reason
public static ChangeSet read(java.io.DataInput dis)
throws java.io.IOException
java.io.IOExceptionpublic ChangeSet dup()
dup in class GenericTaggedNode<ChangeSet>public void writeGPX(java.io.PrintStream ps)
writeGPX in class GenericTaggedNode<ChangeSet>ps - PrintStream to write topublic int hashCode()
hashCode in class java.lang.ObjectObject.equals(Object),
System.identityHashCode(java.lang.Object)public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the reference object with which to compare.
true if this object is the same as the obj
argument; false otherwise.hashCode(),
HashMappublic int compareTo(ChangeSet o)
compareTo in interface java.lang.Comparable<ChangeSet>o - the object to be compared.
java.lang.NullPointerException - if the specified object is null
java.lang.ClassCastException - if the specified object's type prevents it
from being compared to this object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||