org.apache.jsieve.commands
Class If

java.lang.Object
  extended byorg.apache.jsieve.commands.AbstractCommand
      extended byorg.apache.jsieve.commands.AbstractBodyCommand
          extended byorg.apache.jsieve.commands.AbstractControlCommand
              extended byorg.apache.jsieve.commands.AbstractConditionalCommand
                  extended byorg.apache.jsieve.commands.If
All Implemented Interfaces:
ExecutableCommand

public class If
extends AbstractConditionalCommand

Class If implements the If Command as defined in RFC 3028, section 3.1.


Constructor Summary
If()
          Constructor for If.
 
Method Summary
protected  java.lang.Object executeBasic(MailAdapter mail, Arguments arguments, Block block, SieveContext context)
           Conditionally eexecute a Block if an If Condition is allowed and runnable.
protected  void validateArguments(Arguments arguments, SieveContext context)
          Framework method validateArguments is invoked before a Sieve Command is executed to validate its arguments.
 
Methods inherited from class org.apache.jsieve.commands.AbstractConditionalCommand
execute, validateBlock
 
Methods inherited from class org.apache.jsieve.commands.AbstractBodyCommand
updateState
 
Methods inherited from class org.apache.jsieve.commands.AbstractCommand
execute, validateState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

If

public If()
Constructor for If.

Method Detail

executeBasic

protected java.lang.Object executeBasic(MailAdapter mail,
                                        Arguments arguments,
                                        Block block,
                                        SieveContext context)
                                 throws SieveException

Conditionally eexecute a Block if an If Condition is allowed and runnable.

Also,

Specified by:
executeBasic in class AbstractCommand
Parameters:
mail -
arguments -
block -
context - SieveContext giving contextual information, not null
Returns:
Object
Throws:
SieveException
See Also:


validateArguments

protected void validateArguments(Arguments arguments,
                                 SieveContext context)
                          throws SieveException
Description copied from class: AbstractCommand
Framework method validateArguments is invoked before a Sieve Command 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 AbstractCommand
Parameters:
arguments -
context - SieveContext giving contextual information, not null
Throws:
SieveException
See Also:
AbstractCommand.validateArguments(Arguments, SieveContext)


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