|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcosc575.p1.AttributeFactory
public class AttributeFactory
A factory for making attributes from a scanner. An attribute has a name, type, and domain. Types can be discrete, numeric, or nominal.
Constructor Summary | |
---|---|
AttributeFactory()
|
Method Summary | |
---|---|
static Attribute |
make(java.util.Scanner scanner)
Processes a single attribute declaration, consisting of the keyword @attribute , type, name, and, if applicable, domain. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributeFactory()
Method Detail |
---|
public static Attribute make(java.util.Scanner scanner) throws java.lang.Exception
@attribute
, type, name, and, if applicable, domain.
scanner
- a scanner containing the attribute's tokens
java.lang.Exception
- if an exception occurs
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |