adams.core.base
Class AttributeTypeList

java.lang.Object
  extended by adams.core.base.BaseObject
      extended by adams.core.base.AbstractBaseString
          extended by adams.core.base.BaseList
              extended by 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: 4584 $
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
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
 
Constructor Summary
AttributeTypeList()
          Initializes the list with length 0.
AttributeTypeList(String s)
          Initializes the object with the string to parse.
 
Method Summary
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.BaseList
convert, listValue
 
Methods inherited from class adams.core.base.AbstractBaseString
getValue, isEmpty, setValue, stringValue
 
Methods inherited from class adams.core.base.BaseObject
compareTo, equals, getClone, getInternal, hashCode, newInstance, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 class 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 class 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 class BaseList
Returns:
the tool tip


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.