public class Hierarchy extends Object
Java class for Hierarchy complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Hierarchy"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="item" type="{http://www.xwiki.org}HierarchyItem" maxOccurs="unbounded" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
protected List<HierarchyItem> |
items |
Constructor and Description |
---|
Hierarchy() |
Modifier and Type | Method and Description |
---|---|
List<HierarchyItem> |
getItems()
Gets the value of the items property.
|
Hierarchy |
withItems(Collection<HierarchyItem> values) |
Hierarchy |
withItems(HierarchyItem... values) |
protected List<HierarchyItem> items
public List<HierarchyItem> getItems()
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 items property.
For example, to add a new item, do as follows:
getItems().add(newItem);
Objects of the following type(s) are allowed in the list
HierarchyItem
public Hierarchy withItems(HierarchyItem... values)
public Hierarchy withItems(Collection<HierarchyItem> values)
Copyright © 2004–2021 XWiki. All rights reserved.