|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.annotation.rest.model.jaxb.AnnotatedContent
public class AnnotatedContent
Stores the rendered annotated content along with a list of annotation stubs allowing to display an annotated document and the annotation markers on it.
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="annotation" type="{http://www.xwiki.org}AnnotationStub" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Field Summary | |
|---|---|
protected java.util.List<AnnotationStub> |
annotations
|
protected java.lang.String |
content
|
| Constructor Summary | |
|---|---|
AnnotatedContent()
|
|
| Method Summary | |
|---|---|
java.util.List<AnnotationStub> |
getAnnotations()
Gets the value of the annotations property. |
java.lang.String |
getContent()
Gets the value of the content property. |
void |
setContent(java.lang.String value)
Sets the value of the content property. |
AnnotatedContent |
withAnnotations(AnnotationStub... values)
|
AnnotatedContent |
withAnnotations(java.util.Collection<AnnotationStub> values)
|
AnnotatedContent |
withContent(java.lang.String value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String content
protected java.util.List<AnnotationStub> annotations
| Constructor Detail |
|---|
public AnnotatedContent()
| Method Detail |
|---|
public java.lang.String getContent()
Stringpublic void setContent(java.lang.String value)
value - allowed object is
Stringpublic java.util.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(java.lang.String value)
public AnnotatedContent withAnnotations(AnnotationStub... values)
public AnnotatedContent withAnnotations(java.util.Collection<AnnotationStub> values)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||