public class Category extends Object
Java class for category complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="category">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="preference" type="{}preference" maxOccurs="unbounded"/>
<element name="category" type="{}category" maxOccurs="unbounded"/>
</sequence>
<attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected List<Category> |
categories
Categories list
|
protected String |
id
Id
|
protected List<Preference> |
preferences
Preferences list
|
| Constructor and Description |
|---|
Category() |
| Modifier and Type | Method and Description |
|---|---|
List<Category> |
getCategories()
Gets the value of the categories property.
|
String |
getId()
Gets the value of the id property.
|
List<Preference> |
getPreferences()
Gets the value of the preferences property.
|
void |
setId(String value)
Sets the value of the id property.
|
protected List<Preference> preferences
protected String id
public List<Preference> getPreferences()
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 preferences property.
For example, to add a new item, do as follows:
getPreferences().add(newItem);
Objects of the following type(s) are allowed in the list Preference
public List<Category> getCategories()
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 categories property.
For example, to add a new item, do as follows:
getCategories().add(newItem);
Objects of the following type(s) are allowed in the list Category
Copyright © 2017. All rights reserved.