public class ListType extends CompositeType
baseType, rangesource, sourceRange| Constructor and Description |
|---|
ListType(String source,
SourceRange sourceRange,
BaseType baseType,
Range range)
Constructor for LinkType takes another BaseType as the type of the list.
|
| Modifier and Type | Method and Description |
|---|---|
Element |
findDefault(Context context)
This method returns the default value for the type or null if no default
value exists.
|
Element |
setDefaults(Context context,
Element self)
This method will recursively set the default values on the given element.
|
String |
toString() |
void |
validate(Context context,
Element self)
This method will run this type's validation against the given element.
|
verifySubtypesDefinedgetBuiltinTypesgetSource, getSourceRange, validateAsIncludedTypepublic ListType(String source, SourceRange sourceRange, BaseType baseType, Range range)
source - source where this type is definedsourceRange - location in source where type is definedbaseType - base type of the listrange - range associated with this typepublic Element findDefault(Context context)
TypefindDefault in class Typecontext - the context may be needed by a complex type to look up other
type definitionspublic Element setDefaults(Context context, Element self) throws EvaluationException
TypesetDefaults in class TypeEvaluationExceptionpublic void validate(Context context, Element self) throws ValidationException
Typevalidate in class Typecontext - ObjectContext for running the validationself - Element to validateValidationExceptionCopyright © 2014 Quattor. All Rights Reserved.