public abstract class DataDefinition extends Object
DataDefinition
class is an abstract base class for all
types in the vAPI run-time type system.Modifier and Type | Method and Description |
---|---|
abstract void |
accept(DefinitionVisitor visitor)
Applies a visitor to this data-definition.
|
void |
completeValue(DataValue value)
Check the value to see if the data-definition can fill in any missing
data before validation
|
abstract DataType |
getType()
Returns the
DataType for this type. |
String |
toString() |
List<Message> |
validate(DataValue value)
Validates that the specified
DataValue is an instance of this
data definition. |
boolean |
validInstanceOf(DataValue value)
Validates that the specified
DataValue is an instance of this
data-definition. |
public abstract DataType getType()
DataType
for this type.DataType
for this typepublic abstract void accept(DefinitionVisitor visitor)
visitor
- the visitor operating on this data-definitionpublic boolean validInstanceOf(DataValue value)
DataValue
is an instance of this
data-definition.value
- the data value to validatepublic List<Message> validate(DataValue value)
DataValue
is an instance of this
data definition.
Validates that supplied value
is not null
and it's type matches the type of this definition.
value
- the DataValue
to validatepublic void completeValue(DataValue value)
value
- the value to checkCopyright © 2015. All Rights Reserved.