Package ch.qos.logback.core.joran.util
Class StringToObjectConverter
java.lang.Object
ch.qos.logback.core.joran.util.StringToObjectConverter
Utility class which can convert string into objects.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canBeBuiltFromSimpleString
(Class<?> parameterClass) static Object
convertArg
(ContextAware ca, String val, Class<?> type) Convertval
a String parameter to an object of a given type.private static Object
convertByValueOfMethod
(ContextAware ca, Class<?> type, String val) private static Charset
convertToCharset
(ContextAware ca, String val) private static Object
convertToEnum
(ContextAware ca, String val, Class<? extends Enum> enumType) private static boolean
followsTheValueOfConvention
(Class<?> parameterClass) static Method
getValueOfMethod
(Class<?> type) (package private) boolean
private static boolean
isOfTypeCharset
(Class<?> type)
-
Field Details
-
STING_CLASS_PARAMETER
-
-
Constructor Details
-
StringToObjectConverter
public StringToObjectConverter()
-
-
Method Details
-
canBeBuiltFromSimpleString
-
convertArg
Convertval
a String parameter to an object of a given type. -
isOfTypeCharset
-
convertToCharset
-
getValueOfMethod
-
followsTheValueOfConvention
-
convertByValueOfMethod
-
convertToEnum
-
isBuildableFromSimpleString
boolean isBuildableFromSimpleString()
-