public class Member
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
long |
ref
ID of other data structure (Node, Way, or Relation) that this Member represents.
|
java.lang.String |
role
The role this member plays in the Relation.
|
java.lang.String |
type
Type of other data structure.
|
Constructor and Description |
---|
Member()
Create an empty Member.
|
Member(long ref,
java.lang.String type,
java.lang.String role)
Create a Member filled in with the specified values.
|
Modifier and Type | Method and Description |
---|---|
static Member |
read(java.io.DataInput is)
Reads a Member from the input stream.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
void |
write(java.io.DataOutput dos)
Write this Member to a stream.
|
public long ref
public java.lang.String type
public java.lang.String role
public Member()
public Member(long ref, java.lang.String type, java.lang.String role)
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 Relationpublic void write(java.io.DataOutput dos) throws java.io.IOException
dos
- DataOutput implementer to write tojava.io.IOException
- if write failspublic static Member read(java.io.DataInput is) throws java.io.IOException
is
- DataInput to read fromjava.io.IOException
- if read failspublic java.lang.String toString()
toString
in class java.lang.Object