civquest.parser.ruleset
Class Field
java.lang.Object
civquest.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)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field
public Field(java.lang.String name)
Field
public Field(java.lang.String name,
java.lang.Object value)
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()