org.openstreetmap.josm.data.osm
Interface PrimitiveId

All Known Subinterfaces:
INode, IPrimitive, IRelation, IWay
All Known Implementing Classes:
AbstractPrimitive, Node, NodeData, OsmPrimitive, PrimitiveData, Relation, RelationData, RelationMember, RelationMemberData, SimplePrimitiveId, Way, WayData

public interface PrimitiveId

interface to represent identifaction and type of the datatypes primitives.

Since:
2399

Method Summary
 OsmPrimitiveType getType()
          Gets the type of object represented by this object.
 long getUniqueId()
          Gets a unique id representing this object (the OSM server id for OSM objects)
 boolean isNew()
          Replies true if this id represents a new primitive.
 

Method Detail

getUniqueId

long getUniqueId()
Gets a unique id representing this object (the OSM server id for OSM objects)

Returns:
the id number

getType

OsmPrimitiveType getType()
Gets the type of object represented by this object.

Returns:
the object type
See Also:
Node, Way, Relation

isNew

boolean isNew()
Replies true if this id represents a new primitive.

Returns:
true if this id represents a new primitive.


JOSM