Class Idea
- java.lang.Object
-
- com.xwiki.ideas.model.jaxb.Idea
-
public class Idea extends Object
Java class for Idea complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Idea"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="supporters" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/> <element name="opponents" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/> </sequence> </restriction> </complexContent> </complexType>
-
-
Constructor Summary
Constructors Constructor Description Idea()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getOpponents()Gets the value of the opponents property.List<String>getSupporters()Gets the value of the supporters property.IdeawithOpponents(String... values)IdeawithOpponents(Collection<String> values)IdeawithSupporters(String... values)IdeawithSupporters(Collection<String> values)
-
-
-
Method Detail
-
getSupporters
public List<String> getSupporters()
Gets the value of the supporters 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 supporters property.For example, to add a new item, do as follows:
getSupporters().add(newItem);Objects of the following type(s) are allowed in the list
String
-
getOpponents
public List<String> getOpponents()
Gets the value of the opponents 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 opponents property.For example, to add a new item, do as follows:
getOpponents().add(newItem);Objects of the following type(s) are allowed in the list
String
-
withSupporters
public Idea withSupporters(Collection<String> values)
-
withOpponents
public Idea withOpponents(Collection<String> values)
-
-