public class VarTypes extends java.lang.Object implements VarInterface
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name
A name property for the object
|
private java.util.Map<java.lang.String,java.lang.Boolean> |
varTypes
Member variable containing indicators for whether or not the variable
is of type String
|
Constructor and Description |
---|
VarTypes(VariableIndex varIndex)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator |
getIterator()
Method used to return the appropriate iterator needed to iterate over the
values stored in the object.
|
java.lang.String |
getName()
Method to retrieve the name of the JSON object
|
java.lang.Boolean |
getValue(java.lang.String varnm) |
java.util.Map<java.lang.String,java.lang.Boolean> |
getValues() |
private void |
setVariableTypeIndex(java.util.List<java.lang.Integer> vdx)
Sets an object containing booleans indicating whether the variable
is/isn't a string.
|
private final java.lang.String name
private java.util.Map<java.lang.String,java.lang.Boolean> varTypes
public VarTypes(VariableIndex varIndex)
varIndex
- A variable index object used to iterate over when
checking the type of a given variableprivate void setVariableTypeIndex(java.util.List<java.lang.Integer> vdx)
vdx
- A list of integers containing the variable indices for
which the types are requestedpublic java.util.Map<java.lang.String,java.lang.Boolean> getValues()
public java.lang.Boolean getValue(java.lang.String varnm)
varnm
- valid variable index valuepublic java.lang.String getName()
public java.util.Iterator getIterator()
getIterator
in interface VarInterface