P
- the base type of OSM primitivespublic interface IRelationMember<P extends IPrimitive> extends PrimitiveId
RelationMember
and RelationMemberData
.Modifier and Type | Method and Description |
---|---|
default OsmPrimitiveType |
getDisplayType()
Returns type of member for icon display.
|
P |
getMember()
Returns the relation member.
|
java.lang.String |
getRole()
Returns the role of this relation member.
|
default boolean |
hasRole()
Determines if this relation member has a role.
|
default boolean |
hasRole(java.lang.String... roles)
Determines if this relation member's role is in the given list.
|
boolean |
isNode()
Determines if this relation member is a node.
|
boolean |
isRelation()
Determines if this relation member is a relation.
|
boolean |
isWay()
Determines if this relation member is a way.
|
getType, getUniqueId, isNew
java.lang.String getRole()
default boolean hasRole()
default boolean hasRole(java.lang.String... roles)
roles
- The roles to look afterboolean isNode()
boolean isWay()
boolean isRelation()
default OsmPrimitiveType getDisplayType()