Package org.jvnet.hk2.config
Class PrimitiveDataType
- java.lang.Object
-
- org.jvnet.hk2.config.PrimitiveDataType
-
- All Implemented Interfaces:
DataType
public final class PrimitiveDataType extends Object implements DataType
Represents a Java primitive (and its wrapper) data type. Not all Java primitives are relevant from a configuration standpoint.- Since:
- hk2 0.3.10
- Author:
- केदार (km@dev.java.net)
- See Also:
DataType,DomDocument.PRIMS
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate(String value)Checks if given value can be had by the abstract data type represented by this implementation.
-
-
-
Method Detail
-
validate
public void validate(String value) throws ValidationException
Description copied from interface:DataTypeChecks if given value can be had by the abstract data type represented by this implementation.- Specified by:
validatein interfaceDataType- Parameters:
value- String representing the value for this DataType- Throws:
ValidationException- if given String does not represent this data type.
-
-