Package com.rometools.modules.sle.types
Class StringValue
- java.lang.Object
-
- com.rometools.modules.sle.types.StringValue
-
- All Implemented Interfaces:
EntryValue,Serializable,Cloneable,Comparable<EntryValue>
public class StringValue extends Object implements EntryValue
An EntryValue implementation for "text" data-types.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StringValue()
-
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.StringgetValue()Returns the value of the element.inthashCode()voidsetElement(String element)voidsetLabel(String label)voidsetNamespace(org.jdom2.Namespace namespace)voidsetValue(String value)StringtoString()
-
-
-
Method Detail
-
setValue
public void setValue(String value)
-
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.
-
getValue
public String getValue()
Description copied from interface:EntryValueReturns the value of the element.- Specified by:
getValuein interfaceEntryValue- Returns:
- Returns the value of the element.
-
setElement
public void setElement(String 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>
-
-