org.argouml.kernel
Class MemberList

java.lang.Object
  extended byorg.argouml.kernel.MemberList
All Implemented Interfaces:
Collection, List

public class MemberList
extends Object
implements List


Field Summary
private  ArrayList diagramMembers
           
private static Logger LOG
          logger
private  AbstractProjectMember model
           
private  AbstractProjectMember todoList
           
 
Constructor Summary
MemberList()
          The constructor.
 
Method Summary
 void add(int arg0, Object arg1)
           
 boolean add(Object member)
           
 boolean addAll(Collection arg0)
           
 boolean addAll(int arg0, Collection arg1)
           
 void clear()
           
 boolean contains(Object member)
           
 boolean containsAll(Collection arg0)
           
 Object get(int i)
           
 ProjectMember getMember(Class type)
           
 ArrayList getMembers(Class type)
           
 int indexOf(Object arg0)
           
 boolean isEmpty()
           
 Iterator iterator()
           
 int lastIndexOf(Object arg0)
           
 ListIterator listIterator()
           
 ListIterator listIterator(int arg0)
           
 Object remove(int arg0)
           
 boolean remove(Object member)
           
 boolean removeAll(Collection arg0)
           
private  boolean removeDiagram(org.tigris.gef.base.Diagram d)
           
 boolean retainAll(Collection arg0)
           
 Object set(int arg0, Object arg1)
           
private  void setTodoList(AbstractProjectMember member)
           
 int size()
           
 List subList(int arg0, int arg1)
           
 Object[] toArray()
           
 Object[] toArray(Object[] arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.List
equals, hashCode
 

Field Detail

LOG

private static final Logger LOG
logger


model

private AbstractProjectMember model

diagramMembers

private ArrayList diagramMembers

todoList

private AbstractProjectMember todoList
Constructor Detail

MemberList

public MemberList()
The constructor.

Method Detail

add

public boolean add(Object member)
Specified by:
add in interface List
See Also:
Collection.add(java.lang.Object)

remove

public boolean remove(Object member)
Specified by:
remove in interface List
See Also:
Collection.remove(java.lang.Object)

iterator

public Iterator iterator()
Specified by:
iterator in interface List
See Also:
Collection.iterator()

listIterator

public ListIterator listIterator()
Specified by:
listIterator in interface List
See Also:
List.listIterator()

listIterator

public ListIterator listIterator(int arg0)
Specified by:
listIterator in interface List
See Also:
List.listIterator(int)

removeDiagram

private boolean removeDiagram(org.tigris.gef.base.Diagram d)

size

public int size()
Specified by:
size in interface List
See Also:
Collection.size()

contains

public boolean contains(Object member)
Specified by:
contains in interface List
See Also:
Collection.contains(java.lang.Object)

clear

public void clear()
Specified by:
clear in interface List
See Also:
Collection.clear()

getMember

public ProjectMember getMember(Class type)
Parameters:
type - the type of the member
Returns:
the member of the project

getMembers

public ArrayList getMembers(Class type)
Parameters:
type - the type of the member
Returns:
the member of the project

get

public Object get(int i)
Specified by:
get in interface List
See Also:
List.get(int)

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface List
See Also:
List.isEmpty()

toArray

public Object[] toArray()
Specified by:
toArray in interface List
See Also:
List.toArray()

setTodoList

private void setTodoList(AbstractProjectMember member)

toArray

public Object[] toArray(Object[] arg0)
Specified by:
toArray in interface List
See Also:
List.toArray(java.lang.Object[])

containsAll

public boolean containsAll(Collection arg0)
Specified by:
containsAll in interface List
See Also:
List.containsAll(java.util.Collection)

addAll

public boolean addAll(Collection arg0)
Specified by:
addAll in interface List
See Also:
List.addAll(java.util.Collection)

addAll

public boolean addAll(int arg0,
                      Collection arg1)
Specified by:
addAll in interface List
See Also:
List.addAll(int, java.util.Collection)

removeAll

public boolean removeAll(Collection arg0)
Specified by:
removeAll in interface List
See Also:
List.removeAll(java.util.Collection)

retainAll

public boolean retainAll(Collection arg0)
Specified by:
retainAll in interface List
See Also:
List.retainAll(java.util.Collection)

set

public Object set(int arg0,
                  Object arg1)
Specified by:
set in interface List
See Also:
List.set(int, java.lang.Object)

add

public void add(int arg0,
                Object arg1)
Specified by:
add in interface List
See Also:
List.add(int, java.lang.Object)

remove

public Object remove(int arg0)
Specified by:
remove in interface List
See Also:
List.remove(int)

indexOf

public int indexOf(Object arg0)
Specified by:
indexOf in interface List
See Also:
List.indexOf(java.lang.Object)

lastIndexOf

public int lastIndexOf(Object arg0)
Specified by:
lastIndexOf in interface List
See Also:
List.lastIndexOf(java.lang.Object)

subList

public List subList(int arg0,
                    int arg1)
Specified by:
subList in interface List
See Also:
List.subList(int, int)


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook