Package com.xpn.xwiki.objects
Class NumberProperty<N extends Number>
- java.lang.Object
-
- com.xpn.xwiki.objects.BaseElement<R>
-
- com.xpn.xwiki.objects.BaseProperty
-
- com.xpn.xwiki.objects.NumberProperty<N>
-
- All Implemented Interfaces:
ElementInterface
,PropertyInterface
,Serializable
,Cloneable
- Direct Known Subclasses:
DoubleProperty
,FloatProperty
,IntegerProperty
,LongProperty
public abstract class NumberProperty<N extends Number> extends BaseProperty
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.xpn.xwiki.objects.BaseElement
documentReference, ownerDocument, referenceCache
-
-
Constructor Summary
Constructors Constructor Description NumberProperty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NumberProperty
clone()
protected void
cloneInternal(BaseProperty clone)
Subclasses override this to copy values during cloning.boolean
equals(Object obj)
Object
getValue()
int
hashCode()
void
setValue(Object value)
String
toText()
-
Methods inherited from class com.xpn.xwiki.objects.BaseProperty
apply, createReference, getClassType, getCustomMappingValue, getId, getObject, getPropertyClass, isValueDirty, merge, merge, mergeValue, mergeValue, setClassType, setId, setObject, setOwnerDocument, setValueDirty, setValueDirty, toFormString, toXML, toXMLString
-
Methods inherited from class com.xpn.xwiki.objects.BaseElement
fromXML, fromXML, getDocumentReference, getLocalEntityReferenceSerializer, getLocalization, getLocalKey, getLocalUidStringEntityReferenceSerializer, getMergeManager, getName, getOwnerDocument, getPrettyName, getReference, getXWikiContext, localizePlain, localizePlainOrKey, setDocumentReference, setName, 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
getDocumentReference, getName, getReference, setDocumentReference, setName, toString
-
-
-
-
Method Detail
-
getValue
public Object getValue()
- Overrides:
getValue
in classBaseProperty
-
setValue
public void setValue(Object value)
- Overrides:
setValue
in classBaseProperty
-
toText
public String toText()
- Overrides:
toText
in classBaseProperty
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classBaseProperty
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classBaseProperty
-
clone
public NumberProperty clone()
- Specified by:
clone
in interfacePropertyInterface
- Overrides:
clone
in classBaseProperty
-
cloneInternal
protected void cloneInternal(BaseProperty clone)
Description copied from class:BaseProperty
Subclasses override this to copy values during cloning.- Overrides:
cloneInternal
in classBaseProperty
- Parameters:
clone
- The cloned value.
-
-