org.quattor.pan.type
Class ConcretePrimitiveType

java.lang.Object
  extended by org.quattor.pan.type.Type
      extended by org.quattor.pan.type.BaseType
          extended by org.quattor.pan.type.PrimitiveType
              extended by org.quattor.pan.type.ConcretePrimitiveType

public class ConcretePrimitiveType
extends PrimitiveType

Concrete implementations of primitive types like booleans, longs, etc. The functionality for these types is identical and implemented in this class.

Author:
loomis

Field Summary
 
Fields inherited from class org.quattor.pan.type.Type
source, sourceRange
 
Constructor Summary
ConcretePrimitiveType(java.lang.String name, java.lang.Class<? extends Element> elementType)
           
 
Method Summary
 void validate(Context context, Element self)
          This method will run this type's validation against the given element.
 
Methods inherited from class org.quattor.pan.type.PrimitiveType
findDefault, setDefaults, toString, verifySubtypesDefined
 
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

ConcretePrimitiveType

public ConcretePrimitiveType(java.lang.String name,
                             java.lang.Class<? extends Element> elementType)
Method Detail

validate

public void validate(Context context,
                     Element self)
              throws ValidationException
Description copied from class: Type
This method will run this type's validation against the given element. The method may not modify either argument.

Specified by:
validate in class Type
Parameters:
context - ObjectContext for running the validation
self - Element to validate
Throws:
ValidationException


Copyright © 2011 Quattor. All Rights Reserved.