public class RawValue extends java.lang.Object implements JsonSerializable
JsonGenerator.writeRawValue(String).
It may be stored in TokenBuffer, as well as in Tree Model
(JsonNode)JsonSerializable.Base| Constructor and Description |
|---|
RawValue(JsonSerializable v) |
RawValue(SerializableString v) |
RawValue(java.lang.String v) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.Object |
rawValue()
Accessor for returning enclosed raw value in whatever form it was created in
(usually
String, {link SerializableString}, or any JsonSerializable). |
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.
|
java.lang.String |
toString() |
public RawValue(java.lang.String v)
public RawValue(SerializableString v)
public RawValue(JsonSerializable v)
public java.lang.Object rawValue()
String, {link SerializableString}, or any JsonSerializable).public void serialize(JsonGenerator gen, SerializerProvider serializers) throws java.io.IOException
JsonSerializableserialize in interface JsonSerializablejava.io.IOExceptionpublic void serializeWithType(JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer) throws java.io.IOException
JsonSerializable
Usually implementation consists of a call to TypeSerializer.writeTypePrefix(com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.core.type.WritableTypeId)
followed by serialization of contents,
followed by a call to TypeSerializer.writeTypeSuffix(com.fasterxml.jackson.core.JsonGenerator, 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.
serializeWithType in interface JsonSerializablejava.io.IOExceptionpublic void serialize(JsonGenerator gen) throws java.io.IOException
java.io.IOExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010 - 2023 Adobe. All Rights Reserved