/** * Call made to verify whether leaf-level * <code>long</code> value * should be included in output or not. */ public boolean includeNumber(long v) { return _includeScalar(); }
public TokenFilterContext createChildArrayContext(TokenFilter filter, boolean writeStart) { TokenFilterContext ctxt = _child; if (ctxt == null) { _child = ctxt = new TokenFilterContext(TYPE_ARRAY, this, filter, writeStart); return ctxt; } return ctxt.reset(TYPE_ARRAY, filter, writeStart); }
@Override public void writeEndArray() throws IOException { _filterContext = _filterContext.closeArray(delegate); if (_filterContext != null) { _itemFilter = _filterContext.getFilter(); } }
protected boolean _checkBinaryWrite() throws IOException { if (_itemFilter == null) { return false; } if (_itemFilter == TokenFilter.INCLUDE_ALL) { return true; } if (_itemFilter.includeBinary()) { // close enough? _checkParentPath(); return true; } return false; }
protected boolean _checkRawValueWrite() throws IOException { if (_itemFilter == null) { return false; } if (_itemFilter == TokenFilter.INCLUDE_ALL) { return true; } if (_itemFilter.includeRawValue()) { // close enough? _checkParentPath(); return true; } return false; } }
@Override public void writeEndObject() throws IOException { _filterContext = _filterContext.closeObject(delegate); if (_filterContext != null) { _itemFilter = _filterContext.getFilter(); } }
public FilteringParserDelegate(JsonParser p, TokenFilter f, boolean includePath, boolean allowMultipleMatches) { super(p); rootFilter = f; // and this is the currently active filter for root values _itemFilter = f; _headContext = TokenFilterContext.createRootContext(f); _includePath = includePath; _allowMultipleMatches = allowMultipleMatches; }
/** * Call made to verify whether leaf-level * <code>double</code> value * should be included in output or not. */ public boolean includeNumber(double v) { return _includeScalar(); }
public TokenFilterContext createChildObjectContext(TokenFilter filter, boolean writeStart) { TokenFilterContext ctxt = _child; if (ctxt == null) { _child = ctxt = new TokenFilterContext(TYPE_OBJECT, this, filter, writeStart); return ctxt; } return ctxt.reset(TYPE_OBJECT, filter, writeStart); }
public FilteringGeneratorDelegate(JsonGenerator d, TokenFilter f, boolean includePath, boolean allowMultipleMatches) { // By default, do NOT delegate copy methods super(d, false); rootFilter = f; // and this is the currently active filter for root values _itemFilter = f; _filterContext = TokenFilterContext.createRootContext(f); _includePath = includePath; _allowMultipleMatches = allowMultipleMatches; }
/** * Call made to verify whether leaf-level * Binary value * should be included in output or not. *<p> * NOTE: no binary payload passed; assumption is this won't be of much use. */ public boolean includeBinary() { return _includeScalar(); }
/** * Call made to verify whether leaf-level * String value * should be included in output or not. */ public boolean includeString(String value) { return _includeScalar(); }
/** * Call made to verify whether leaf-level * raw (pre-encoded, not quoted by generator) value * should be included in output or not. *<p> * NOTE: value itself not passed since it may come on multiple forms * and is unlikely to be of much use in determining inclusion * criteria. */ public boolean includeRawValue() { return _includeScalar(); }
/** * Call made to verify whether leaf-level * boolean value * should be included in output or not. */ public boolean includeBoolean(boolean value) { return _includeScalar(); }
/** * Call made to verify whether leaf-level * <code>float</code> value * should be included in output or not. */ public boolean includeNumber(float v) { return _includeScalar(); }
/** * Call made when verifying whether a scaler value is being * read from a parser. *<p> * Default action is to call <code>_includeScalar()</code> and return * whatever it indicates. */ public boolean includeValue(JsonParser p) throws IOException { return _includeScalar(); }
/** * Call made to verify whether leaf-level * null value * should be included in output or not. */ public boolean includeNull() { return _includeScalar(); }
/** * Call made to verify whether leaf-level * <code>int</code> value * should be included in output or not. * * NOTE: also called for `short`, `byte` */ public boolean includeNumber(int v) { return _includeScalar(); }
/** * Call made to verify whether leaf-level * {@link BigDecimal} value * should be included in output or not. */ public boolean includeNumber(BigDecimal v) { return _includeScalar(); }