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 |
void |
validate(String value)
Checks if given value can be had by the abstract data type represented
by this implementation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
validate
public void validate(String value)
throws ValidationException
- Description copied from interface:
DataType
- Checks if given value can be had by the abstract data type represented
by this implementation.
- Specified by:
validate
in interface DataType
- Parameters:
value
- String representing the value for this DataType
- Throws:
ValidationException
- if given String does
not represent this data type.
Copyright © 2013 Oracle Corporation. All Rights Reserved.