public final class TagUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
assertNotNull(Object object) |
static boolean |
getBoolean(Object value)
String --> boolean
|
static Date |
getDate(Object value)
ISO Date String --> Date
|
static double |
getDouble(Object value)
String --> long
|
static float |
getFloat(Object value)
String --> long
|
static int |
getInteger(Object value)
String --> int
|
static Locale |
getLocale(Object value)
String --> Locale
|
static long |
getLong(Object value)
String --> long
|
static String |
getString(Object value)
Return the same string.
|
static String[] |
getStringArray(Object value)
These are normally NMTOKEN type in attributes
String --> String[]
|
static javax.el.ValueExpression |
getValueExpression(String valueExpression,
Class<?> expectedType) |
static boolean |
isValueReference(String expression) |
static String[] |
parseNameTokens(String stringValue)
Parses a whitespace separated series of name tokens.
|
public static javax.el.ValueExpression getValueExpression(String valueExpression, Class<?> expectedType)
public static void assertNotNull(Object object)
public static String getString(Object value)
value
- public static boolean getBoolean(Object value)
value
- public static int getInteger(Object value)
value
- public static long getLong(Object value)
value
- public static double getDouble(Object value)
value
- public static float getFloat(Object value)
value
- public static String[] getStringArray(Object value) throws ParseException
value
- ParseException
public static Date getDate(Object value)
value
- public static Locale getLocale(Object value)
value
- public static boolean isValueReference(String expression)
Copyright © 2020 The Apache Software Foundation. All rights reserved.