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, relativeEntityReferenceResolver
documentReference, 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, validateObject
addPropertyForRemoval, 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, toXMLString
createReference, getDocumentReference, getId, getLocalEntityReferenceSerializer, getLocalization, getLocalKey, getLocalUidStringEntityReferenceSerializer, getMergeManager, getOwnerDocument, getPrettyName, getXWikiContext, hashCode, localizePlain, localizePlainOrKey, setId, setPrettyName, toString, toXMLString
finalize, getClass, notify, notifyAll, wait, wait, wait
get, getXClass, put, safeget, safeput, toXML
apply, getDocumentReference, getName, getReference, merge, setDocumentReference, setName, toString
getId, setId, toXML
public PropertyMetaClass()
public BaseCollection getObject()
getObject
in interface PropertyInterface
public void setObject(BaseCollection object)
setObject
in interface PropertyInterface
public String toFormString()
toFormString
in interface PropertyInterface
public PropertyMetaClass clone()
clone
in interface PropertyInterface
clone
in class BaseClass
public 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 BaseClass
XWikiException
public PropertyClassInterface getInstance()
getInstance
in interface com.xpn.xwiki.internal.objects.classes.PropertyClassProvider
public com.xpn.xwiki.internal.objects.meta.PropertyMetaClassInterface getDefinition()
getDefinition
in interface com.xpn.xwiki.internal.objects.classes.PropertyClassProvider
Copyright © 2004–2022 XWiki. All rights reserved.