public enum PropertyNamingStrategy extends java.lang.Enum<PropertyNamingStrategy>
| Enum Constant and Description |
|---|
CamelCase |
CamelCase1x
for fastjson 1.x compatible
|
KebabCase
Using this naming policy with FASTJSON will modify the Java Field name from its camel cased form to a lower case field name where each word is separated by a dash (-).
|
LowerCaseWithDashes
Using this naming policy with FASTJSON will modify the Java Field name from its camel cased form to a lower case field name where each word is separated by a dash (-).
|
LowerCaseWithDots
Using this naming policy with FASTJSON will modify the Java Field name from its camel cased form to a lower case field name where each word is separated by a dot (.).
|
LowerCaseWithUnderScores
Using this naming policy with FASTJSON will modify the Java Field name from its camel cased form to a lower case field name where each word is separated by an underscore (_).
|
NeverUseThisValueExceptDefaultValue |
NoChange |
PascalCase
Using this naming policy with FASTJSON will ensure that the first "letter" of the Java field name is capitalized when serialized to its JSON form.
|
SnakeCase |
UpperCamelCaseWithDashes
Using this naming policy with FASTJSON will ensure that the first "letter" of the Java field name is capitalized when serialized to its JSON form and the words will be separated by a dash (-).
|
UpperCamelCaseWithDots
Using this naming policy with FASTJSON will ensure that the first "letter" of the Java field name is capitalized when serialized to its JSON form and the words will be separated by a dash (-).
|
UpperCamelCaseWithSpaces
Using this naming policy with FASTJSON will ensure that the first "letter" of the Java field name is capitalized when serialized to its JSON form and the words will be separated by a space.
|
UpperCamelCaseWithUnderScores
Using this naming policy with FASTJSON will ensure that the first "letter" of the Java field name is capitalized when serialized to its JSON form and the words will be separated by an underscore (_).
|
UpperCase |
UpperCaseWithUnderScores
Using this naming policy with FASTJSON will modify the Java Field name from its camel cased form to an upper case field name where each word is separated by an underscore (_).
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
translate(java.lang.String propertyName) |
static PropertyNamingStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PropertyNamingStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PropertyNamingStrategy CamelCase
public static final PropertyNamingStrategy CamelCase1x
public static final PropertyNamingStrategy PascalCase
public static final PropertyNamingStrategy SnakeCase
public static final PropertyNamingStrategy UpperCase
public static final PropertyNamingStrategy UpperCamelCaseWithSpaces
public static final PropertyNamingStrategy UpperCamelCaseWithUnderScores
public static final PropertyNamingStrategy UpperCamelCaseWithDashes
public static final PropertyNamingStrategy UpperCamelCaseWithDots
public static final PropertyNamingStrategy KebabCase
public static final PropertyNamingStrategy UpperCaseWithUnderScores
public static final PropertyNamingStrategy LowerCaseWithUnderScores
public static final PropertyNamingStrategy LowerCaseWithDashes
public static final PropertyNamingStrategy LowerCaseWithDots
public static final PropertyNamingStrategy NoChange
public static final PropertyNamingStrategy NeverUseThisValueExceptDefaultValue
public static PropertyNamingStrategy[] values()
for (PropertyNamingStrategy c : PropertyNamingStrategy.values()) System.out.println(c);
public static PropertyNamingStrategy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String translate(java.lang.String propertyName)