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:
adams.core.CloneHandler<adams.core.base.BaseObject>
,Serializable
,Comparable
public class AttributeTypeList extends adams.core.base.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
-
-
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.
-
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 adams.core.base.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
-
-
-
-
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 adams.core.base.BaseList.Conversion getConversion()
Returns the conversion of the string before setting its value.- Overrides:
getConversion
in classadams.core.base.BaseList
- 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.- Overrides:
isValid
in classadams.core.base.BaseList
- Parameters:
value
- the string value to check- Returns:
- always true
-
getTipText
public String getTipText()
Returns a tool tip for the GUI editor (ignored if null is returned).- Overrides:
getTipText
in classadams.core.base.BaseList
- Returns:
- the tool tip
-
-