public class WhitelistValidator extends TypeCollector
Collector.Mode
Node.Visitor.State, Node.Visitor.Status
Constructor and Description |
---|
WhitelistValidator(java.util.Set<java.lang.String> whitelist,
boolean caseSensitive) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Node n)
Return true if this node can be accepted by the Collector
|
void |
addToWhitelist(java.util.Set<java.lang.String> wlist)
Adds items to the white list, and will account for case sensitive items.
|
public WhitelistValidator(java.util.Set<java.lang.String> whitelist, boolean caseSensitive)
public boolean accept(Node n) throws java.rmi.RemoteException, MXException
Collector
accept
in class TypeCollector
java.rmi.RemoteException
MXException
public void addToWhitelist(java.util.Set<java.lang.String> wlist)
wlist
-