adams.data.weka
Class ArffUtils

java.lang.Object
  extended by adams.data.weka.ArffUtils

public class ArffUtils
extends Object

A helper class for ARFF related stuff.

Version:
$Revision: 4584 $
Author:
fracpete (fracpete at waikato dot ac dot nz)

Field Summary
static String PREFIX_ADDITIONALFIELDS
          the prefix for additional fields.
static String PREFIX_NOTE
          the prefix for notes.
 
Constructor Summary
ArffUtils()
           
 
Method Summary
static String getAdditionalFieldName(AbstractField field)
          Returns the name of an attribute for an additional field.
static String getDBIDName()
          Returns the name of the attribute containing the database ID.
static String getFieldName(AbstractField field)
          Returns the name of an attribute for a field.
static String getIDName()
          Returns the name of the attribute containing the ID of the data container.
static String getNoteName(String prefix)
          Returns the name of an attribute for a note.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIX_NOTE

public static final String PREFIX_NOTE
the prefix for notes.

See Also:
Constant Field Values

PREFIX_ADDITIONALFIELDS

public static final String PREFIX_ADDITIONALFIELDS
the prefix for additional fields.

See Also:
Constant Field Values
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(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(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


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