Class Geonames

java.lang.Object
slash.navigation.geonames.binding.Geonames

public class Geonames 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 name="code" maxOccurs="unbounded" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <element name="postalcode" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="countryCode" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="lat" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
                   <element name="lng" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
                   <element name="adminCode1" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="adminName1" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="adminCode2" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="adminName2" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="adminCode3" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="adminName3" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="distance" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
                 </sequence>
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="geoname" maxOccurs="unbounded" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="lat" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
                   <element name="lng" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
                   <element name="geonameId" type="{http://www.w3.org/2001/XMLSchema}unsignedInt"/>
                   <element name="countryCode" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="countryName" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="fcl" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="fcode" type="{http://www.w3.org/2001/XMLSchema}string"/>
                   <element name="distance" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
                 </sequence>
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="status" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <attribute name="message" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
                 <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • Geonames

      public Geonames()
  • Method Details

    • getCode

      public List<Geonames.Code> getCode()
      Gets the value of the code 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 Jakarta XML Binding object. This is why there is not a set method for the code property.

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

       getCode().add(newItem);
       

      Objects of the following type(s) are allowed in the list Geonames.Code

      Returns:
      The value of the code property.
    • getGeoname

      public List<Geonames.Geoname> getGeoname()
      Gets the value of the geoname 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 Jakarta XML Binding object. This is why there is not a set method for the geoname property.

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

       getGeoname().add(newItem);
       

      Objects of the following type(s) are allowed in the list Geonames.Geoname

      Returns:
      The value of the geoname property.
    • getStatus

      public Geonames.Status getStatus()
      Gets the value of the status property.
      Returns:
      possible object is Geonames.Status
    • setStatus

      public void setStatus(Geonames.Status value)
      Sets the value of the status property.
      Parameters:
      value - allowed object is Geonames.Status