org.apache.jsieve
Class StringListArgument

java.lang.Object
  extended by org.apache.jsieve.StringListArgument
All Implemented Interfaces:
Argument

public class StringListArgument
extends java.lang.Object
implements Argument

Class StringListArgument is a parsed representation of the RFC3028 BNF...

string-list = "[" string *("," string) "]" / string


Constructor Summary
StringListArgument(java.util.List<java.lang.String> stringList)
          Constructor for StringListArgument.
 
Method Summary
protected  java.util.List<java.lang.String> computeList()
          Returns a new list.
 java.util.List<java.lang.String> getList()
          Returns the list, lazy initialised if required.
 java.lang.Object getValue()
          Method getValue answers the value of the receiver's Argument.
protected  void setList(java.util.List<java.lang.String> list)
          Sets the list.
 java.lang.String toString()
           
protected  void updateList()
          Updates the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringListArgument

public StringListArgument(java.util.List<java.lang.String> stringList)
Constructor for StringListArgument.

Method Detail

getList

public java.util.List<java.lang.String> getList()
Returns the list, lazy initialised if required.

Returns:
List

computeList

protected java.util.List<java.lang.String> computeList()
Returns a new list.

Returns:
List

setList

protected void setList(java.util.List<java.lang.String> list)
Sets the list.

Parameters:
list - The list to set

updateList

protected void updateList()
Updates the list.


getValue

public java.lang.Object getValue()
Description copied from interface: Argument
Method getValue answers the value of the receiver's Argument.

Specified by:
getValue in interface Argument
Returns:
Object
See Also:
Argument.getValue()

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.