com.xpn.xwiki.api
Class Class

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.Class

public class Class
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
Class(BaseClass obj, XWikiContext context)
           
 
Method Summary
 Element get(java.lang.String name)
           
protected  BaseClass getBaseClass()
           
 Element[] getProperties()
           
 BaseClass getXWikiClass()
           
 Object newObject()
           
 
Methods inherited from class com.xpn.xwiki.api.Collection
getCollection, getName, getNumber, getPrettyName, getProperty, getPropertyNames, getxWikiClass
 
Methods inherited from class com.xpn.xwiki.api.Element
getBaseElement
 
Methods inherited from class com.xpn.xwiki.api.Api
checkProgrammingRights, hasAccessLevel, hasAdminRights, hasProgrammingRights
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Class

public Class(BaseClass obj,
             XWikiContext context)
Method Detail

getBaseClass

protected BaseClass getBaseClass()

getProperties

public Element[] getProperties()
Overrides:
getProperties in class Collection
Returns:
an array with the properties of the class

get

public Element get(java.lang.String name)
Parameters:
name - the name of the element
Returns:
the PropertyClass for the given name
See Also:
PropertyClass, Element

getXWikiClass

public BaseClass getXWikiClass()
Returns:
the BaseClass (without the wrapping) if you have the programming right.

newObject

public Object newObject()
                 throws XWikiException
Returns:
a new object from this class
Throws:
XWikiException


Copyright 2003 Ludovic Dubost