Package org.openstreetmap.josm.data.osm
Interface PrimitiveId
-
- All Known Subinterfaces:
INode
,IPrimitive
,IRelation<M>
,IRelationMember<P>
,IWay<N>
- All Known Implementing Classes:
AbstractPrimitive
,HistoryNode
,HistoryOsmPrimitive
,HistoryRelation
,HistoryWay
,Node
,NodeData
,OsmPrimitive
,PrimitiveData
,Relation
,RelationData
,RelationMember
,RelationMemberData
,SimplePrimitiveId
,VectorNode
,VectorPrimitive
,VectorRelation
,VectorRelationMember
,VectorWay
,Way
,WayData
public interface PrimitiveId
interface to represent identification and type of the datatypes primitives.- Since:
- 2399
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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. Note that this should return the base primitive type (OsmPrimitiveType.NODE
,OsmPrimitiveType.WAY
, andOsmPrimitiveType.RELATION
).
-
isNew
boolean isNew()
Replies true if this id represents a new primitive.- Returns:
- true if this id represents a new primitive.
-
-