Package com.rometools.modules.sle.types
Class NumberValue
- java.lang.Object
-
- com.rometools.modules.sle.types.NumberValue
-
- All Implemented Interfaces:
EntryValue,Serializable,Cloneable,Comparable<EntryValue>
public class NumberValue extends Object implements EntryValue
An EntryValue implementation for "number" data-type values.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NumberValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()intcompareTo(EntryValue other)booleanequals(Object o)StringgetElement()Returns the name of the element.StringgetLabel()Returns a label for the element.org.jdom2.NamespacegetNamespace()Returns the namespace of the element.BigDecimalgetValue()Returns the value of the element.inthashCode()voidsetElement(String element)voidsetLabel(String label)voidsetNamespace(org.jdom2.Namespace namespace)voidsetValue(BigDecimal value)StringtoString()
-
-
-
Method Detail
-
setElement
public void setElement(String element)
-
getElement
public String getElement()
Description copied from interface:EntryValueReturns the name of the element.- Specified by:
getElementin interfaceEntryValue- Returns:
- Returns the name of the element.
-
setLabel
public void setLabel(String label)
-
getLabel
public String getLabel()
Description copied from interface:EntryValueReturns a label for the element.- Specified by:
getLabelin interfaceEntryValue- Returns:
- Returns a label for the element.
-
setValue
public void setValue(BigDecimal value)
-
getValue
public BigDecimal getValue()
Description copied from interface:EntryValueReturns the value of the element.- Specified by:
getValuein interfaceEntryValue- Returns:
- Returns the value of the element.
-
getNamespace
public org.jdom2.Namespace getNamespace()
Description copied from interface:EntryValueReturns the namespace of the element.- Specified by:
getNamespacein interfaceEntryValue- Returns:
- Returns the namespace of the element.
-
setNamespace
public void setNamespace(org.jdom2.Namespace namespace)
-
compareTo
public int compareTo(EntryValue other)
- Specified by:
compareToin interfaceComparable<EntryValue>
-
-