Class SerializerConfig

java.lang.Object
net.elytrium.serializer.SerializerConfig

public class SerializerConfig extends Object
  • Field Details

  • Method Details

    • toNodeName

      public String toNodeName(String field)
      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

      public String toFieldName(String field)
      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

      @Nullable public <T, P> PlaceholderReplacer<T,P> getRegisteredReplacer(Class<?> clazz)
    • getRegisteredSerializer

      @Nullable public <T, F> ClassSerializer<T,F> getRegisteredSerializer(Class<?> clazz)
    • getRegisteredSerializers

      public int getRegisteredSerializers()
    • getLineSeparator

      public String getLineSeparator()
    • getDoubledLineSeparator

      public String 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()