Package org.xwiki.rest.model.jaxb
Class Property
- java.lang.Object
-
- org.xwiki.rest.model.jaxb.LinkCollection
-
- org.xwiki.rest.model.jaxb.Property
-
public class Property extends LinkCollection
Java class for Property complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Property"> <complexContent> <extension base="{http://www.xwiki.org}LinkCollection"> <sequence> <element name="attribute" type="{http://www.xwiki.org}Attribute" maxOccurs="unbounded" minOccurs="0"/> <element name="value" type="{http://www.w3.org/2001/XMLSchema}string"/> </sequence> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" /> </extension> </complexContent> </complexType>
-
-
Constructor Summary
Constructors Constructor Description Property()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Attribute>getAttributes()Gets the value of the attributes property.StringgetName()Gets the value of the name property.StringgetType()Gets the value of the type property.StringgetValue()Gets the value of the value property.voidsetName(String value)Sets the value of the name property.voidsetType(String value)Sets the value of the type property.voidsetValue(String value)Sets the value of the value property.PropertywithAttributes(Collection<Attribute> values)PropertywithAttributes(Attribute... values)PropertywithLinks(Collection<Link> values)PropertywithLinks(Link... values)PropertywithName(String value)PropertywithType(String value)PropertywithValue(String value)-
Methods inherited from class org.xwiki.rest.model.jaxb.LinkCollection
getLinks
-
-
-
-
Method Detail
-
getAttributes
public List<Attribute> getAttributes()
Gets the value of the attributes 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 attributes property.For example, to add a new item, do as follows:
getAttributes().add(newItem);Objects of the following type(s) are allowed in the list
Attribute
-
getValue
public String getValue()
Gets the value of the value property.- Returns:
- possible object is
String
-
setValue
public void setValue(String value)
Sets the value of the value 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
-
getType
public String getType()
Gets the value of the type property.- Returns:
- possible object is
String
-
setType
public void setType(String value)
Sets the value of the type property.- Parameters:
value- allowed object isString
-
withAttributes
public Property withAttributes(Collection<Attribute> values)
-
withLinks
public Property withLinks(Link... values)
- Overrides:
withLinksin classLinkCollection
-
withLinks
public Property withLinks(Collection<Link> values)
- Overrides:
withLinksin classLinkCollection
-
-