Class Member

java.lang.Object
org.ka2ddo.yaac.osm.Member

public class Member extends Object
This class represents Member sub-tags of a Relation element of a OSM file.
Author:
Andrew Pavlin, KA2DDO
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    ID of other data structure (Node, Way, or Relation) that this Member represents.
    The role this member plays in the Relation.
    Type of other data structure.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create an empty Member.
    Member(long ref, String type, String role)
    Create a Member filled in with the specified values.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Member
    Reads a Member from the input stream.
    Returns a string representation of the object.
    void
    Write this Member to a stream.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • ref

      public long ref
      ID of other data structure (Node, Way, or Relation) that this Member represents.
    • type

      public String type
      Type of other data structure. May be "node", "way", or "relation".
    • role

      public String role
      The role this member plays in the Relation.
  • Constructor Details

    • Member

      public Member()
      Create an empty Member.
    • Member

      public Member(long ref, String type, String role)
      Create a Member filled in with the specified values.
      Parameters:
      ref - long ID number of the referenced structure
      type - String type of the structure (only "node", "way", and "relation" are supported)
      role - String role of the Member within the Relation
  • Method Details

    • write

      public void write(DataOutput dos) throws IOException
      Write this Member to a stream.
      Parameters:
      dos - DataOutput implementer to write to
      Throws:
      IOException - if write fails
    • read

      public static Member read(DataInput is) throws IOException
      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

      public String toString()
      Returns a string representation of the object.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the object.