Package com.xpn.xwiki.objects.meta
Class PropertyMetaClass
- java.lang.Object
-
- com.xpn.xwiki.objects.BaseElement<R>
-
- com.xpn.xwiki.objects.BaseCollection<DocumentReference>
-
- com.xpn.xwiki.objects.classes.BaseClass
-
- com.xpn.xwiki.objects.meta.PropertyMetaClass
-
- All Implemented Interfaces:
com.xpn.xwiki.internal.objects.classes.PropertyClassProvider
,com.xpn.xwiki.internal.objects.meta.PropertyMetaClassInterface
,ClassInterface
,ElementInterface
,ObjectInterface
,PropertyInterface
,Serializable
,Cloneable
- Direct Known Subclasses:
BooleanMetaClass
,ComputedFieldMetaClass
,DateMetaClass
,ListMetaClass
,NumberMetaClass
,StringMetaClass
public class PropertyMetaClass extends BaseClass implements com.xpn.xwiki.internal.objects.meta.PropertyMetaClassInterface, com.xpn.xwiki.internal.objects.classes.PropertyClassProvider
Default implementation ofPropertyMetaClassInterface
. Provides the default set of meta properties all XClass properties have. Can be extended by adding new meta properties withBaseCollection.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 newPropertyClassProvider
that creates an instance of this class and adds new meta properties usingBaseCollection.safeput(String, com.xpn.xwiki.objects.PropertyInterface)
.- Version:
- $Id: a679512cbc4a9ee798c6747fd2b2f1142183bdbf $
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.xpn.xwiki.objects.BaseCollection
currentReferenceDocumentReferenceResolver, fields, fieldsToRemove, number, relativeEntityReferenceResolver
-
Fields inherited from class com.xpn.xwiki.objects.BaseElement
documentReference, ownerDocument, referenceCache
-
-
Constructor Summary
Constructors Constructor Description PropertyMetaClass()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class com.xpn.xwiki.objects.classes.BaseClass
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, 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
-
Methods inherited from class com.xpn.xwiki.objects.BaseCollection
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
-
Methods inherited from class com.xpn.xwiki.objects.BaseElement
createReference, getDocumentReference, getId, getLocalEntityReferenceSerializer, getLocalization, getLocalKey, getLocalUidStringEntityReferenceSerializer, getMergeManager, getOwnerDocument, getPrettyName, getXWikiContext, hashCode, localizePlain, localizePlainOrKey, merge, setId, setPrettyName, toString, toXMLString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.xpn.xwiki.objects.ElementInterface
apply, getDocumentReference, getName, getReference, merge, merge, setDocumentReference, setName, toString
-
Methods inherited from interface com.xpn.xwiki.objects.ObjectInterface
get, getXClass, put, safeget, safeput, toXML
-
Methods inherited from interface com.xpn.xwiki.objects.PropertyInterface
getId, setId, toXML
-
-
-
-
Method Detail
-
getObject
public BaseCollection getObject()
- Specified by:
getObject
in interfacePropertyInterface
-
setObject
public void setObject(BaseCollection object)
- Specified by:
setObject
in interfacePropertyInterface
-
toFormString
public String toFormString()
- Specified by:
toFormString
in interfacePropertyInterface
-
clone
public PropertyMetaClass clone()
- Specified by:
clone
in interfacePropertyInterface
- Overrides:
clone
in classBaseClass
-
newObject
public BaseCollection newObject(XWikiContext context) throws XWikiException
This method is deprecated. Use directly the
PropertyClassProvider
if you need a new XClass property instance.- Overrides:
newObject
in classBaseClass
- Throws:
XWikiException
-
getInstance
public PropertyClassInterface getInstance()
- Specified by:
getInstance
in interfacecom.xpn.xwiki.internal.objects.classes.PropertyClassProvider
- Returns:
- a new XClass property instance
-
getDefinition
public com.xpn.xwiki.internal.objects.meta.PropertyMetaClassInterface getDefinition()
- Specified by:
getDefinition
in interfacecom.xpn.xwiki.internal.objects.classes.PropertyClassProvider
- Returns:
- the meta class of this type of XClass property
-
-