edu.stanford.nlp.util.logging.VisibilityHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stanford-parser Show documentation
Show all versions of stanford-parser Show documentation
Stanford Parser processes raw text in English, Chinese, German, Arabic, and French, and extracts constituency parse trees.
package edu.stanford.nlp.util.logging;
import edu.stanford.nlp.util.Generics;
import edu.stanford.nlp.util.logging.Redwood.Record;
import java.util.ArrayList;
import java.util.Set;
import java.util.List;
/**
* A filter for selecting which channels are visible. This class
* behaves as an "or" filter; that is, if any of the filters are considered
* valid, it allows the Record to proceed to the next handler.
*
* @author Gabor Angeli (angeli at cs.stanford)
*/
public class VisibilityHandler extends LogRecordHandler {
private static enum State { SHOW_ALL, HIDE_ALL }
private VisibilityHandler.State defaultState = State.SHOW_ALL;
private final Set