|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.quattor.pan.type.Type
public abstract class Type
Common superclass for all pan language types defining the required methods.
| Field Summary | |
|---|---|
protected java.lang.String |
source
|
protected java.lang.String |
sourceRange
|
| Constructor Summary | |
|---|---|
Type(java.lang.String source,
SourceRange sourceRange)
|
|
| Method Summary | |
|---|---|
abstract Element |
findDefault(Context context)
This method returns the default value for the type or null if no default value exists. |
java.lang.String |
getSource()
Return a string representation of the source containing this type. |
java.lang.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. |
java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final java.lang.String source
protected final java.lang.String sourceRange
| Constructor Detail |
|---|
public Type(java.lang.String source,
SourceRange sourceRange)
| Method Detail |
|---|
public abstract void verifySubtypesDefined(TypeMap types)
throws EvaluationException
types - TypeMap to use for looking up referenced types
EvaluationException
public abstract void validate(Context context,
Element self)
throws ValidationException
context - ObjectContext for running the validationself - Element to validate
ValidationException
public void validateAsIncludedType(Context context,
Element self)
throws ValidationException
context - ObjectContext for running the validationself - Element to validate
ValidationException
public 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 definitions
public java.lang.String getSource()
public java.lang.String getSourceRange()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||