Package yapion.serializing
Class YAPIONSerializerFlagDefault
- java.lang.Object
-
- yapion.serializing.YAPIONSerializerFlagDefault
-
public final class YAPIONSerializerFlagDefault extends java.lang.ObjectA data structure to hold the default value of a specificYAPIONSerializerFlagDefault.YAPIONSerializerFlagKey.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classYAPIONSerializerFlagDefault.YAPIONSerializerFlagKeyA data structure to hold the FlagKey used byYAPIONSerializerFlags.
-
Field Summary
Fields Modifier and Type Field Description static YAPIONSerializerFlagDefault.YAPIONSerializerFlagKeyDATA_LOSS_EXCEPTIONThe key to specify if data loss should be handled silentlyfalseor should throw an exceptiontrue.static YAPIONSerializerFlagDefault.YAPIONSerializerFlagKeyERROR_EXCEPTIONThe key to specify if aErrorshould be handled silentlyfalseor should throw an exceptiontrue.static YAPIONSerializerFlagDefault.YAPIONSerializerFlagKeyPRIVATE_KEY_AS_NULLThe key to specify if aPrivateKeyshould be serialized asnulltrueor serialized properlyfalse.static YAPIONSerializerFlagDefault.YAPIONSerializerFlagKeyPRIVATE_KEY_EXCEPTIONThe key to specify if aPrivateKeyshould be serializedfalseor should result in an thrown exceptiontrue.static YAPIONSerializerFlagDefault.YAPIONSerializerFlagKeyREFLECTION_AS_NULLThe key to specify if a Reflection should be serialized asnulltrueor serialized properlyfalse.static YAPIONSerializerFlagDefault.YAPIONSerializerFlagKeyREFLECTION_EXCEPTIONThe key to specify if a Reflection should be serializedfalseor should result in an thrown exceptiontrue.
-
Constructor Summary
Constructors Constructor Description YAPIONSerializerFlagDefault(YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey flagKey, boolean flagDefault)
-
Method Summary
Modifier and Type Method Description static YAPIONSerializerFlagDefault.YAPIONSerializerFlagKeyflagKey(java.lang.String key)Static instance getter method which either creates a newYAPIONSerializerFlagDefault.YAPIONSerializerFlagKeyor returns an already existing Instance.static java.lang.String[]flagKeys()Retrieve every flagKey specified in the current Runtime up until now.
-
-
-
Field Detail
-
DATA_LOSS_EXCEPTION
public static final YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey DATA_LOSS_EXCEPTION
The key to specify if data loss should be handled silentlyfalseor should throw an exceptiontrue.
-
PRIVATE_KEY_EXCEPTION
public static final YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey PRIVATE_KEY_EXCEPTION
The key to specify if aPrivateKeyshould be serializedfalseor should result in an thrown exceptiontrue.
-
PRIVATE_KEY_AS_NULL
public static final YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey PRIVATE_KEY_AS_NULL
The key to specify if aPrivateKeyshould be serialized asnulltrueor serialized properlyfalse.
-
ERROR_EXCEPTION
public static final YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey ERROR_EXCEPTION
The key to specify if aErrorshould be handled silentlyfalseor should throw an exceptiontrue.
-
REFLECTION_EXCEPTION
public static final YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey REFLECTION_EXCEPTION
The key to specify if a Reflection should be serializedfalseor should result in an thrown exceptiontrue.
-
REFLECTION_AS_NULL
public static final YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey REFLECTION_AS_NULL
The key to specify if a Reflection should be serialized asnulltrueor serialized properlyfalse.
-
-
Constructor Detail
-
YAPIONSerializerFlagDefault
public YAPIONSerializerFlagDefault(YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey flagKey, boolean flagDefault)
-
-
Method Detail
-
flagKeys
public static java.lang.String[] flagKeys()
Retrieve every flagKey specified in the current Runtime up until now.- Returns:
- a String array with every
YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey.keyName
-
flagKey
public static YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey flagKey(java.lang.String key)
Static instance getter method which either creates a newYAPIONSerializerFlagDefault.YAPIONSerializerFlagKeyor returns an already existing Instance.- Parameters:
key- the key to retrieve- Returns:
- the
YAPIONSerializerFlagDefault.YAPIONSerializerFlagKey
-
-