Java Code Examples for com.fasterxml.jackson.core.JsonPointer#matches()

The following examples show how to use com.fasterxml.jackson.core.JsonPointer#matches() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JsonPointerBasedFilter.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
@Override
public TokenFilter includeElement(int index) {
    JsonPointer next = _pathToMatch.matchElement(index);
    if (next == null) {
        return null;
    }
    if (next.matches()) {
        return TokenFilter.INCLUDE_ALL;
    }
    return new JsonPointerBasedFilter(next);
}
 
Example 2
Source File: JsonPointerBasedFilter.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
@Override
public TokenFilter includeProperty(String name) {
    JsonPointer next = _pathToMatch.matchProperty(name);
    if (next == null) {
        return null;
    }
    if (next.matches()) {
        return TokenFilter.INCLUDE_ALL;
    }
    return new JsonPointerBasedFilter(next);
}
 
Example 3
Source File: JsonPointerBasedFilter.java    From openbd-core with GNU General Public License v3.0 5 votes vote down vote up
@Override
public TokenFilter includeElement(int index) {
    JsonPointer next = _pathToMatch.matchElement(index);
    if (next == null) {
        return null;
    }
    if (next.matches()) {
        return TokenFilter.INCLUDE_ALL;
    }
    return new JsonPointerBasedFilter(next);
}
 
Example 4
Source File: JsonPointerBasedFilter.java    From openbd-core with GNU General Public License v3.0 5 votes vote down vote up
@Override
public TokenFilter includeProperty(String name) {
    JsonPointer next = _pathToMatch.matchProperty(name);
    if (next == null) {
        return null;
    }
    if (next.matches()) {
        return TokenFilter.INCLUDE_ALL;
    }
    return new JsonPointerBasedFilter(next);
}