Class AttributeFactory
- java.lang.Object
-
- AttributeFactory
-
public class AttributeFactory extends java.lang.ObjectA factory for making NominalAttributes and NumericAttributes from a scanner.
-
-
Constructor Summary
Constructors Constructor Description AttributeFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Attributemake(java.util.Scanner scanner)Processes a single attribute declaration using the tokens in the specified scanner, which consists of of the keyword@attribute, <identifier>, and either the keywordnumericor a list of nominal values.
-
-
-
Method Detail
-
make
public static Attribute make(java.util.Scanner scanner) throws java.lang.Exception
Processes a single attribute declaration using the tokens in the specified scanner, which consists of of the keyword@attribute, <identifier>, and either the keywordnumericor a list of nominal values.- Parameters:
scanner- a scanner containing the attribute's tokens- Returns:
- the constructed attribute
- Throws:
java.lang.Exception- if a parse exception occurs
-
-