public static class

LazyJsonParser.ReadOnlyJsonNode

extends Object
implements Iterable<T>
java.lang.Object
   ↳ com.atlassian.jira.entity.remotelink.LazyJsonParser.ReadOnlyJsonNode

Class Overview

Provides the same functionality that a true 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.

Summary

Public Methods
boolean asBoolean(boolean defaultValue)
boolean asBoolean()
double asDouble()
double asDouble(double defaultValue)
int asInt(int defaultValue)
int asInt()
long asLong(long defaultValue)
long asLong()
String asText()
String asTextOrNull()
This is like 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.
JsonToken asToken()
boolean equals(Object o)
LazyJsonParser.ReadOnlyJsonNode findParent(String fieldName)
List<LazyJsonParser.ReadOnlyJsonNode> findParents(String fieldName)
LazyJsonParser.ReadOnlyJsonNode findPath(String fieldName)
LazyJsonParser.ReadOnlyJsonNode findValue(String fieldName)
List<LazyJsonParser.ReadOnlyJsonNode> findValues(String fieldName)
List<String> findValuesAsText(String fieldName)
LazyJsonParser.ReadOnlyJsonNode get(int index)
LazyJsonParser.ReadOnlyJsonNode get(String fieldName)
BigInteger getBigIntegerValue()
byte[] getBinaryValue()
boolean getBooleanValue()
BigDecimal getDecimalValue()
double getDoubleValue()
Iterator<LazyJsonParser.ReadOnlyJsonNode> getElements()
Iterator<String> getFieldNames()
int getIntValue()
long getLongValue()
JsonParser.NumberType getNumberType()
Number getNumberValue()
String getTextValue()
boolean has(String fieldName)
boolean has(int index)
int hashCode()
boolean isArray()
boolean isBigDecimal()
boolean isBigInteger()
boolean isBinary()
boolean isBoolean()
boolean isContainerNode()
boolean isDouble()
boolean isFloatingPointNumber()
boolean isInt()
boolean isIntegralNumber()
boolean isLong()
boolean isMissingNode()
boolean isNull()
boolean isNumber()
boolean isObject()
boolean isPojo()
boolean isTextual()
boolean isValueNode()
Iterator<LazyJsonParser.ReadOnlyJsonNode> iterator()
LazyJsonParser.ReadOnlyJsonNode path(String... fieldNames)
This is like repeated calls to path(String)
LazyJsonParser.ReadOnlyJsonNode path(int index)
LazyJsonParser.ReadOnlyJsonNode path(String fieldName)
int size()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Iterable

Public Methods

public boolean asBoolean (boolean defaultValue)

public boolean asBoolean ()

public double asDouble ()

public double asDouble (double defaultValue)

public int asInt (int defaultValue)

public int asInt ()

public long asLong (long defaultValue)

public long asLong ()

public String asText ()

public String asTextOrNull ()

This is like 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 JsonToken asToken ()

public boolean equals (Object o)

public LazyJsonParser.ReadOnlyJsonNode findParent (String fieldName)

public List<LazyJsonParser.ReadOnlyJsonNode> findParents (String fieldName)

public LazyJsonParser.ReadOnlyJsonNode findPath (String fieldName)

public LazyJsonParser.ReadOnlyJsonNode findValue (String fieldName)

public List<LazyJsonParser.ReadOnlyJsonNode> findValues (String fieldName)

public List<String> findValuesAsText (String fieldName)

public LazyJsonParser.ReadOnlyJsonNode get (int index)

public LazyJsonParser.ReadOnlyJsonNode get (String fieldName)

public BigInteger getBigIntegerValue ()

public byte[] getBinaryValue ()

Throws
IOException

public boolean getBooleanValue ()

public BigDecimal getDecimalValue ()

public double getDoubleValue ()

public Iterator<LazyJsonParser.ReadOnlyJsonNode> getElements ()

public Iterator<String> getFieldNames ()

public int getIntValue ()

public long getLongValue ()

public JsonParser.NumberType getNumberType ()

public Number getNumberValue ()

public String getTextValue ()

public boolean has (String fieldName)

public boolean has (int index)

public int hashCode ()

public boolean isArray ()

public boolean isBigDecimal ()

public boolean isBigInteger ()

public boolean isBinary ()

public boolean isBoolean ()

public boolean isContainerNode ()

public boolean isDouble ()

public boolean isFloatingPointNumber ()

public boolean isInt ()

public boolean isIntegralNumber ()

public boolean isLong ()

public boolean isMissingNode ()

public boolean isNull ()

public boolean isNumber ()

public boolean isObject ()

public boolean isPojo ()

public boolean isTextual ()

public boolean isValueNode ()

public LazyJsonParser.ReadOnlyJsonNode path (String... fieldNames)

This is like repeated calls to path(String)

Parameters
fieldNames the field names to traverse

public LazyJsonParser.ReadOnlyJsonNode path (int index)

public LazyJsonParser.ReadOnlyJsonNode path (String fieldName)

public int size ()

public String toString ()