Example usage for com.fasterxml.jackson.core JsonStreamContext getCurrentName

List of usage examples for com.fasterxml.jackson.core JsonStreamContext getCurrentName

Introduction

In this page you can find the example usage for com.fasterxml.jackson.core JsonStreamContext getCurrentName.

Prototype

public abstract String getCurrentName();

Source Link

Document

Method for accessing name associated with the current location.

Usage

From source file:com.proofpoint.event.collector.FilteringMapSerializer.java

private PropertyMapSelectionPolicy findApplicableFilter(JsonStreamContext outputContext) {
    for (DefinedPropertiesSelectionPolicy filter : filters) {
        //second condition ensures we are at the proper level (i.e. one below root)
        if (filter.getNodeName().equals(outputContext.getCurrentName())
                && isRootThisContextsParent(outputContext)) {
            return filter;
        }//from w w  w.  j ava  2s .  c o  m
    }
    return UniversalMatchSelectionPolicy.get();
}