public class AliasType extends BaseType
source, sourceRange| Constructor and Description |
|---|
AliasType(String source,
SourceRange sourceRange,
String identifier,
Range range)
Constructor for AliasType takes the name of the type identifier.
|
| 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.
|
void |
verifySubtypesDefined(TypeMap types)
This method verifies that all of the types referenced from this type are
already defined within the given context.
|
getBuiltinTypesgetSource, getSourceRange, validateAsIncludedTypepublic AliasType(String source, SourceRange sourceRange, String identifier, Range range)
source - String describing the source containing this definitionidentifier - name of the referenced typerange - 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 validateValidationExceptionpublic void verifySubtypesDefined(TypeMap types)
TypeverifySubtypesDefined in class Typetypes - TypeMap to use for looking up referenced typesCopyright © 2014 Quattor. All Rights Reserved.