org.xwiki.rest.model.jaxb
Class Class

java.lang.Object
  extended by org.xwiki.rest.model.jaxb.LinkCollection
      extended by 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
protected  String id
           
protected  String name
           
protected  List<Property> properties
           
 
Fields inherited from class org.xwiki.rest.model.jaxb.LinkCollection
links
 
Constructor Summary
Class()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected String id

name

protected String name

properties

protected List<Property> properties
Constructor Detail

Class

public Class()
Method Detail

getId

public String getId()
Gets the value of the id property.

Returns:
possible object is String

setId

public void setId(String value)
Sets the value of the id property.

Parameters:
value - allowed object is String

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 is String

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


withId

public Class withId(String value)

withName

public Class withName(String value)

withProperties

public Class withProperties(Property... values)

withProperties

public Class withProperties(Collection<Property> values)

withLinks

public Class withLinks(Link... values)
Overrides:
withLinks in class LinkCollection

withLinks

public Class withLinks(Collection<Link> values)
Overrides:
withLinks in class LinkCollection


Copyright © 2004-2012 XWiki. All Rights Reserved.