public static class LazyJsonParser.ReadOnlyJsonNode extends Object implements Iterable<LazyJsonParser.ReadOnlyJsonNode>
JsonNode
would, except that
the nodes may not be cast to their original mutable types, thereby protecting the
JSON data against modification. To simplify this and prevent any confusion or the
need to implement any deprecated or irrelevant methods, this class intentionally
does not extend JsonNode
itself.clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public boolean isValueNode()
public boolean isContainerNode()
public boolean isMissingNode()
public boolean isArray()
public boolean isObject()
public boolean isPojo()
public boolean isNumber()
public boolean isIntegralNumber()
public boolean isFloatingPointNumber()
public boolean isInt()
public boolean isLong()
public boolean isDouble()
public boolean isBigDecimal()
public boolean isBigInteger()
public boolean isTextual()
public boolean isBoolean()
public boolean isNull()
public boolean isBinary()
public org.codehaus.jackson.JsonToken asToken()
public org.codehaus.jackson.JsonParser.NumberType getNumberType()
public String getTextValue()
public byte[] getBinaryValue() throws IOException
IOException
public boolean getBooleanValue()
public Number getNumberValue()
public int getIntValue()
public long getLongValue()
public double getDoubleValue()
public BigDecimal getDecimalValue()
public BigInteger getBigIntegerValue()
public LazyJsonParser.ReadOnlyJsonNode get(int index)
public LazyJsonParser.ReadOnlyJsonNode get(String fieldName)
public String asText()
public String asTextOrNull()
JsonNode.asText()
, but it will only return a value for text nodes
instead of attempting to coerce other value nodes, for which it will always return
null
.public int asInt()
public int asInt(int defaultValue)
public long asLong()
public long asLong(long defaultValue)
public double asDouble()
public double asDouble(double defaultValue)
public boolean asBoolean()
public boolean asBoolean(boolean defaultValue)
public boolean has(String fieldName)
public boolean has(int index)
public LazyJsonParser.ReadOnlyJsonNode findValue(String fieldName)
public List<LazyJsonParser.ReadOnlyJsonNode> findValues(String fieldName)
public LazyJsonParser.ReadOnlyJsonNode findPath(String fieldName)
public LazyJsonParser.ReadOnlyJsonNode findParent(String fieldName)
public List<LazyJsonParser.ReadOnlyJsonNode> findParents(String fieldName)
public int size()
public Iterator<LazyJsonParser.ReadOnlyJsonNode> iterator()
iterator
in interface Iterable<LazyJsonParser.ReadOnlyJsonNode>
public Iterator<LazyJsonParser.ReadOnlyJsonNode> getElements()
public LazyJsonParser.ReadOnlyJsonNode path(String... fieldNames)
JsonNode.path(String)
fieldNames
- the field names to traversepublic LazyJsonParser.ReadOnlyJsonNode path(String fieldName)
public LazyJsonParser.ReadOnlyJsonNode path(int index)
Copyright © 2002-2015 Atlassian. All Rights Reserved.