Package org.ka2ddo.yaac.osm
Class Member
java.lang.Object
org.ka2ddo.yaac.osm.Member
This class represents Member sub-tags of a Relation element of a OSM file.
- Author:
- Andrew Pavlin, KA2DDO
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
ref
public long refID of other data structure (Node, Way, or Relation) that this Member represents. -
type
Type of other data structure. May be "node", "way", or "relation". -
role
The role this member plays in the Relation.
-
-
Constructor Details
-
Member
public Member()Create an empty Member. -
Member
Create a Member filled in with the specified values.- Parameters:
ref
- long ID number of the referenced structuretype
- String type of the structure (only "node", "way", and "relation" are supported)role
- String role of the Member within the Relation
-
-
Method Details
-
write
Write this Member to a stream.- Parameters:
dos
- DataOutput implementer to write to- Throws:
IOException
- if write fails
-
read
Reads a Member from the input stream.- Parameters:
is
- DataInput to read from- Returns:
- allocated and filled-in Member structure
- Throws:
IOException
- if read fails
-
toString
Returns a string representation of the object.
-