org.apache.jsieve.tests
Class Exists

java.lang.Object
  extended by org.apache.jsieve.tests.AbstractTest
      extended by org.apache.jsieve.tests.Exists
All Implemented Interfaces:
ExecutableTest

public class Exists
extends AbstractTest

Class Exists implements the Exists Test as defined in RFC 3028, section 5.5.


Constructor Summary
Exists()
          Constructor for Exists.
 
Method Summary
protected  boolean executeBasic(MailAdapter mail, Arguments arguments, SieveContext context)
          Abstract method executeBasic invokes a Sieve Test.
protected  void validateArguments(Arguments arguments, SieveContext context)
          Framework method validateArguments is invoked before a Sieve Test is executed to validate its arguments.
 
Methods inherited from class org.apache.jsieve.tests.AbstractTest
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Exists

public Exists()
Constructor for Exists.

Method Detail

executeBasic

protected boolean executeBasic(MailAdapter mail,
                               Arguments arguments,
                               SieveContext context)
                        throws SieveException
Description copied from class: AbstractTest
Abstract method executeBasic invokes a Sieve Test.

Specified by:
executeBasic in class AbstractTest
context - SieveContext giving contextual information, not null
Returns:
boolean
Throws:
SieveException
See Also:
AbstractTest.executeBasic(MailAdapter, Arguments, SieveContext)

validateArguments

protected void validateArguments(Arguments arguments,
                                 SieveContext context)
                          throws SieveException
Description copied from class: AbstractTest
Framework method validateArguments is invoked before a Sieve Test is executed to validate its arguments. Subclass methods are expected to override or extend this method to perform their own validation as appropriate.

Overrides:
validateArguments in class AbstractTest
context - SieveContext giving comntextual information, not null
Throws:
SieveException
See Also:
AbstractTest.validateArguments(Arguments, SieveContext)


Copyright © 2008-2009 The Apache Software Foundation. All Rights Reserved.