public class ListProperty extends BaseProperty implements Cloneable
| Modifier and Type | Class and Description |
|---|---|
static class |
ListProperty.NotifyList
List implementation for updating dirty flag when updated.
|
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
list
We make this a notifying list, because we must propagate any value updates to the owner document.
|
documentReference, ownerDocument, referenceCache| Constructor and Description |
|---|
ListProperty() |
| Modifier and Type | Method and Description |
|---|---|
ListProperty |
clone() |
protected void |
cloneInternal(BaseProperty clone)
Subclasses override this to copy values during cloning.
|
boolean |
equals(Object obj) |
String |
getFormStringSeparator()
Deprecated.
since 7.0M2. This was never used, since it is not the right place to handle separators. They are
defined in
ListClass and that is where they are now handled through
ListClass.toFormString(BaseProperty). |
List<String> |
getList() |
String |
getTextValue()
This method is called by Hibernate to get the raw value to store in the database.
|
Object |
getValue() |
protected void |
mergeValue(Object previousValue,
Object newValue,
MergeResult mergeResult)
Try to apply 3 ways merge on property value.
|
void |
setFormStringSeparator(String formStringSeparator)
Deprecated.
since 7.0M2. This was never used, since it is not the right place to handle separators. They are
defined in
ListClass and that is where they are now handled through
ListClass.toFormString(BaseProperty). |
void |
setList(List<String> list)
Starting from 4.3M2, this method will copy the list passed as parameter.
|
void |
setValue(Object value) |
String |
toSingleFormString()
Deprecated.
Since 7.0M2. This method is here for a long time but it does not seem to have ever been used and it
does not bring any value compared to the existing
BaseProperty.toFormString() method. |
String |
toString() |
String |
toText() |
apply, createReference, getClassType, getCustomMappingValue, getId, getObject, getPropertyClass, hashCode, isValueDirty, merge, setClassType, setId, setObject, setOwnerDocument, setValueDirty, setValueDirty, toFormString, toXML, toXMLStringfromXML, fromXML, getDocumentReference, getLocalEntityReferenceSerializer, getLocalization, getLocalKey, getLocalUidStringEntityReferenceSerializer, getMergeManager, getName, getOwnerDocument, getPrettyName, getReference, getXWikiContext, localizePlain, localizePlainOrKey, setDocumentReference, setName, setPrettyName, toXMLStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetDocumentReference, getName, getReference, setDocumentReference, setName@Deprecated public String getFormStringSeparator()
ListClass and that is where they are now handled through
ListClass.toFormString(BaseProperty).@Deprecated public void setFormStringSeparator(String formStringSeparator)
ListClass and that is where they are now handled through
ListClass.toFormString(BaseProperty).public Object getValue()
getValue in class BasePropertypublic void setValue(Object value)
setValue in class BasePropertypublic String getTextValue()
public String toText()
toText in class BaseProperty@Deprecated public String toSingleFormString()
BaseProperty.toFormString() method.public boolean equals(Object obj)
equals in class BasePropertypublic ListProperty clone()
clone in interface PropertyInterfaceclone in class BasePropertyprotected void cloneInternal(BaseProperty clone)
BasePropertycloneInternal in class BasePropertyclone - The cloned value.public void setList(List<String> list)
list - The list to copy.public String toString()
This is important.. Otherwise we can get a stackoverflow calling toXML().
toString in interface ElementInterfacetoString in class BaseElementBaseElement.toString()protected void mergeValue(Object previousValue, Object newValue, MergeResult mergeResult)
BasePropertymergeValue in class BasePropertypreviousValue - the previous version of the valuenewValue - the new version of the valuemergeResult - merge reportCopyright © 2004–2021 XWiki. All rights reserved.