Class ArffUtils


  • public class ArffUtils
    extends Object
    A helper class for ARFF related stuff.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • ArffUtils

        public ArffUtils()
    • Method Detail

      • getDBIDName

        public static String getDBIDName()
        Returns the name of the attribute containing the database ID.
        Returns:
        the attribute name
      • getIDName

        public static String getIDName()
        Returns the name of the attribute containing the ID of the data container.
        Returns:
        the attribute name
      • getFieldName

        public static String getFieldName​(adams.data.report.AbstractField field)
        Returns the name of an attribute for a field.
        Parameters:
        field - the field to generate the name for
        Returns:
        the attribute name
      • getAdditionalFieldName

        public static String getAdditionalFieldName​(adams.data.report.AbstractField field)
        Returns the name of an attribute for an additional field. Gets prefixed with "additional-".
        Parameters:
        field - the field to generate the name for
        Returns:
        the attribute name
        See Also:
        PREFIX_ADDITIONALFIELDS
      • getNoteName

        public static String getNoteName​(String prefix)
        Returns the name of an attribute for a note. Gets prefixed with "note-".
        Parameters:
        prefix - the note prefix to generate the name for
        Returns:
        the attribute name
        See Also:
        PREFIX_NOTE