Package org.xwiki.rest.model.jaxb
Class Class
- java.lang.Object
-
- org.xwiki.rest.model.jaxb.LinkCollection
-
- org.xwiki.rest.model.jaxb.Class
-
public class Class extends LinkCollection
Java class for Class complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Class"> <complexContent> <extension base="{http://www.xwiki.org}LinkCollection"> <sequence> <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/> <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/> <element name="property" type="{http://www.xwiki.org}Property" maxOccurs="unbounded" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringidprotected Stringnameprotected List<Property>properties-
Fields inherited from class org.xwiki.rest.model.jaxb.LinkCollection
links
-
-
Constructor Summary
Constructors Constructor Description Class()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()Gets the value of the id property.StringgetName()Gets the value of the name property.List<Property>getProperties()Gets the value of the properties property.voidsetId(String value)Sets the value of the id property.voidsetName(String value)Sets the value of the name property.ClasswithId(String value)ClasswithLinks(Collection<Link> values)ClasswithLinks(Link... values)ClasswithName(String value)ClasswithProperties(Collection<Property> values)ClasswithProperties(Property... values)-
Methods inherited from class org.xwiki.rest.model.jaxb.LinkCollection
getLinks
-
-
-
-
Method Detail
-
setId
public void setId(String value)
Sets the value of the id property.- Parameters:
value- allowed object isString
-
getName
public String getName()
Gets the value of the name property.- Returns:
- possible object is
String
-
setName
public void setName(String value)
Sets the value of the name property.- Parameters:
value- allowed object isString
-
getProperties
public List<Property> getProperties()
Gets the value of the properties 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
setmethod for the properties property.For example, to add a new item, do as follows:
getProperties().add(newItem);Objects of the following type(s) are allowed in the list
Property
-
withProperties
public Class withProperties(Collection<Property> values)
-
withLinks
public Class withLinks(Link... values)
- Overrides:
withLinksin classLinkCollection
-
withLinks
public Class withLinks(Collection<Link> values)
- Overrides:
withLinksin classLinkCollection
-
-