/** * Is a long, an int or a {@link BigInteger}. */ public boolean isIntegralNumber(final String path) { return isIntegralNumber(getNode(path)); }
/** * Use {@link #isInt(String)} to check first, if required. */ public Integer getInt(final String path) { final JsonNode node = getNode(path); return getInt(path, node); }
/** * Use {@link #isDecimal(String)} to test if a decimal value */ public Float getFloat(final String path) { final JsonNode node = getNode(path); return getFloat(path, node); }
/** * Indicates that the wrapped node has <tt>null</tt> value (ie * {@link JsonRepresentation#isNull()}), or returns <tt>null</tt> if there * was no node with the provided path. */ public Boolean isNull(final String path) { return isNull(getNode(path)); }
/** * Use {@link #isIntegralNumber(String)} to check if number (it is not possible to check if a short, however). */ public Short getShort(final String path) { final JsonNode node = getNode(path); return getShort(path, node); }
/** * Use {@link #isLong(String)} to check first, if required. */ public Long getLong(final String path) { final JsonNode node = getNode(path); return getLong(path, node); }
/** * Use {@link #isString(String)} to check first, if required. */ public String getString(final String path) { final JsonNode node = getNode(path); return getString(path, node); }
/** * Use {@link #isIntegralNumber(String)} to test if number (it is not possible to check if a byte, however). */ public Byte getByte(final String path) { final JsonNode node = getNode(path); return getByte(path, node); }
/** * Use {@link #isString(String)} to check if string (it is not possible to check if a character, however). */ public Character getChar(final String path) { final JsonNode node = getNode(path); return getChar(path, node); }
/** * Use {@link #isDouble(String)} to check first, if required. */ public Double getDouble(final String path) { final JsonNode node = getNode(path); return getDouble(path, node); }
public java.util.Date getDateTime(final String path) { return getDateTime(path, getNode(path)); }
public boolean isLong(final String path) { return isLong(getNode(path)); }
public boolean isString(final String path) { return isString(getNode(path)); }
/** * Use {@link #isBoolean(String)} to check first, if required. */ public Boolean getBoolean(final String path) { return getBoolean(path, getNode(path)); }
/** * Use {@link #isLink(String)} to check first, if required. */ public LinkRepresentation getLink(final String path) { return getLink(path, getNode(path)); }
/** * Either returns a {@link JsonRepresentation} that indicates that the * wrapped node has <tt>null</tt> value (ie * {@link JsonRepresentation#isNull()}), or returns <tt>null</tt> if there * was no node with the provided path. * * <p> * Use {@link #isNull(String)} to check first, if required. */ public JsonRepresentation getNull(final String path) { return getNull(path, getNode(path)); }
public JsonRepresentation getArrayEnsured(final String path) { return getArrayEnsured(path, getNode(path)); }
public JsonRepresentation getMap(final String path) { return getMap(path, getNode(path)); }
public java.util.Date getDate(final String path) { return getDate(path, getNode(path)); }
public JsonRepresentation getRepresentation(final String pathTemplate, final Object... args) { final String pathStr = String.format(pathTemplate, args); final JsonNode node = getNode(pathStr); if (representsNull(node)) { return null; } return new JsonRepresentation(node); }