com.xpn.xwiki.api
Class Property

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

public class Property
extends Element

Property is a single attribute of an XWiki Object.

Version:
$Id: c9e48622bf38e00314fdb1932d0eb8f48d913bf8 $

Field Summary
 
Fields inherited from class com.xpn.xwiki.api.Element
element
 
Fields inherited from class com.xpn.xwiki.api.Api
context
 
Constructor Summary
Property(BaseProperty property, XWikiContext context)
          The Constructor.
 
Method Summary
protected  BaseProperty getBaseProperty()
           
 BaseProperty getProperty()
           
 Object getValue()
           
 
Methods inherited from class com.xpn.xwiki.api.Element
getBaseElement, getName
 
Methods inherited from class com.xpn.xwiki.api.Api
convert, convert, convert, convertAttachments, getXWikiContext, hasAccessLevel, hasAdminRights, hasProgrammingRights, hasWikiAdminRights
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Property

public Property(BaseProperty property,
                XWikiContext context)
The Constructor.

Parameters:
property - the internal BaseProperty to wrap.
context - the XWikiContext which may be used to get information about the current request.
Method Detail

getBaseProperty

protected BaseProperty getBaseProperty()
Returns:
the internal BaseProperty which this Property wraps.

getProperty

public BaseProperty getProperty()
Returns:
the internal BaseProperty which this Property wraps.

getValue

public Object getValue()
Returns:
the actual value of the property, as a String, Number or List.


Copyright © 2004–2014 XWiki. All rights reserved.