public class VarNames extends java.lang.Object implements VarInterface
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name
A name property for the class
|
private java.util.List<java.lang.String> |
varnames
Member variable containing Stata variable names
|
Constructor and Description |
---|
VarNames(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.lang.String |
getValue(int varidx) |
java.util.List<java.lang.String> |
getValues() |
private void |
setVariableNames(java.util.List<java.lang.Integer> vdx)
Sets an object containing variable names from Stata data set.
|
private final java.lang.String name
private java.util.List<java.lang.String> varnames
public VarNames(VariableIndex varIndex)
varIndex
- A variable index objectprivate void setVariableNames(java.util.List<java.lang.Integer> vdx)
vdx
- The Variable index over which the method will iterate.public java.util.List<java.lang.String> getValues()
public java.lang.String getValue(int varidx)
varidx
- valid variable index valuepublic java.lang.String getName()
public java.util.Iterator getIterator()
getIterator
in interface VarInterface