|
||||||||||
| 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.AliasType
public class AliasType
Defines an alias type that references another defined type and can optionally have an additional range defined.
| Field Summary |
|---|
| Fields inherited from class org.quattor.pan.type.Type |
|---|
source, sourceRange |
| Constructor Summary | |
|---|---|
AliasType(java.lang.String source,
SourceRange sourceRange,
java.lang.String identifier,
Range range)
Constructor for AliasType takes the name of the type identifier. |
|
| 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 |
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, validateAsIncludedType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AliasType(java.lang.String source,
SourceRange sourceRange,
java.lang.String identifier,
Range range)
source - String describing the source containing this definitionidentifier - name of the referenced typerange - range associated with this type| 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 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
ValidationExceptionpublic void verifySubtypesDefined(TypeMap types)
Type
verifySubtypesDefined in class Typetypes - TypeMap to use for looking up referenced typespublic java.lang.String toString()
toString in class Type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||