Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from class adams.core.base.BaseList

        adams.core.base.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
    • 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.BaseList

        convert, listValue
      • 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
    • 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 class adams.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 class adams.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 class adams.core.base.BaseList
        Returns:
        the tool tip