Package yapion.utils

Class IdentifierUtils


  • public class IdentifierUtils
    extends java.lang.Object
    • Field Detail

      • ENUM_IDENTIFIER

        public static final java.lang.String ENUM_IDENTIFIER
        This variable is used in the EnumSerializer for identifying an Enum by its Class.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 an Enum as type. Currently this is only used by SetSerializer and MapSerializer. The value of this is the Class.getTypeName() of the Enum in question.
        See Also:
        Constant Field Values
      • EXCEPTION_IDENTIFIER

        public static final java.lang.String EXCEPTION_IDENTIFIER
        This variable is used in the ThrowableSerializer and ErrorSerializer for identifying an Throwable, Exception, RuntimeException and Error respectively by its Class.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 the PrivateKeySerializer and PublicKeySerializer for identifying an PublicKey and PrivateKey respectively by its Class.getTypeName(). In the serialization this variable is used as the key of a so called key variable.
        See Also:
        Constant Field Values
      • BYTE_IDENTIFIER

        public static final java.lang.String BYTE_IDENTIFIER
        This variable is used in the YAPIONValue.toJSON(AbstractOutput) implementation for representation of the internal type notice into the JSON structure. The YAPIONValue is wrapped into an JSON object with one key value pair. The key to this value is this identifier and the JSONMapper will use this variable to identify a specific YAPIONValue 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 the YAPIONValue.toJSON(AbstractOutput) implementation for representation of the internal type notice into the JSON structure. The YAPIONValue is wrapped into an JSON object with one key value pair. The key to this value is this identifier and the JSONMapper will use this variable to identify a specific YAPIONValue 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 the YAPIONValue.toJSON(AbstractOutput) implementation for representation of the internal type notice into the JSON structure. The YAPIONValue is wrapped into an JSON object with one key value pair. The key to this value is this identifier and the JSONMapper will use this variable to identify a specific YAPIONValue 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 the YAPIONValue.toJSON(AbstractOutput) implementation for representation of the internal type notice into the JSON structure. The YAPIONValue is wrapped into an JSON object with one key value pair. The key to this value is this identifier and the JSONMapper will use this variable to identify a specific YAPIONValue 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 the YAPIONValue.toJSON(AbstractOutput) implementation for representation of the internal type notice into the JSON structure. The YAPIONValue is wrapped into an JSON object with one key value pair. The key to this value is this identifier and the JSONMapper will use this variable to identify a specific YAPIONValue 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 the YAPIONValue.toJSON(AbstractOutput) implementation for representation of the internal type notice into the JSON structure. The YAPIONValue is wrapped into an JSON object with one key value pair. The key to this value is this identifier and the JSONMapper will use this variable to identify a specific YAPIONValue 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 the YAPIONValue.toJSON(AbstractOutput) implementation for representation of the internal type notice into the JSON structure. The YAPIONValue is wrapped into an JSON object with one key value pair. The key to this value is this identifier and the JSONMapper will use this variable to identify a specific YAPIONValue 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 the YAPIONValue.toJSON(AbstractOutput) implementation for representation of the internal type notice into the JSON structure. The YAPIONValue is wrapped into an JSON object with one key value pair. The key to this value is this identifier and the JSONMapper will use this variable to identify a specific YAPIONValue 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 the YAPIONValue.toJSON(AbstractOutput) implementation for representation of the internal type notice into the JSON structure. The YAPIONValue is wrapped into an JSON object with one key value pair. The key to this value is this identifier and the JSONMapper will use this variable to identify a specific YAPIONValue type in the JSON representation.
        See Also:
        Constant Field Values
    • Constructor Detail

      • IdentifierUtils

        public IdentifierUtils()