List of usage examples for com.fasterxml.jackson.core JsonStreamContext getCurrentName
public abstract String getCurrentName();
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(); }