org.codehaus.jackson.node
Class BaseJsonNode

java.lang.Object
  extended by org.codehaus.jackson.JsonNode
      extended by org.codehaus.jackson.node.BaseJsonNode
All Implemented Interfaces:
java.lang.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.


Constructor Summary
protected BaseJsonNode()
           
 
Method Summary
abstract  void serialize(JsonGenerator jgen, SerializerProvider provider)
           
 void writeTo(JsonGenerator jgen)
           Note: this method should probably be deprecated, given that we want to use the standard serialization interface.
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseJsonNode

protected BaseJsonNode()
Method Detail

serialize

public abstract void serialize(JsonGenerator jgen,
                               SerializerProvider provider)
                        throws java.io.IOException,
                               JsonProcessingException
Specified by:
serialize in interface JsonSerializable
Throws:
java.io.IOException
JsonProcessingException

writeTo

public final void writeTo(JsonGenerator jgen)
                   throws java.io.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:
java.io.IOException
JsonGenerationException