Class EnvEntry.Util
- java.lang.Object
-
- org.glassfish.web.config.serverbeans.EnvEntry.Util
-
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
validateValue(String type, String value)
Validates the specified value string against the indicated type.
-
-
-
Method Detail
-
validateValue
public static void validateValue(String type, String value)
Validates the specified value string against the indicated type. The recognized types are (from the spec):- java.lang.Boolean
- java.lang.Byte
- java.lang.Character
- java.lang.Double
- java.lang.Float
- java.lang.Integer
- java.lang.Long
- java.lang.Short
- java.lang.String
- Parameters:
type
- valid type for env-entry-type (from the spec)value
- value to be checked- Throws:
IllegalArgumentException
- if the type does not match one of the legal onesNumberFormatException
- if the value cannot be parsed according to the type
-
-