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