org.codehaus.jackson.node
Class BaseJsonNode
java.lang.Object
org.codehaus.jackson.JsonNode
org.codehaus.jackson.node.BaseJsonNode
- All Implemented Interfaces:
- Iterable<JsonNode>, JsonSerializable
- Direct Known Subclasses:
- ContainerNode, MissingNode, ValueNode
public abstract class BaseJsonNode
- extends JsonNode
- implements JsonSerializable
Abstract base class common to all standard JsonNode
implementations.
The main addition here is that we declare that sub-classes must
implement JsonSerializable. This simplifies object mapping
aspects a bit, as no external serializers are needed.
| Methods inherited from class org.codehaus.jackson.JsonNode |
equals, get, get, getBigIntegerValue, getBinaryValue, getBooleanValue, getDecimalValue, getDoubleValue, getElements, getElementValue, getFieldNames, getFieldValue, getIntValue, getLongValue, getNumberValue, getPath, getPath, getTextValue, getValueAsText, isArray, isBigDecimal, isBigInteger, isBinary, isBoolean, isContainerNode, isDouble, isFloatingPointNumber, isInt, isIntegralNumber, isLong, isMissingNode, isNull, isNumber, isObject, isPojo, isTextual, isValueNode, iterator, path, path, size, toString |
BaseJsonNode
protected BaseJsonNode()
serialize
public abstract void serialize(JsonGenerator jgen,
SerializerProvider provider)
throws IOException,
JsonProcessingException
- Specified by:
serialize in interface JsonSerializable
- Throws:
IOException
JsonProcessingException
writeTo
public final void writeTo(JsonGenerator jgen)
throws IOException,
JsonGenerationException
Note: this method should probably be deprecated, given that we
want to use the standard serialization interface.
- Specified by:
writeTo in class JsonNode
- Throws:
IOException
JsonGenerationException