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  java.lang.String id
           
protected  java.lang.String name
           
protected  java.util.List<Property> properties
           
 
Fields inherited from class org.xwiki.rest.model.jaxb.LinkCollection
links
 
Constructor Summary
Class()
           
 
Method Summary
 java.lang.String getId()
          Gets the value of the id property.
 java.lang.String getName()
          Gets the value of the name property.
 java.util.List<Property> getProperties()
          Gets the value of the properties property.
 void setId(java.lang.String value)
          Sets the value of the id property.
 void setName(java.lang.String value)
          Sets the value of the name property.
 Class withId(java.lang.String value)
           
 Class withLinks(java.util.Collection<Link> values)
           
 Class withLinks(Link... values)
           
 Class withName(java.lang.String value)
           
 Class withProperties(java.util.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 java.lang.String id

name

protected java.lang.String name

properties

protected java.util.List<Property> properties
Constructor Detail

Class

public Class()
Method Detail

getId

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

Returns:
possible object is String

setId

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

Parameters:
value - allowed object is String

getName

public java.lang.String getName()
Gets the value of the name property.

Returns:
possible object is String

setName

public void setName(java.lang.String value)
Sets the value of the name property.

Parameters:
value - allowed object is String

getProperties

public java.util.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(java.lang.String value)

withName

public Class withName(java.lang.String value)

withProperties

public Class withProperties(Property... values)

withProperties

public Class withProperties(java.util.Collection<Property> values)

withLinks

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

withLinks

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


Copyright © 2004-2010 XWiki. All Rights Reserved.