org.codehaus.jackson.map.impl
Class NumericNode
java.lang.Object
org.codehaus.jackson.map.JsonNode
org.codehaus.jackson.map.impl.ValueNode
org.codehaus.jackson.map.impl.NumericNode
- Direct Known Subclasses:
- DecimalNode, DoubleNode, IntNode, LongNode
public abstract class NumericNode
- extends ValueNode
Intermediate value node used for numeric nodes.
| Methods inherited from class org.codehaus.jackson.map.JsonNode |
appendElement, equals, getBooleanValue, getElements, getElementValue, getFieldNames, getFieldValue, getFieldValues, getTextValue, insertElement, isArray, isBigDecimal, isBoolean, isContainerNode, isDouble, isFloatingPointNumber, isInt, isIntegralNumber, isLong, isMissingNode, isNull, isObject, isTextual, removeElement, removeElement, reportNoArrayMods, reportNoObjectMods, setElement, setElement, size, writeTo |
NumericNode
protected NumericNode()
isNumber
public final boolean isNumber()
- Overrides:
isNumber in class JsonNode
getNumberValue
public abstract Number getNumberValue()
- Overrides:
getNumberValue in class JsonNode
getIntValue
public abstract int getIntValue()
- Overrides:
getIntValue in class JsonNode
getLongValue
public abstract long getLongValue()
- Overrides:
getLongValue in class JsonNode
getDoubleValue
public abstract double getDoubleValue()
- Overrides:
getDoubleValue in class JsonNode
getDecimalValue
public abstract BigDecimal getDecimalValue()
- Overrides:
getDecimalValue in class JsonNode
getValueAsText
public abstract String getValueAsText()
- Description copied from class:
JsonNode
- Method that will return valid String representation of
the container value, if the node is a value node
(method
JsonNode.isValueNode() returns true), otherwise null.
Note: to serialize nodes of any type, you should call
JsonNode.toString() instead.
- Specified by:
getValueAsText in class JsonNode
Apache License, Version 2.0