public class Resource extends Object
Java class for resource complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="resource">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="rate" type="{}rate" minOccurs="0"/>
<element name="custom-property" type="{}custom-resource-property" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="id" type="{http://www.w3.org/2001/XMLSchema}int" />
<attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="function" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="contacts" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="phone" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
contacts |
protected List<CustomResourceProperty> |
customProperty |
protected String |
function |
protected Integer |
id |
protected String |
name |
protected String |
phone |
protected Rate |
rate |
| Constructor and Description |
|---|
Resource() |
| Modifier and Type | Method and Description |
|---|---|
String |
getContacts()
Gets the value of the contacts property.
|
List<CustomResourceProperty> |
getCustomProperty()
Gets the value of the customProperty property.
|
String |
getFunction()
Gets the value of the function property.
|
Integer |
getId()
Gets the value of the id property.
|
String |
getName()
Gets the value of the name property.
|
String |
getPhone()
Gets the value of the phone property.
|
Rate |
getRate()
Gets the value of the rate property.
|
void |
setContacts(String value)
Sets the value of the contacts property.
|
void |
setFunction(String value)
Sets the value of the function property.
|
void |
setId(Integer value)
Sets the value of the id property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setPhone(String value)
Sets the value of the phone property.
|
void |
setRate(Rate value)
Sets the value of the rate property.
|
protected Rate rate
protected List<CustomResourceProperty> customProperty
protected Integer id
protected String name
protected String function
protected String contacts
protected String phone
public void setRate(Rate value)
value - allowed object is
Ratepublic List<CustomResourceProperty> getCustomProperty()
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 customProperty property.
For example, to add a new item, do as follows:
getCustomProperty().add(newItem);
Objects of the following type(s) are allowed in the list
CustomResourceProperty
public void setId(Integer value)
value - allowed object is
Integerpublic String getName()
Stringpublic void setName(String value)
value - allowed object is
Stringpublic String getFunction()
Stringpublic void setFunction(String value)
value - allowed object is
Stringpublic String getContacts()
Stringpublic void setContacts(String value)
value - allowed object is
Stringpublic String getPhone()
StringCopyright © 2000–2025 MPXJ. All rights reserved.