public class Region extends Object implements Serializable
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://www.geojsf.org/government}district" maxOccurs="unbounded"/>
</sequence>
<attribute name="id" type="{http://www.w3.org/2001/XMLSchema}long" />
<attribute name="code" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
code |
protected List<District> |
district |
protected Long |
id |
protected String |
name |
| Constructor and Description |
|---|
Region() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCode()
Gets the value of the code property.
|
List<District> |
getDistrict()
Gets the value of the district property.
|
long |
getId()
Gets the value of the id property.
|
String |
getName()
Gets the value of the name property.
|
boolean |
isSetCode() |
boolean |
isSetDistrict() |
boolean |
isSetId() |
boolean |
isSetName() |
void |
setCode(String value)
Sets the value of the code property.
|
void |
setId(long value)
Sets the value of the id property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
unsetDistrict() |
void |
unsetId() |
public List<District> getDistrict()
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 district property.
For example, to add a new item, do as follows:
getDistrict().add(newItem);
Objects of the following type(s) are allowed in the list
District
public boolean isSetDistrict()
public void unsetDistrict()
public long getId()
Longpublic void setId(long value)
value - allowed object is
Longpublic boolean isSetId()
public void unsetId()
public String getCode()
Stringpublic void setCode(String value)
value - allowed object is
Stringpublic boolean isSetCode()
public String getName()
Stringpublic void setName(String value)
value - allowed object is
Stringpublic boolean isSetName()
Copyright © 2016. All rights reserved.