civquest.parser.ruleset
Class Field

java.lang.Object
  extended bycivquest.parser.ruleset.Field

public class Field
extends java.lang.Object

A Field, contained within a Section, is a (name,value) pair. The value can be any Object, dependent on the name (in other words, you know by assumption what kind of value to expect from a given name).


Constructor Summary
Field(java.lang.String name)
           
Field(java.lang.String name, java.lang.Object value)
           
 
Method Summary
 void addValue(java.lang.Object value)
           
 java.lang.Object clone()
           
 boolean getBoolValue()
           
 boolean getBoolValue(int index)
           
 double getDoubleValue()
           
 double getDoubleValue(int index)
           
 float getFloatValue()
           
 float getFloatValue(int index)
           
 int getIntValue()
           
 int getIntValue(int index)
           
 java.util.List getListValue()
           
 java.lang.String getName()
           
 int getNumberOfValues()
           
 java.lang.String getStringValue()
          Utility method for getting the first value as a string.
 java.lang.String getStringValue(int index)
           
 Table getTableValue()
          Utility method for getting the first value as a Table.
 java.lang.Object getValue(int index)
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Field

public Field(java.lang.String name)

Field

public Field(java.lang.String name,
             java.lang.Object value)
Method Detail

clone

public java.lang.Object clone()

size

public int size()

getBoolValue

public boolean getBoolValue()

getBoolValue

public boolean getBoolValue(int index)

getIntValue

public int getIntValue()

getIntValue

public int getIntValue(int index)

getDoubleValue

public double getDoubleValue()

getDoubleValue

public double getDoubleValue(int index)

getFloatValue

public float getFloatValue()

getFloatValue

public float getFloatValue(int index)

getStringValue

public java.lang.String getStringValue()
Utility method for getting the first value as a string.


getStringValue

public java.lang.String getStringValue(int index)

getTableValue

public Table getTableValue()
Utility method for getting the first value as a Table.


getListValue

public java.util.List getListValue()

getValue

public java.lang.Object getValue(int index)

getNumberOfValues

public int getNumberOfValues()

addValue

public void addValue(java.lang.Object value)

getName

public java.lang.String getName()