Class AnnotationFieldCollection
- java.lang.Object
-
- org.xwiki.annotation.rest.model.jaxb.AnnotationFieldCollection
-
public class AnnotationFieldCollection extends Object
Stores the information about a request for an annotation to be updated, which is basically any collection of fields.Java class for AnnotationFieldCollection complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="AnnotationFieldCollection"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="fields" type="{http://www.xwiki.org}AnnotationField" maxOccurs="unbounded" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected List<AnnotationField>
fields
-
Constructor Summary
Constructors Constructor Description AnnotationFieldCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AnnotationField>
getFields()
Gets the value of the fields property.AnnotationFieldCollection
withFields(Collection<AnnotationField> values)
AnnotationFieldCollection
withFields(AnnotationField... values)
-
-
-
Field Detail
-
fields
protected List<AnnotationField> fields
-
-
Method Detail
-
getFields
public List<AnnotationField> getFields()
Gets the value of the fields property.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 fields property.For example, to add a new item, do as follows:
getFields().add(newItem);
Objects of the following type(s) are allowed in the list
AnnotationField
-
withFields
public AnnotationFieldCollection withFields(AnnotationField... values)
-
withFields
public AnnotationFieldCollection withFields(Collection<AnnotationField> values)
-
-