org.apache.jsieve
Class Arguments

java.lang.Object
  extended by org.apache.jsieve.Arguments

public class Arguments
extends java.lang.Object

A parsed representation of the RFC3028 BNF...

arguments = *argument [test / test-list]

Note that a test is represented as a test-list with a single element.


Constructor Summary
Arguments(java.util.List arguments, TestList testList)
          Constructor for Arguments.
 
Method Summary
protected  TestList computeTestList()
          Computes the testList.
 java.util.List getArgumentList()
          Returns the arguments.
 TestList getTestList()
          Returns the testList, lazily initialised if required.
 boolean hasTests()
          Returns true if there is a TestList and it has Tests.
protected  void setArgumentList(java.util.List arguments)
          Sets the arguments.
protected  void setTestList(TestList testList)
          Sets the testList.
 java.lang.String toString()
           
protected  void updateTestList()
          Updates the TestList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Arguments

public Arguments(java.util.List arguments,
                 TestList testList)
Constructor for Arguments.

Parameters:
arguments -
testList -
Method Detail

getArgumentList

public java.util.List getArgumentList()
Returns the arguments.

Returns:
List

getTestList

public TestList getTestList()
Returns the testList, lazily initialised if required.

Returns:
TestList

hasTests

public boolean hasTests()
Returns true if there is a TestList and it has Tests. Saves triggering lazy initialisation.

Returns:
boolean

computeTestList

protected TestList computeTestList()
Computes the testList.

Returns:
TestList

setArgumentList

protected void setArgumentList(java.util.List arguments)
Sets the arguments.

Parameters:
arguments - The arguments to set

setTestList

protected void setTestList(TestList testList)
Sets the testList.

Parameters:
testList - The testList to set

updateTestList

protected void updateTestList()
Updates the TestList


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


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