Class RawValue
- All Implemented Interfaces:
JsonSerializable
JsonGenerator.writeRawValue(String)
.
It may be stored in TokenBuffer
, as well as in Tree Model
(JsonNode
)- Since:
- 2.6
-
Nested Class Summary
Nested classes/interfaces inherited from interface edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.JsonSerializable
JsonSerializable.Base
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor that may be used by sub-classes, and allows passing value types other than ones for which explicit constructor exists. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
_serialize
(JsonGenerator gen) boolean
int
hashCode()
rawValue()
Accessor for returning enclosed raw value in whatever form it was created in (usuallyString
, {link SerializableString}, or anyJsonSerializable
).void
serialize
(JsonGenerator gen) void
serialize
(JsonGenerator gen, SerializerProvider serializers) Serialization method called when no additional type information is to be included in serialization.void
serializeWithType
(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) Serialization method called when additional type information is expected to be included in serialization, for deserialization to use.toString()
-
Field Details
-
_value
Contents to serialize. Untyped because there are multiple types that are supported:String
,JsonSerializable
,SerializableString
.
-
-
Constructor Details
-
RawValue
-
RawValue
-
RawValue
-
RawValue
Constructor that may be used by sub-classes, and allows passing value types other than ones for which explicit constructor exists. Caller has to take care that values of types not supported by base implementation are handled properly, usually by overriding some of existing serialization methods.
-
-
Method Details
-
rawValue
Accessor for returning enclosed raw value in whatever form it was created in (usuallyString
, {link SerializableString}, or anyJsonSerializable
). -
serialize
Description copied from interface:JsonSerializable
Serialization method called when no additional type information is to be included in serialization.- Specified by:
serialize
in interfaceJsonSerializable
- Throws:
IOException
-
serializeWithType
public void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws IOException Description copied from interface:JsonSerializable
Serialization method called when additional type information is expected to be included in serialization, for deserialization to use.Usually implementation consists of a call to
TypeSerializer.writeTypePrefix(edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.core.JsonGenerator, edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.core.type.WritableTypeId)
followed by serialization of contents, followed by a call toTypeSerializer.writeTypeSuffix(edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.core.JsonGenerator, edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.core.type.WritableTypeId)
). Details of the type id argument to pass depend on shape of JSON Object used (Array, Object or scalar like String/Number/Boolean).Note that some types (most notably, "natural" types: String, Integer, Double and Boolean) never include type information.
- Specified by:
serializeWithType
in interfaceJsonSerializable
- Throws:
IOException
-
serialize
- Throws:
IOException
-
_serialize
- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-