| Modifier and Type | Field and Description |
|---|---|
protected String |
source |
protected String |
sourceRange |
| Constructor and Description |
|---|
Type(String source,
SourceRange sourceRange) |
| Modifier and Type | Method and Description |
|---|---|
abstract Element |
findDefault(Context context)
This method returns the default value for the type or null if no default
value exists.
|
String |
getSource()
Return a string representation of the source containing this type.
|
String |
getSourceRange()
Retrieve the SourceRange for this type definition.
|
abstract Element |
setDefaults(Context context,
Element self)
This method will recursively set the default values on the given element.
|
String |
toString() |
abstract 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.
|
abstract void |
verifySubtypesDefined(TypeMap types)
This method verifies that all of the types referenced from this type are
already defined within the given context.
|
public Type(String source, SourceRange sourceRange)
public abstract void verifySubtypesDefined(TypeMap types) throws EvaluationException
types - TypeMap to use for looking up referenced typesEvaluationExceptionpublic abstract void validate(Context context, Element self) throws ValidationException
context - ObjectContext for running the validationself - Element to validateValidationExceptionpublic void validateAsIncludedType(Context context, Element self) throws ValidationException
context - ObjectContext for running the validationself - Element to validateValidationExceptionpublic abstract Element setDefaults(Context context, Element self) throws EvaluationException
context - self - EvaluationExceptionpublic abstract Element findDefault(Context context)
context - the context may be needed by a complex type to look up other
type definitionspublic String getSource()
public String getSourceRange()
Copyright © 2014 Quattor. All Rights Reserved.