public static class StringInterpreterFactory.DefaultStringInterpreter extends Object implements StringInterpreter
Constructor and Description |
---|
DefaultStringInterpreter() |
Modifier and Type | Method and Description |
---|---|
protected String |
coerceToOtherType(Class<?> c,
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) . |
String |
convertString(Class<?> c,
String s,
String attrName,
Class<?> propEditorClass,
boolean isNamedAttribute)
Generates the source code that represents the conversion of the string
value to the appropriate type.
|
public String convertString(Class<?> c, String s, String attrName, Class<?> propEditorClass, boolean isNamedAttribute)
StringInterpreter
convertString
in interface StringInterpreter
c
- 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 String coerceToOtherType(Class<?> c, String s, boolean isNamedAttribute)
convertString(Class, String, String, Class, boolean)
.c
- unuseds
- unusedisNamedAttribute
- unusednull
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.