corelib.services.web.components.mailinglists
Class MailingList

java.lang.Object
  extended by corelib.services.web.components.mailinglists.MailingList
All Implemented Interfaces:
java.lang.Iterable<MailingEntry>

public class MailingList
extends java.lang.Object
implements java.lang.Iterable<MailingEntry>

MailingList is an iterable class of MailingEntry. A mailing list is identified by a name.

Since:
0.4.0
Author:
Dominique Liard & Alexia Ramaļoli

Field Summary
protected  java.util.Set<MailingEntry> mailingEntries
           
 
Constructor Summary
MailingList()
           
 
Method Summary
 void addMailingEntry(MailingEntry entry)
          Add a new mailingEntry at current mailing list.
 java.util.Set<MailingEntry> getMailingEntries()
          Get the mailingEntrie HashSet.
 java.lang.String getName()
          Get the name of the mailing list, It must be unique.
 java.util.Iterator<MailingEntry> iterator()
           
 void removeMailingEntry(MailingEntry entry)
          Remove a mailingEntry at current mailing list.
 void setName(java.lang.String name)
          Fixes the mailing list name.
 int size()
          Return the mailing entries count of current mailing list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mailingEntries

protected java.util.Set<MailingEntry> mailingEntries
Constructor Detail

MailingList

public MailingList()
Method Detail

getName

public java.lang.String getName()
Get the name of the mailing list, It must be unique.

Returns:
The mailing list name.

setName

public void setName(java.lang.String name)
Fixes the mailing list name.

Parameters:
name - String.

addMailingEntry

public void addMailingEntry(MailingEntry entry)
Add a new mailingEntry at current mailing list.

Parameters:
entry - MailingEntry.

removeMailingEntry

public void removeMailingEntry(MailingEntry entry)
Remove a mailingEntry at current mailing list.

Parameters:
entry - MailingEntry.

iterator

public java.util.Iterator<MailingEntry> iterator()
Specified by:
iterator in interface java.lang.Iterable<MailingEntry>

size

public int size()
Return the mailing entries count of current mailing list.

Returns:
The number of mailing entries.

getMailingEntries

public java.util.Set<MailingEntry> getMailingEntries()
Get the mailingEntrie HashSet.

Returns:
The mailingEntrie HashSet.


CAUTION: Ellipse is proposed to you in BETA version to allow evaluation of this framework. Infini Software is released from any responsibility for the use of Ellipse Framework.

Copyright 2012 Infini Software - All Rights Reserved.