com.ibm.tivoli.maximo.report.expr

Class HasAttributeValidator

  • All Implemented Interfaces:
    Node.Visitor


    public class HasAttributeValidator
    extends TypeCollector
    A Validator that will validate Listeral nodes in the parsed expression and test them to ensure they are actually valid mbo fields for the given mbo objectname. If a list of valid attributes are passed, then the validator will validate that a field is a valid mbo object field AND that the field is in the list of valid attributes.
    • Constructor Detail

      • HasAttributeValidator

        public HasAttributeValidator(java.lang.String objectname,
                                     java.util.Set validAttributes)
    • 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
      • getValidAttributeSet

        public java.util.Set getValidAttributeSet()
        After validation is done, you can get a Set of valid attributes that are being used in the expression
        Returns: