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 booleancanBeBuiltFromSimpleString(Class<?> parameterClass) static ObjectconvertArg(ContextAware ca, String val, Class<?> type) Convertvala String parameter to an object of a given type.private static ObjectconvertByValueOfMethod(ContextAware ca, Class<?> type, String val) private static CharsetconvertToCharset(ContextAware ca, String val) private static ObjectconvertToEnum(ContextAware ca, String val, Class<? extends Enum> enumType) private static booleanfollowsTheValueOfConvention(Class<?> parameterClass) static MethodgetValueOfMethod(Class<?> type) (package private) booleanprivate static booleanisOfTypeCharset(Class<?> type)
-
Field Details
-
STING_CLASS_PARAMETER
-
-
Constructor Details
-
StringToObjectConverter
public StringToObjectConverter()
-
-
Method Details
-
canBeBuiltFromSimpleString
-
convertArg
Convertvala String parameter to an object of a given type. -
isOfTypeCharset
-
convertToCharset
-
getValueOfMethod
-
followsTheValueOfConvention
-
convertByValueOfMethod
-
convertToEnum
-
isBuildableFromSimpleString
boolean isBuildableFromSimpleString()
-