Package adams.data.weka
Class ArffUtils
- java.lang.Object
-
- adams.data.weka.ArffUtils
-
public class ArffUtils extends Object
A helper class for ARFF related stuff.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description static StringPREFIX_ADDITIONALFIELDSthe prefix for additional fields.static StringPREFIX_NOTEthe prefix for notes.
-
Constructor Summary
Constructors Constructor Description ArffUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetAdditionalFieldName(adams.data.report.AbstractField field)Returns the name of an attribute for an additional field.static StringgetDBIDName()Returns the name of the attribute containing the database ID.static StringgetFieldName(adams.data.report.AbstractField field)Returns the name of an attribute for a field.static StringgetIDName()Returns the name of the attribute containing the ID of the data container.static StringgetNoteName(String prefix)Returns the name of an attribute for a note.
-
-
-
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
-
-
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
-
-