public class Service extends Object implements Serializable
<xs:complexType xmlns:ns="http://ns.dataone.org/service/types/v1" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Service">
<xs:sequence>
<xs:element type="ns:ServiceMethodRestriction" name="restriction" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute type="xs:string" use="required" name="name"/>
<xs:attribute type="xs:string" use="required" name="version"/>
<xs:attribute type="xs:boolean" name="available"/>
</xs:complexType>
| Constructor and Description |
|---|
Service() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRestriction(ServiceMethodRestriction item)
Add a 'restriction' element item.
|
void |
clearRestrictionList()
Remove all 'restriction' element items.
|
Boolean |
getAvailable()
Get the 'available' attribute value.
|
String |
getName()
Get the 'name' attribute value.
|
ServiceMethodRestriction |
getRestriction(int index)
Get 'restriction' element item by position.
|
List<ServiceMethodRestriction> |
getRestrictionList()
Get the list of 'restriction' element items.
|
String |
getVersion()
Get the 'version' attribute value.
|
void |
setAvailable(Boolean available)
Set the 'available' attribute value.
|
void |
setName(String name)
Set the 'name' attribute value.
|
void |
setRestrictionList(List<ServiceMethodRestriction> list)
Set the list of 'restriction' element items.
|
void |
setVersion(String version)
Set the 'version' attribute value.
|
int |
sizeRestrictionList()
Get the number of 'restriction' element items.
|
public List<ServiceMethodRestriction> getRestrictionList()
public void setRestrictionList(List<ServiceMethodRestriction> list)
list - public int sizeRestrictionList()
public void addRestriction(ServiceMethodRestriction item)
item - public ServiceMethodRestriction getRestriction(int index)
index - public void clearRestrictionList()
public String getName()
public void setName(String name)
name - public String getVersion()
public void setVersion(String version)
version - public Boolean getAvailable()
public void setAvailable(Boolean available)
available - Copyright © 2014. All Rights Reserved.