Package org.jsonex.jsoncoder
Class JSONCoderOption
- java.lang.Object
-
- org.jsonex.jsoncoder.JSONCoderOption
-
public class JSONCoderOption extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJSONCoderOption.LogLevel
-
Constructor Summary
Constructors Constructor Description JSONCoderOption()
-
Method Summary
-
-
-
Method Detail
-
timeZoneOrParent
public TimeZone timeZoneOrParent()
-
getCachedParsingDateFormat
public SimpleDateFormat getCachedParsingDateFormat()
-
getCachedDateFormat
public SimpleDateFormat getCachedDateFormat()
-
getCachedDateFormat
public SimpleDateFormat getCachedDateFormat(String format)
-
of
public static JSONCoderOption of()
-
ofIndentFactor
public static JSONCoderOption ofIndentFactor(int factor)
-
isClassSkipped
public boolean isClassSkipped(Class<?> cls)
-
transformField
public FieldTransformer.FieldInfo transformField(Class<?> cls, FieldTransformer.FieldInfo fieldInfo, BeanCoderContext ctx)
-
isExcluded
public boolean isExcluded(Class<?> cls, String name, BeanCoderContext ctx)
-
parseDateFullback
public Date parseDateFullback(String dateStr) throws ParseException
- Throws:
ParseException
-
isIgnoreSubClassFields
public boolean isIgnoreSubClassFields(Class<?> cls)
-
addDefaultFilter
public JSONCoderOption addDefaultFilter(FieldTransformer filter)
-
addFilterFor
public JSONCoderOption addFilterFor(Class<?> cls, FieldTransformer filter)
-
addFilterFor
public JSONCoderOption addFilterFor(Class<?> cls, FieldTransformer filter, boolean last)
-
addSkippedClasses
public JSONCoderOption addSkippedClasses(Class<?>... cls)
-
addSkippedClasses
public JSONCoderOption addSkippedClasses(String... cls)
-
addSkippedPackages
public JSONCoderOption addSkippedPackages(String... pkgs)
-
addIgnoreSubClassFieldsClasses
public JSONCoderOption addIgnoreSubClassFieldsClasses(Class<?>... cls)
-
addCoder
public JSONCoderOption addCoder(ICoder<?>... codes)
-
setJsonOption
public JSONCoderOption setJsonOption(boolean alwaysQuoteName, char quoteChar, int indentFactor)
-
-