Class Way

java.lang.Object
org.openstreetmap.osm.Way

public class Way extends Object

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{http://openstreetmap.org/osm/0.6}nd" maxOccurs="2000" minOccurs="2"/>
         <element ref="{http://openstreetmap.org/osm/0.6}tag" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" />
       <attribute name="user" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="uid" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" />
       <attribute name="visible" type="{http://www.w3.org/2001/XMLSchema}boolean" />
       <attribute name="version" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" />
       <attribute name="changeset" type="{http://www.w3.org/2001/XMLSchema}unsignedLong" />
       <attribute name="timestamp" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • Way

      public Way()
  • Method Details

    • getNd

      public List<Nd> getNd()
      Gets the value of the nd property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the nd property.

      For example, to add a new item, do as follows:

          getNd().add(newItem);
       

      Objects of the following type(s) are allowed in the list Nd

    • getTag

      public List<Tag> getTag()
      Gets the value of the tag property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the tag property.

      For example, to add a new item, do as follows:

          getTag().add(newItem);
       

      Objects of the following type(s) are allowed in the list Tag

    • getId

      public BigInteger getId()
      Gets the value of the id property.
      Returns:
      possible object is BigInteger
    • setId

      public void setId(BigInteger value)
      Sets the value of the id property.
      Parameters:
      value - allowed object is BigInteger
    • getUser

      public String getUser()
      Gets the value of the user property.
      Returns:
      possible object is String
    • setUser

      public void setUser(String value)
      Sets the value of the user property.
      Parameters:
      value - allowed object is String
    • getUid

      public BigInteger getUid()
      Gets the value of the uid property.
      Returns:
      possible object is BigInteger
    • setUid

      public void setUid(BigInteger value)
      Sets the value of the uid property.
      Parameters:
      value - allowed object is BigInteger
    • isVisible

      public Boolean isVisible()
      Gets the value of the visible property.
      Returns:
      possible object is Boolean
    • setVisible

      public void setVisible(Boolean value)
      Sets the value of the visible property.
      Parameters:
      value - allowed object is Boolean
    • getVersion

      public BigInteger getVersion()
      Gets the value of the version property.
      Returns:
      possible object is BigInteger
    • setVersion

      public void setVersion(BigInteger value)
      Sets the value of the version property.
      Parameters:
      value - allowed object is BigInteger
    • getChangeset

      public BigInteger getChangeset()
      Gets the value of the changeset property.
      Returns:
      possible object is BigInteger
    • setChangeset

      public void setChangeset(BigInteger value)
      Sets the value of the changeset property.
      Parameters:
      value - allowed object is BigInteger
    • getTimestamp

      public XMLGregorianCalendar getTimestamp()
      Gets the value of the timestamp property.
      Returns:
      possible object is XMLGregorianCalendar
    • setTimestamp

      public void setTimestamp(XMLGregorianCalendar value)
      Sets the value of the timestamp property.
      Parameters:
      value - allowed object is XMLGregorianCalendar