com.xpn.xwiki.api
Class Object

java.lang.Object
  extended by com.xpn.xwiki.api.Api
      extended by com.xpn.xwiki.api.Element
          extended by com.xpn.xwiki.api.Collection
              extended by com.xpn.xwiki.api.Object

public class Object
extends Collection


Field Summary
 
Fields inherited from class com.xpn.xwiki.api.Element
element
 
Fields inherited from class com.xpn.xwiki.api.Api
context
 
Constructor Summary
Object(BaseObject obj, XWikiContext context)
           
 
Method Summary
 Object display(String name, String mode)
           
 boolean equals(Object arg0)
           
 Object get(String name)
          This method's name is misleading since it doesn't return the Object's property value; it"s equivalent to display(String, String) (with type equals to view).
protected  BaseObject getBaseObject()
           
 String getGuid()
           
 BaseObject getXWikiObject()
           
 void set(String fieldname, Object value)
           
 void setGuid(String guid)
           
 
Methods inherited from class com.xpn.xwiki.api.Collection
getCollection, getName, getNumber, getPrettyName, getProperties, getProperty, getPropertyNames, getxWikiClass
 
Methods inherited from class com.xpn.xwiki.api.Element
getBaseElement
 
Methods inherited from class com.xpn.xwiki.api.Api
convert, convert, getXWikiContext, hasAccessLevel, hasAdminRights, hasProgrammingRights, hasWikiAdminRights
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Object

public Object(BaseObject obj,
              XWikiContext context)
Method Detail

getBaseObject

protected BaseObject getBaseObject()

getXWikiObject

public BaseObject getXWikiObject()

getGuid

public String getGuid()

setGuid

public void setGuid(String guid)

get

public Object get(String name)
This method's name is misleading since it doesn't return the Object's property value; it"s equivalent to display(String, String) (with type equals to view). In order to get the Object's property value use getProperty(String).getValue() instead.


display

public Object display(String name,
                      String mode)

equals

public boolean equals(Object arg0)
Overrides:
equals in class Object

set

public void set(String fieldname,
                Object value)