|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.quattor.pan.type.Type
org.quattor.pan.type.FullType
public class FullType
Represents a complete type specification in the pan language, which can have a default value and/or a validation block defined.
| Field Summary |
|---|
| Fields inherited from class org.quattor.pan.type.Type |
|---|
source, sourceRange |
| Constructor Summary | |
|---|---|
FullType(BaseType baseType)
This contructor is intended for built-in types that have neither source locations or default values. |
|
FullType(java.lang.String source,
SourceRange sourceRange,
BaseType baseType,
Element defaultValue,
Operation dml)
|
|
| Method Summary | |
|---|---|
Element |
findDefault(Context context)
This method returns the default value for the type or null if no default value exists. |
BaseType |
getBaseType()
|
java.lang.String |
getTypeName()
|
Element |
setDefaults(Context context,
Element self)
This will call the setDefaults method of the base type with the given argument. |
java.lang.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. |
| Methods inherited from class org.quattor.pan.type.Type |
|---|
getSource, getSourceRange |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FullType(BaseType baseType)
baseType -
public FullType(java.lang.String source,
SourceRange sourceRange,
BaseType baseType,
Element defaultValue,
Operation dml)
| Method Detail |
|---|
public Element findDefault(Context context)
Type
findDefault in class Typecontext - the context may be needed by a complex type to look up other
type definitions
public void validate(Context context,
Element self)
throws ValidationException
Type
validate in class Typecontext - ObjectContext for running the validationself - Element to validate
ValidationException
public void validateAsIncludedType(Context context,
Element self)
throws ValidationException
validateAsIncludedType in class Typecontext - ObjectContext for running the validationself - Element to validate
ValidationException
public Element setDefaults(Context context,
Element self)
throws EvaluationException
setDefaults in class TypeEvaluationExceptionpublic void verifySubtypesDefined(TypeMap types)
Type
verifySubtypesDefined in class Typetypes - TypeMap to use for looking up referenced typespublic BaseType getBaseType()
public java.lang.String getTypeName()
public java.lang.String toString()
toString in class Type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||