public class ErrorDefinition extends StructDefinition
DataDefinitions
implementation for vAPI errors.Constructor and Description |
---|
ErrorDefinition(String name,
Map<String,DataDefinition> fields)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DataType |
getType()
Returns the
DataType for this type. |
ErrorValue |
newInstance() |
accept, completeValue, equals, getField, getFieldNames, getName, hasField, hashCode, toString, validate
validInstanceOf
public ErrorDefinition(String name, Map<String,DataDefinition> fields)
Creates instance for the specified name and structure' fields. The
name and fields are used for theStructDefinition
represented by the instance.
name
- the error name; must not be null
fields
- Map of name keys and DataDefinition
values for the fields of this instance; must not be
null
public DataType getType()
DataDefinition
DataType
for this type.getType
in class StructDefinition
DataType
for this typepublic ErrorValue newInstance()
newInstance
in class StructDefinition
Copyright © 2015. All Rights Reserved.