Package yapion.utils
Class IdentifierUtils
- java.lang.Object
-
- yapion.utils.IdentifierUtils
-
public class IdentifierUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BIG_DECIMAL_IDENTIFIER
This variable is used in theYAPIONValue.toJSON(AbstractOutput)
implementation for representation of the internal type notice into the JSON structure.static java.lang.String
BIG_INTEGER_IDENTIFIER
This variable is used in theYAPIONValue.toJSON(AbstractOutput)
implementation for representation of the internal type notice into the JSON structure.static java.lang.String
BYTE_IDENTIFIER
This variable is used in theYAPIONValue.toJSON(AbstractOutput)
implementation for representation of the internal type notice into the JSON structure.static java.lang.String
CHAR_IDENTIFIER
This variable is used in theYAPIONValue.toJSON(AbstractOutput)
implementation for representation of the internal type notice into the JSON structure.static java.lang.String
DOUBLE_IDENTIFIER
This variable is used in theYAPIONValue.toJSON(AbstractOutput)
implementation for representation of the internal type notice into the JSON structure.static java.lang.String
ENUM_IDENTIFIER
static java.lang.String
ENUM_TYPE_IDENTIFIER
This variable is used anywhere you need anEnum
as type.static java.lang.String
EXCEPTION_IDENTIFIER
This variable is used in theThrowableSerializer
andErrorSerializer
for identifying anThrowable
,Exception
,RuntimeException
andError
respectively by itsClass.getTypeName()
.static java.lang.String
FLOAT_IDENTIFIER
This variable is used in theYAPIONValue.toJSON(AbstractOutput)
implementation for representation of the internal type notice into the JSON structure.static java.lang.String
INT_IDENTIFIER
This variable is used in theYAPIONValue.toJSON(AbstractOutput)
implementation for representation of the internal type notice into the JSON structure.static java.lang.String
KEY_IDENTIFIER
This variable is used in thePrivateKeySerializer
andPublicKeySerializer
for identifying anPublicKey
andPrivateKey
respectively by itsClass.getTypeName()
.static java.lang.String
LONG_IDENTIFIER
This variable is used in theYAPIONValue.toJSON(AbstractOutput)
implementation for representation of the internal type notice into the JSON structure.static java.lang.String
MAP_IDENTIFIER
This variable is used in theYAPIONMap.toJSON(AbstractOutput)
implementation andYAPIONMap.toJSONLossy(AbstractOutput)
for representation of anYAPIONMap
as a JSON object.static java.lang.String
POINTER_IDENTIFIER
This variable is used in theYAPIONPointer.toJSON(AbstractOutput)
implementation andYAPIONPointer.toJSONLossy(AbstractOutput)
for representation of anYAPIONPointer
as a JSON object.static java.lang.String
SHORT_IDENTIFIER
This variable is used in theYAPIONValue.toJSON(AbstractOutput)
implementation for representation of the internal type notice into the JSON structure.static java.lang.String
TYPE_IDENTIFIER
This variable is used in theYAPIONSerializer
andYAPIONDeserializer
for identifying anYAPIONObject
type by itsClass.getTypeName()
.
-
Constructor Summary
Constructors Constructor Description IdentifierUtils()
-
-
-
Field Detail
-
TYPE_IDENTIFIER
public static final java.lang.String TYPE_IDENTIFIER
This variable is used in theYAPIONSerializer
andYAPIONDeserializer
for identifying anYAPIONObject
type by itsClass.getTypeName()
. In the serialization this variable is used as the key of a the so called type variable.- See Also:
- Constant Field Values
-
ENUM_IDENTIFIER
public static final java.lang.String ENUM_IDENTIFIER
This variable is used in theEnumSerializer
for identifying anEnum
by itsClass.getTypeName()
. In the serialization this variable is used as the key of a so called enum variable.- See Also:
- Constant Field Values
-
ENUM_TYPE_IDENTIFIER
public static final java.lang.String ENUM_TYPE_IDENTIFIER
This variable is used anywhere you need anEnum
as type. Currently this is only used bySetSerializer
andMapSerializer
. The value of this is theClass.getTypeName()
of theEnum
in question.- See Also:
- Constant Field Values
-
EXCEPTION_IDENTIFIER
public static final java.lang.String EXCEPTION_IDENTIFIER
This variable is used in theThrowableSerializer
andErrorSerializer
for identifying anThrowable
,Exception
,RuntimeException
andError
respectively by itsClass.getTypeName()
. In the serialization this variable is used as the key of a so called exception variable.- See Also:
- Constant Field Values
-
KEY_IDENTIFIER
public static final java.lang.String KEY_IDENTIFIER
This variable is used in thePrivateKeySerializer
andPublicKeySerializer
for identifying anPublicKey
andPrivateKey
respectively by itsClass.getTypeName()
. In the serialization this variable is used as the key of a so called key variable.- See Also:
- Constant Field Values
-
POINTER_IDENTIFIER
public static final java.lang.String POINTER_IDENTIFIER
This variable is used in theYAPIONPointer.toJSON(AbstractOutput)
implementation andYAPIONPointer.toJSONLossy(AbstractOutput)
for representation of anYAPIONPointer
as a JSON object. TheJSONMapper
uses this variable to identify aYAPIONPointer
in the JSON representation.- See Also:
- Constant Field Values
-
MAP_IDENTIFIER
public static final java.lang.String MAP_IDENTIFIER
This variable is used in theYAPIONMap.toJSON(AbstractOutput)
implementation andYAPIONMap.toJSONLossy(AbstractOutput)
for representation of anYAPIONMap
as a JSON object. TheJSONMapper
uses this variable to identify aYAPIONMap
in the JSON representation.- See Also:
- Constant Field Values
-
BYTE_IDENTIFIER
public static final java.lang.String BYTE_IDENTIFIER
This variable is used in theYAPIONValue.toJSON(AbstractOutput)
implementation for representation of the internal type notice into the JSON structure. TheYAPIONValue
is wrapped into an JSON object with one key value pair. The key to this value is this identifier and theJSONMapper
will use this variable to identify a specificYAPIONValue
type in the JSON representation.- See Also:
- Constant Field Values
-
SHORT_IDENTIFIER
public static final java.lang.String SHORT_IDENTIFIER
This variable is used in theYAPIONValue.toJSON(AbstractOutput)
implementation for representation of the internal type notice into the JSON structure. TheYAPIONValue
is wrapped into an JSON object with one key value pair. The key to this value is this identifier and theJSONMapper
will use this variable to identify a specificYAPIONValue
type in the JSON representation.- See Also:
- Constant Field Values
-
CHAR_IDENTIFIER
public static final java.lang.String CHAR_IDENTIFIER
This variable is used in theYAPIONValue.toJSON(AbstractOutput)
implementation for representation of the internal type notice into the JSON structure. TheYAPIONValue
is wrapped into an JSON object with one key value pair. The key to this value is this identifier and theJSONMapper
will use this variable to identify a specificYAPIONValue
type in the JSON representation.- See Also:
- Constant Field Values
-
INT_IDENTIFIER
public static final java.lang.String INT_IDENTIFIER
This variable is used in theYAPIONValue.toJSON(AbstractOutput)
implementation for representation of the internal type notice into the JSON structure. TheYAPIONValue
is wrapped into an JSON object with one key value pair. The key to this value is this identifier and theJSONMapper
will use this variable to identify a specificYAPIONValue
type in the JSON representation.- See Also:
- Constant Field Values
-
FLOAT_IDENTIFIER
public static final java.lang.String FLOAT_IDENTIFIER
This variable is used in theYAPIONValue.toJSON(AbstractOutput)
implementation for representation of the internal type notice into the JSON structure. TheYAPIONValue
is wrapped into an JSON object with one key value pair. The key to this value is this identifier and theJSONMapper
will use this variable to identify a specificYAPIONValue
type in the JSON representation.- See Also:
- Constant Field Values
-
LONG_IDENTIFIER
public static final java.lang.String LONG_IDENTIFIER
This variable is used in theYAPIONValue.toJSON(AbstractOutput)
implementation for representation of the internal type notice into the JSON structure. TheYAPIONValue
is wrapped into an JSON object with one key value pair. The key to this value is this identifier and theJSONMapper
will use this variable to identify a specificYAPIONValue
type in the JSON representation.- See Also:
- Constant Field Values
-
DOUBLE_IDENTIFIER
public static final java.lang.String DOUBLE_IDENTIFIER
This variable is used in theYAPIONValue.toJSON(AbstractOutput)
implementation for representation of the internal type notice into the JSON structure. TheYAPIONValue
is wrapped into an JSON object with one key value pair. The key to this value is this identifier and theJSONMapper
will use this variable to identify a specificYAPIONValue
type in the JSON representation.- See Also:
- Constant Field Values
-
BIG_INTEGER_IDENTIFIER
public static final java.lang.String BIG_INTEGER_IDENTIFIER
This variable is used in theYAPIONValue.toJSON(AbstractOutput)
implementation for representation of the internal type notice into the JSON structure. TheYAPIONValue
is wrapped into an JSON object with one key value pair. The key to this value is this identifier and theJSONMapper
will use this variable to identify a specificYAPIONValue
type in the JSON representation.- See Also:
- Constant Field Values
-
BIG_DECIMAL_IDENTIFIER
public static final java.lang.String BIG_DECIMAL_IDENTIFIER
This variable is used in theYAPIONValue.toJSON(AbstractOutput)
implementation for representation of the internal type notice into the JSON structure. TheYAPIONValue
is wrapped into an JSON object with one key value pair. The key to this value is this identifier and theJSONMapper
will use this variable to identify a specificYAPIONValue
type in the JSON representation.- See Also:
- Constant Field Values
-
-