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 String
id
protected String
name
protected 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 String
getId()
Gets the value of the id property.String
getName()
Gets the value of the name property.List<Property>
getProperties()
Gets the value of the properties property.void
setId(String value)
Sets the value of the id property.void
setName(String value)
Sets the value of the name property.Class
withId(String value)
Class
withLinks(Collection<Link> values)
Class
withLinks(Link... values)
Class
withName(String value)
Class
withProperties(Collection<Property> values)
Class
withProperties(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
set
method 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:
withLinks
in classLinkCollection
-
withLinks
public Class withLinks(Collection<Link> values)
- Overrides:
withLinks
in classLinkCollection
-
-