Package adams.core.base
Class BaseClassname
- java.lang.Object
-
- adams.core.base.BaseObject
-
- adams.core.base.AbstractBaseString
-
- adams.core.base.BaseClassname
-
- All Implemented Interfaces:
CloneHandler<BaseObject>,Serializable,Comparable
public class BaseClassname extends AbstractBaseString
Wrapper for a class name object to be editable in the GOE. Basically the same as BaseString, but used for class names.- 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 BaseClassname()Initializes the string with length 0.BaseClassname(Class cls)Initializes the object with the class to use.BaseClassname(String s)Initializes the object with the string to parse.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassclassValue()Returns the value as class.StringgetTipText()Returns a tool tip for the GUI editor (ignored if null is returned).booleanhasFavoritesSupport()Whether this object should have favorites support.booleanisValid(String value)Checks whether the string value is a valid presentation for this class.-
Methods inherited from class adams.core.base.AbstractBaseString
convert, getValue, initialize, isEmpty, length, setValue, stringValue
-
Methods inherited from class adams.core.base.BaseObject
compareTo, equals, getClone, getInternal, getTemplates, getUnicode, hashCode, isValidUnicode, newInstance, setUnicode, toObjectArray, toObjectArray, toString, toStringArray, toStringList
-
-
-
-
Constructor Detail
-
BaseClassname
public BaseClassname()
Initializes the string with length 0.
-
BaseClassname
public BaseClassname(String s)
Initializes the object with the string to parse.- Parameters:
s- the string to parse
-
BaseClassname
public BaseClassname(Class cls)
Initializes the object with the class to use.- Parameters:
cls- the class to use
-
-
Method Detail
-
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:
- true if non-null
-
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
-
classValue
public Class classValue()
Returns the value as class.- Returns:
- the class value, null if class invalid (or empty)
-
hasFavoritesSupport
public boolean hasFavoritesSupport()
Whether this object should have favorites support.- Overrides:
hasFavoritesSupportin classBaseObject- Returns:
- true if to support favorites
-
-