public class ValLabels extends java.lang.Object implements VarInterface
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name
Name attribute for the class
|
private java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.lang.String>> |
valueLabels
Member variable containing a list of Map objects with the values and
associated labels contained in the Map object
|
Constructor and Description |
---|
ValLabels(VariableIndex varIndex)
Class constructor method
|
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.util.Map<java.lang.Integer,java.lang.String> |
getValue(java.lang.String varname)
Method to retrieve a single value
|
java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.lang.String>> |
getValues() |
private void |
setValueLabels(java.util.List<java.lang.Integer> vdx)
Sets an object with the value labels defined for a given variable.
|
private final java.lang.String name
private java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.lang.String>> valueLabels
public ValLabels(VariableIndex varIndex)
varIndex
- A list of integer values used to retrieve associated
value labelsprivate void setValueLabels(java.util.List<java.lang.Integer> vdx)
vdx
- The Variable index over which the method will iterate.public java.util.Map<java.lang.String,java.util.Map<java.lang.Integer,java.lang.String>> getValues()
public java.util.Map<java.lang.Integer,java.lang.String> getValue(java.lang.String varname)
varname
- Variable name used to identify element to returnpublic java.lang.String getName()
public java.util.Iterator getIterator()
getIterator
in interface VarInterface