org.apache.jsieve
Class TagArgument

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

public class TagArgument
extends java.lang.Object
implements Argument

A parsed representation of an RFC3028 TAG argument...

tag = ":" identifier


Constructor Summary
TagArgument(Token token)
          Constructor for TagArgument.
 
Method Summary
 java.lang.String getTag()
          Returns the tag.
 java.lang.Object getValue()
          Method getValue answers the value of the receiver's Argument.
 boolean is(java.lang.String tag)
          Does this argument match the given tag?
 boolean isComparator()
          Is this a comparator tag?
protected  void setTag(java.lang.String tag)
          Sets the tag.
protected  void setTag(Token token)
          Method setTag.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TagArgument

public TagArgument(Token token)
Constructor for TagArgument.

Parameters:
token -
Method Detail

setTag

protected void setTag(Token token)
Method setTag.

Parameters:
token -

getTag

public java.lang.String getTag()
Returns the tag.

Returns:
String

is

public boolean is(java.lang.String tag)
Does this argument match the given tag?

Parameters:
tag - not null
Returns:
true when the tag identifier equals that given, false otherwise

isComparator

public boolean isComparator()
Is this a comparator tag?

Returns:
true when identifier matches Constants.TAG_COMPARATOR, false otherwise

setTag

protected void setTag(java.lang.String tag)
Sets the tag.

Parameters:
tag - The tag to set

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 © 2004-2009 The Apache Software Foundation. All Rights Reserved.