public static class StringInterpreterFactory.DefaultStringInterpreter extends java.lang.Object implements StringInterpreter
| Constructor and Description |
|---|
DefaultStringInterpreter() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
coerceToOtherType(java.lang.Class<?> c,
java.lang.String s,
boolean isNamedAttribute)
Intended to be used by sub-classes that don't need/want to
re-implement the logic in
convertString(Class, String, String, Class, boolean). |
java.lang.String |
convertString(java.lang.Class<?> c,
java.lang.String s,
java.lang.String attrName,
java.lang.Class<?> propEditorClass,
boolean isNamedAttribute)
Generates the source code that represents the conversion of the string
value to the appropriate type.
|
public java.lang.String convertString(java.lang.Class<?> c,
java.lang.String s,
java.lang.String attrName,
java.lang.Class<?> propEditorClass,
boolean isNamedAttribute)
StringInterpreterconvertString in interface StringInterpreterc - The target class to which to coerce the given strings - The string valueattrName - The name of the attribute whose value is being suppliedpropEditorClass - The property editor for the given attributeisNamedAttribute - true if the given attribute is a named attribute (that
is, specified using the jsp:attribute standard action),
and false otherwiseprotected java.lang.String coerceToOtherType(java.lang.Class<?> c,
java.lang.String s,
boolean isNamedAttribute)
convertString(Class, String, String, Class, boolean).c - unuseds - unusedisNamedAttribute - unusednullCopyright © 2014–2021. All rights reserved.