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, toXMLString
fromXML, fromXML, getDocumentReference, getLocalEntityReferenceSerializer, getLocalization, getLocalKey, getLocalUidStringEntityReferenceSerializer, getMergeManager, getName, getOwnerDocument, getPrettyName, getReference, getXWikiContext, localizePlain, localizePlainOrKey, setDocumentReference, setName, setPrettyName, toXMLString
finalize, getClass, notify, notifyAll, wait, wait, wait
getDocumentReference, 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 BaseProperty
public void setValue(Object value)
setValue
in class BaseProperty
public String getTextValue()
public String toText()
toText
in class BaseProperty
@Deprecated public String toSingleFormString()
BaseProperty.toFormString()
method.public boolean equals(Object obj)
equals
in class BaseProperty
public ListProperty clone()
clone
in interface PropertyInterface
clone
in class BaseProperty
protected void cloneInternal(BaseProperty clone)
BaseProperty
cloneInternal
in class BaseProperty
clone
- 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 ElementInterface
toString
in class BaseElement
BaseElement.toString()
protected void mergeValue(Object previousValue, Object newValue, MergeResult mergeResult)
BaseProperty
mergeValue
in class BaseProperty
previousValue
- the previous version of the valuenewValue
- the new version of the valuemergeResult
- merge reportCopyright © 2004–2022 XWiki. All rights reserved.