|
||||||||||
| 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.BaseType
org.quattor.pan.type.RecordType
public class RecordType
Implements the pan record type.
| Field Summary |
|---|
| Fields inherited from class org.quattor.pan.type.Type |
|---|
source, sourceRange |
| Constructor Summary | |
|---|---|
RecordType(java.lang.String source,
SourceRange sourceRange,
boolean extensible,
Range range,
java.util.List<java.lang.String> includes,
java.util.SortedMap<Term,FullType> reqFields,
java.util.SortedMap<Term,FullType> optFields)
|
|
| Method Summary | |
|---|---|
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. |
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)
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. |
| Methods inherited from class org.quattor.pan.type.BaseType |
|---|
getBuiltinTypes |
| 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 RecordType(java.lang.String source,
SourceRange sourceRange,
boolean extensible,
Range range,
java.util.List<java.lang.String> includes,
java.util.SortedMap<Term,FullType> reqFields,
java.util.SortedMap<Term,FullType> optFields)
| Method Detail |
|---|
public void verifySubtypesDefined(TypeMap types)
Type
verifySubtypesDefined in class Typetypes - TypeMap to use for looking up referenced types
public Element findDefault(Context context)
throws EvaluationException
Type
findDefault in class Typecontext - the context may be needed by a complex type to look up other
type definitions
EvaluationException
public Element setDefaults(Context context,
Element self)
throws EvaluationException
Type
setDefaults in class TypeEvaluationException
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
Type
validateAsIncludedType in class Typecontext - ObjectContext for running the validationself - Element to validate
ValidationExceptionpublic java.lang.String toString()
toString in class Type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||