public class PropertyMetaClass extends BaseClass implements com.xpn.xwiki.internal.objects.meta.PropertyMetaClassInterface, com.xpn.xwiki.internal.objects.classes.PropertyClassProvider
PropertyMetaClassInterface. Provides the default set of meta properties all XClass
properties have. Can be extended by adding new meta properties with
BaseCollection.safeput(String, com.xpn.xwiki.objects.PropertyInterface).
NOTE: We implement PropertyClassProvider in order to be able to use existing meta classes (that extend this
one) as providers while keeping backward compatibility. When defining new property types you should not extend this
class but rather create a new PropertyClassProvider that creates an instance of this class and adds new meta
properties using BaseCollection.safeput(String, com.xpn.xwiki.objects.PropertyInterface).
currentReferenceDocumentReferenceResolver, fields, fieldsToRemove, number, relativeEntityReferenceResolverdocumentReference, ownerDocument, referenceCache| Constructor and Description |
|---|
PropertyMetaClass()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
PropertyMetaClass |
clone() |
com.xpn.xwiki.internal.objects.meta.PropertyMetaClassInterface |
getDefinition() |
PropertyClassInterface |
getInstance() |
BaseCollection |
getObject() |
BaseCollection |
newObject(XWikiContext context) |
void |
setObject(BaseCollection object) |
String |
toFormString() |
addBooleanField, addBooleanField, addBooleanField, addBooleanField, addDateField, addDateField, addDateField, addDBListField, addDBListField, addDBListField, addDBTreeListField, addDBTreeListField, addDBTreeListField, addEmailField, addField, addGroupsField, addGroupsField, addLevelsField, addLevelsField, addNumberField, addPageField, addPageField, addPageField, addPageField, addPasswordField, addPasswordField, addStaticListField, addStaticListField, addStaticListField, addStaticListField, addStaticListField, addStaticListField, addStaticListField, addStaticListField, addStaticListField, addTemplateField, addTextAreaField, addTextAreaField, addTextAreaField, addTextAreaField, addTextAreaField, addTextAreaField, addTextField, addTimezoneField, addUsersField, addUsersField, addUsersField, addUsersField, apply, disableField, enableField, equals, flushCache, fromMap, fromMap, fromString, fromValueMap, fromXML, fromXML, get, getCustomClass, getCustomMapping, getCustomMappingPropertyList, getDefaultEditSheet, getDefaultViewSheet, getDefaultWeb, getDeprecatedObjectProperties, getDiff, getDisabledObjectProperties, getDisabledProperties, getEnabledProperties, getName, getNameField, getReference, getValidationScript, hasCustomMapping, hasExternalCustomMapping, hasInternalCustomMapping, isCustomMappingValid, isCustomMappingValid, merge, merge, newCustomClassInstance, newCustomClassInstance, newCustomClassInstance, newCustomClassInstance, newCustomClassInstance, put, setCustomClass, setCustomMapping, setDefaultEditSheet, setDefaultViewSheet, setDefaultWeb, setDirty, setName, setNameField, setOwnerDocument, setValidationScript, validateObjectaddPropertyForRemoval, getClassName, getCurrentReferenceDocumentReferenceResolver, getCustomMappingMap, getDateValue, getDoubleValue, getField, getFieldList, getFieldsToRemove, getFloatValue, getIntValue, getIntValue, getLargeStringValue, getListValue, getLongValue, getNumber, getProperties, getPropertyList, getPropertyNames, getRelativeEntityReferenceResolver, getRelativeXClassReference, getSetValue, getSortedIterator, getStringValue, getXClass, getXClassReference, merge, mergeField, removeField, safeget, safeput, setClassName, setDateValue, setDBStringListValue, setDocumentReference, setDoubleValue, setFields, setFieldsToRemove, setFloatValue, setIntValue, setLargeStringValue, setLongValue, setNumber, setSetValue, setStringListValue, setStringValue, setXClassReference, toXML, toXML, toXMLStringcreateReference, getDocumentReference, getId, getLocalEntityReferenceSerializer, getLocalization, getLocalKey, getLocalUidStringEntityReferenceSerializer, getMergeManager, getOwnerDocument, getPrettyName, getXWikiContext, hashCode, localizePlain, localizePlainOrKey, setId, setPrettyName, toString, toXMLStringfinalize, getClass, notify, notifyAll, wait, wait, waitget, getXClass, put, safeget, safeput, toXMLapply, getDocumentReference, getName, getReference, merge, setDocumentReference, setName, toStringgetId, setId, toXMLpublic PropertyMetaClass()
public BaseCollection getObject()
getObject in interface PropertyInterfacepublic void setObject(BaseCollection object)
setObject in interface PropertyInterfacepublic String toFormString()
toFormString in interface PropertyInterfacepublic PropertyMetaClass clone()
clone in interface PropertyInterfaceclone in class BaseClasspublic BaseCollection newObject(XWikiContext context) throws XWikiException
This method is deprecated. Use directly the PropertyClassProvider if you need a new XClass property
instance.
newObject in class BaseClassXWikiExceptionpublic PropertyClassInterface getInstance()
getInstance in interface com.xpn.xwiki.internal.objects.classes.PropertyClassProviderpublic com.xpn.xwiki.internal.objects.meta.PropertyMetaClassInterface getDefinition()
getDefinition in interface com.xpn.xwiki.internal.objects.classes.PropertyClassProviderCopyright © 2004–2021 XWiki. All rights reserved.