Class Geonames
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>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classJava class for anonymous complex typestatic classJava class for anonymous complex typestatic classJava class for anonymous complex type -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<Geonames.Code> protected List<Geonames.Geoname> protected Geonames.Status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCode()Gets the value of the code property.Gets the value of the geoname property.Gets the value of the status property.voidsetStatus(Geonames.Status value) Sets the value of the status property.
-
Field Details
-
code
-
geoname
-
status
-
-
Constructor Details
-
Geonames
public Geonames()
-
-
Method Details
-
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
setmethod 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
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
setmethod 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
Gets the value of the status property.- Returns:
- possible object is
Geonames.Status
-