Class Data
- Object
-
- Data
-
public class Data extends Object
Holds values (with associated DataDefinition)- Author:
- Tommaso Nolli
-
-
Constructor Summary
Constructors Constructor Description Data(DataDefinition def)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Data
addValue(Object val)
void
clear()
DataDefinition
getDefinition()
Return the KeyDefinitionObject
getValue(int i)
int
getValuesCount()
boolean
isValid()
Check to see if aData
respects itsDataDefinition
String
toString()
-
-
-
Constructor Detail
-
Data
public Data(DataDefinition def)
- Parameters:
def
-
-
-
Method Detail
-
isValid
public final boolean isValid()
Check to see if aData
respects itsDataDefinition
-
addValue
public Data addValue(Object val) throws TreeException
- Returns:
- - this Data object
- Throws:
TreeException
-
getDefinition
public DataDefinition getDefinition()
Return the KeyDefinition
-
getValuesCount
public int getValuesCount()
-
getValue
public Object getValue(int i)
- Parameters:
i
-
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
clear
public void clear()
-
-