public class Region extends Object implements Serializable, RegionWithCount, WithCopy
Java class for Region complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Region">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="host" type="{urn:config.gridrouter.qatools.ru}Host" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected List<Host> |
hosts |
protected String |
name |
| Constructor and Description |
|---|
Region()
Default no-arg constructor
|
Region(List<Host> hosts,
String name)
Fully-initialising value constructor
|
| Modifier and Type | Method and Description |
|---|---|
List<Host> |
getHosts()
Gets the value of the hosts property.
|
String |
getName()
Gets the value of the name property.
|
void |
setName(String value)
Sets the value of the name property.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCountpublic List<Host> getHosts()
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 hosts property.
For example, to add a new item, do as follows:
getHosts().add(newItem);
Objects of the following type(s) are allowed in the list
Host
getHosts in interface RegionWithCountgetHosts in interface WithCopypublic String getName()
Copyright © 2015 Yandex. All rights reserved.