com.ibm.tivoli.maximo.report.expr

Class WhitelistValidator

  • All Implemented Interfaces:
    Node.Visitor


    public class WhitelistValidator
    extends TypeCollector
    Simple WhiteList validator/collector. It will collect Literal nodes that are NOT in the white list.
    • Constructor Summary

      Constructors 
      Constructor and Description
      WhitelistValidator(java.util.Set whitelist, boolean caseSensitive) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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 wlist)
      Adds items to the white list, and will account for case sensitive items.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WhitelistValidator

        public WhitelistValidator(java.util.Set whitelist,
                                  boolean caseSensitive)
    • Method Detail

      • accept

        public boolean accept(Node n)
                       throws java.rmi.RemoteException,
                              MXException
        Description copied from class: Collector
        Return true if this node can be accepted by the Collector
        Overrides:
        accept in class TypeCollector
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
      • addToWhitelist

        public void addToWhitelist(java.util.Set wlist)
        Adds items to the white list, and will account for case sensitive items.
        Parameters:
        wlist -