ePOST API

rice.email
Class Flags

java.lang.Object
  extended by rice.email.Flags
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Flags
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Flags object to store the flags of an email

Version:
$Id: Flags.java 2022 2004-08-21 01:05:43Z amislove $
Author:
See Also:
Serialized Form

Constructor Summary
  Flags()
          Constructor for email Flags
protected Flags(java.util.HashSet flags)
           
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object o)
           
 java.util.Vector flagList()
          Returns a Vector representation of the flagList
 boolean isSet(java.lang.String flag)
          Get the attribute for the specified Flag object
 void setFlag(java.lang.String flag, boolean value)
          Sets the specified attribute of the Flags object
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Flags

public Flags()
Constructor for email Flags


Flags

protected Flags(java.util.HashSet flags)
Method Detail

isSet

public boolean isSet(java.lang.String flag)
Get the attribute for the specified Flag object

Returns:
the Flag's value

setFlag

public void setFlag(java.lang.String flag,
                    boolean value)
Sets the specified attribute of the Flags object

Parameters:
string - The attribute to be set
value - The new value

flagList

public java.util.Vector flagList()
Returns a Vector representation of the flagList

Returns:
the Vector of the set flags

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

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

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

ePOST API

Copyright © 2001-2005 - Rice Pastry.