public class FullType extends Type
source, sourceRange| Constructor and Description |
|---|
FullType(BaseType baseType)
This contructor is intended for built-in types that have neither source
locations or default values.
|
FullType(String source,
SourceRange sourceRange,
BaseType baseType,
Element defaultValue,
Operation dml) |
| 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.
|
BaseType |
getBaseType() |
String |
getTypeName() |
Element |
setDefaults(Context context,
Element self)
This will call the setDefaults method of the base type with the given
argument.
|
String |
toString() |
void |
validate(Context context,
Element self)
This method will run this type's validation against the given element.
|
void |
validateAsIncludedType(Context context,
Element self)
A FullType defers the validation to the referenced BaseType, but also
runs the DML validation block if defined.
|
void |
verifySubtypesDefined(TypeMap types)
This method verifies that all of the types referenced from this type are
already defined within the given context.
|
getSource, getSourceRangepublic FullType(BaseType baseType)
baseType - public FullType(String source, SourceRange sourceRange, BaseType baseType, Element defaultValue, Operation dml)
public Element findDefault(Context context)
TypefindDefault in class Typecontext - the context may be needed by a complex type to look up other
type definitionspublic void validate(Context context, Element self) throws ValidationException
Typevalidate in class Typecontext - ObjectContext for running the validationself - Element to validateValidationExceptionpublic void validateAsIncludedType(Context context, Element self) throws ValidationException
validateAsIncludedType in class Typecontext - ObjectContext for running the validationself - Element to validateValidationExceptionpublic Element setDefaults(Context context, Element self) throws EvaluationException
setDefaults in class TypeEvaluationExceptionpublic void verifySubtypesDefined(TypeMap types)
TypeverifySubtypesDefined in class Typetypes - TypeMap to use for looking up referenced typespublic BaseType getBaseType()
public String getTypeName()
Copyright © 2014 Quattor. All Rights Reserved.