Package adams.core.base
Class BaseCharset
- java.lang.Object
-
- adams.core.base.BaseObject
-
- adams.core.base.AbstractBaseString
-
- adams.core.base.BaseCharset
-
- All Implemented Interfaces:
CloneHandler<BaseObject>,Serializable,Comparable
public class BaseCharset extends AbstractBaseString
Wrapper for aCharsetobject to be editable in the GOE.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.core.base.BaseObject
m_Internal, m_Properties, SUFFIX_DISPLAY, SUFFIX_VALUE
-
-
Constructor Summary
Constructors Constructor Description BaseCharset()Initializes the string with the default Charset.BaseCharset(String s)Initializes the object with the string to parse.BaseCharset(Charset c)Initializes the object with the string to parse.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CharsetcharsetValue()Returns the charset value.StringgetTipText()Returns a tool tip for the GUI editor (ignored if null is returned).protected voidinitialize()Initializes the internal object.booleanisDefault()booleanisValid(String value)Checks whether the string value is a valid presentation for this class.StringstringValue()Returns the String value.-
Methods inherited from class adams.core.base.AbstractBaseString
convert, getValue, isEmpty, length, setValue
-
Methods inherited from class adams.core.base.BaseObject
compareTo, equals, getClone, getInternal, getTemplates, getUnicode, hasFavoritesSupport, hashCode, isValidUnicode, newInstance, setUnicode, toObjectArray, toObjectArray, toString, toStringArray, toStringList
-
-
-
-
Constructor Detail
-
BaseCharset
public BaseCharset()
Initializes the string with the default Charset.
-
BaseCharset
public BaseCharset(String s)
Initializes the object with the string to parse.- Parameters:
s- the string to parse
-
BaseCharset
public BaseCharset(Charset c)
Initializes the object with the string to parse.- Parameters:
c- the charset to use
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the internal object.- Overrides:
initializein classAbstractBaseString
-
isValid
public boolean isValid(String value)
Checks whether the string value is a valid presentation for this class.- Overrides:
isValidin classAbstractBaseString- Parameters:
value- the string value to check- Returns:
- always true
-
isDefault
public boolean isDefault()
-
stringValue
public String stringValue()
Returns the String value.- Overrides:
stringValuein classAbstractBaseString- Returns:
- the String value
-
charsetValue
public Charset charsetValue()
Returns the charset value.- Returns:
- the charset value
-
getTipText
public String getTipText()
Returns a tool tip for the GUI editor (ignored if null is returned).- Specified by:
getTipTextin classAbstractBaseString- Returns:
- the tool tip
-
-