Package adams.core.base
Class AttributeTypeList
- java.lang.Object
-
- adams.core.base.BaseObject
-
- adams.core.base.AbstractBaseString
-
- adams.core.base.BaseList
-
- adams.core.base.AttributeTypeList
-
- All Implemented Interfaces:
CloneHandler<BaseObject>
,Serializable
,Comparable
public class AttributeTypeList extends BaseList
Wrapper for a comma-separated list of attribute types.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class adams.core.base.BaseList
BaseList.Conversion
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATT_DATE
the type string for date attributes.static String
ATT_NOMINAL
the type string for nominal attributes.static String
ATT_NUMERIC
the type string for numeric attributes.static String
ATT_STRING
the type string for string attributes.-
Fields inherited from class adams.core.base.BaseObject
m_Internal, m_Properties, SUFFIX_DISPLAY, SUFFIX_VALUE
-
-
Constructor Summary
Constructors Constructor Description AttributeTypeList()
Initializes the list with length 0.AttributeTypeList(String s)
Initializes the object with the string to parse.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BaseList.Conversion
getConversion()
Returns the conversion of the string before setting its value.String
getTipText()
Returns a tool tip for the GUI editor (ignored if null is returned).boolean
isValid(String value)
Checks whether the string value is a valid presentation for this class.-
Methods inherited from class adams.core.base.AbstractBaseString
getValue, initialize, isEmpty, length, setValue, stringValue
-
Methods inherited from class adams.core.base.BaseObject
compareTo, equals, getClone, getInternal, getTemplates, getUnicode, hasFavoritesSupport, hashCode, isValidUnicode, newInstance, setUnicode, toObjectArray, toObjectArray, toString, toStringArray, toStringList
-
-
-
-
Field Detail
-
ATT_NUMERIC
public static final String ATT_NUMERIC
the type string for numeric attributes.- See Also:
- Constant Field Values
-
ATT_NOMINAL
public static final String ATT_NOMINAL
the type string for nominal attributes.- See Also:
- Constant Field Values
-
ATT_STRING
public static final String ATT_STRING
the type string for string attributes.- See Also:
- Constant Field Values
-
ATT_DATE
public static final String ATT_DATE
the type string for date attributes.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AttributeTypeList
public AttributeTypeList()
Initializes the list with length 0.
-
AttributeTypeList
public AttributeTypeList(String s)
Initializes the object with the string to parse.- Parameters:
s
- the string to parse
-
-
Method Detail
-
getConversion
protected BaseList.Conversion getConversion()
Returns the conversion of the string before setting its value.- Overrides:
getConversion
in classBaseList
- Returns:
- the type of conversion to apply
-
isValid
public boolean isValid(String value)
Checks whether the string value is a valid presentation for this class.
-
getTipText
public String getTipText()
Returns a tool tip for the GUI editor (ignored if null is returned).- Overrides:
getTipText
in classBaseList
- Returns:
- the tool tip
-
-