com.xpn.xwiki.objects
Class BaseStringProperty

java.lang.Object
  extended by com.xpn.xwiki.objects.BaseElement<R>
      extended by com.xpn.xwiki.objects.BaseProperty
          extended by com.xpn.xwiki.objects.BaseStringProperty
All Implemented Interfaces:
ElementInterface, PropertyInterface, Serializable, Cloneable
Direct Known Subclasses:
LargeStringProperty, StringProperty

public class BaseStringProperty
extends BaseProperty

Base string XProperty which all types of string XProperties extend. $Id: 0f1563a2872f0232356184af510eadaaaf063b0f $

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.xpn.xwiki.objects.BaseElement
documentReference, localEntityReferenceSerializer, ownerDocument, referenceCache
 
Constructor Summary
BaseStringProperty()
           
 
Method Summary
 BaseStringProperty clone()
           
protected  void cloneInternal(BaseProperty clone)
          Subclasses override this to copy values during cloning.
 boolean equals(Object obj)
           
 String getValue()
           
protected  void mergeValue(Object previousValue, Object newValue, MergeResult mergeResult)
          Try to apply 3 ways merge on property value.
 void setValue(Object value)
           
 String toText()
           
 
Methods inherited from class com.xpn.xwiki.objects.BaseProperty
apply, createReference, getClassType, getCustomMappingValue, getId, getObject, hashCode, isValueDirty, merge, setClassType, setId, setObject, setOwnerDocument, setValueDirty, setValueDirty, toFormString, toString, toXML, toXMLString
 
Methods inherited from class com.xpn.xwiki.objects.BaseElement
getDocumentReference, getLocalKey, getLocalUidStringEntityReferenceSerializer, getName, getOwnerDocument, getPrettyName, getReference, setDocumentReference, setName, setPrettyName
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.xpn.xwiki.objects.ElementInterface
getDocumentReference, getName, getReference, setDocumentReference, setName
 

Constructor Detail

BaseStringProperty

public BaseStringProperty()
Method Detail

getValue

public String getValue()
Overrides:
getValue in class BaseProperty

setValue

public void setValue(Object value)
Overrides:
setValue in class BaseProperty

toText

public String toText()
Overrides:
toText in class BaseProperty

equals

public boolean equals(Object obj)
Overrides:
equals in class BaseProperty

clone

public BaseStringProperty clone()
Specified by:
clone in interface PropertyInterface
Overrides:
clone in class BaseProperty

cloneInternal

protected void cloneInternal(BaseProperty clone)
Description copied from class: BaseProperty
Subclasses override this to copy values during cloning.

Overrides:
cloneInternal in class BaseProperty
Parameters:
clone - The cloned value.

mergeValue

protected void mergeValue(Object previousValue,
                          Object newValue,
                          MergeResult mergeResult)
Description copied from class: BaseProperty
Try to apply 3 ways merge on property value.

Overrides:
mergeValue in class BaseProperty
Parameters:
previousValue - the previous version of the value
newValue - the new version of the value
mergeResult - merge report


Copyright © 2004–2014 XWiki. All rights reserved.