Package net.elytrium.serializer
Class SerializerConfig
java.lang.Object
net.elytrium.serializer.SerializerConfig
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionPlaceholderReplacer<?,?> getAndCacheReplacer(Class<? extends PlaceholderReplacer<?, ?>> clazz) <T,F> ClassSerializer<T, F> getAndCacheSerializer(Serializer serializer) intchar[]<T,P> PlaceholderReplacer<T, P> getRegisteredReplacer(Class<?> clazz) <T,F> ClassSerializer<T, F> getRegisteredSerializer(Class<?> clazz) intbooleanbooleanbooleanbooleanbooleantoFieldName(String field) Converts the config node field to the class field name format.toFieldName(String field, NameStyle overriddenFieldNameStyle, NameStyle overriddenNodeNameStyle) Converts the config node field to the class field name format.toNodeName(String field) Converts the class field name to the config node field format.toNodeName(String field, NameStyle overriddenFieldNameStyle, NameStyle overriddenNodeNameStyle) Converts the class field name to the config node field format.
-
Field Details
-
DEFAULT
-
-
Method Details
-
toNodeName
Converts the class field name to the config node field format. -
toNodeName
public String toNodeName(String field, NameStyle overriddenFieldNameStyle, NameStyle overriddenNodeNameStyle) Converts the class field name to the config node field format. -
toFieldName
Converts the config node field to the class field name format. -
toFieldName
public String toFieldName(String field, NameStyle overriddenFieldNameStyle, NameStyle overriddenNodeNameStyle) Converts the config node field to the class field name format. -
getAndCacheReplacer
public PlaceholderReplacer<?,?> getAndCacheReplacer(Class<? extends PlaceholderReplacer<?, ?>> clazz) throws ReflectiveOperationException- Throws:
ReflectiveOperationException
-
getAndCacheSerializer
public <T,F> ClassSerializer<T,F> getAndCacheSerializer(Serializer serializer) throws ReflectiveOperationException - Throws:
ReflectiveOperationException
-
getRegisteredReplacer
-
getRegisteredSerializer
-
getRegisteredSerializers
public int getRegisteredSerializers() -
getLineSeparator
-
getDoubledLineSeparator
-
getLineSeparatorChars
public char[] getLineSeparatorChars() -
isSafeMode
public boolean isSafeMode() -
isAllowUnicode
public boolean isAllowUnicode() -
isRegisterPlaceholdersForCollectionEntries
public boolean isRegisterPlaceholdersForCollectionEntries() -
isLogMissingFields
public boolean isLogMissingFields() -
isBackupOnErrors
public boolean isBackupOnErrors() -
getCommentValueIndent
public int getCommentValueIndent()
-