public class RecordType extends BaseType
source, sourceRange| Constructor and Description |
|---|
RecordType(String source,
SourceRange sourceRange,
boolean extensible,
Range range,
List<String> includes,
SortedMap<Term,FullType> reqFields,
SortedMap<Term,FullType> optFields) |
| 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 |
validateAsIncludedType(Context context,
Element self)
This method will run this type's validation (as an included type) 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, getSourceRangepublic void verifySubtypesDefined(TypeMap types)
TypeverifySubtypesDefined in class Typetypes - TypeMap to use for looking up referenced typespublic Element findDefault(Context context) throws EvaluationException
TypefindDefault in class Typecontext - the context may be needed by a complex type to look up other
type definitionsEvaluationExceptionpublic 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 validateAsIncludedType(Context context, Element self) throws ValidationException
TypevalidateAsIncludedType in class Typecontext - ObjectContext for running the validationself - Element to validateValidationExceptionCopyright © 2014 Quattor. All Rights Reserved.