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>
Modifier and Type | Field and Description |
---|---|
protected String |
id |
protected String |
name |
protected List<Property> |
properties |
links
Constructor and Description |
---|
Class() |
Modifier and Type | Method and 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) |
getLinks
public void setId(String value)
value
- allowed object is
String
public String getName()
String
public void setName(String value)
value
- allowed object is
String
public List<Property> getProperties()
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
public Class withProperties(Collection<Property> values)
public Class withLinks(Link... values)
withLinks
in class LinkCollection
public Class withLinks(Collection<Link> values)
withLinks
in class LinkCollection
Copyright © 2004–2021 XWiki. All rights reserved.