org.LexGrid.LexBIG.DataModel.Collections
Class AssociatedConceptList

java.lang.Object
  extended by org.LexGrid.LexBIG.DataModel.Collections.AssociatedConceptList
All Implemented Interfaces:
java.io.Serializable

public class AssociatedConceptList
extends java.lang.Object
implements java.io.Serializable

Class AssociatedConceptList.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
AssociatedConceptList()
           
 
Method Summary
 void addAssociatedConcept(AssociatedConcept vAssociatedConcept)
           
 void addAssociatedConcept(int index, AssociatedConcept vAssociatedConcept)
           
 java.util.Enumeration<AssociatedConcept> enumerateAssociatedConcept()
          Method enumerateAssociatedConcept.
 AssociatedConcept[] getAssociatedConcept()
          Method getAssociatedConcept.Returns the contents of the collection in an Array.
 AssociatedConcept getAssociatedConcept(int index)
          Method getAssociatedConcept.
 int getAssociatedConceptCount()
          Method getAssociatedConceptCount.
 java.util.Iterator<AssociatedConcept> iterateAssociatedConcept()
          Method iterateAssociatedConcept.
 void removeAllAssociatedConcept()
           
 boolean removeAssociatedConcept(AssociatedConcept vAssociatedConcept)
          Method removeAssociatedConcept.
 AssociatedConcept removeAssociatedConceptAt(int index)
          Method removeAssociatedConceptAt.
 void setAssociatedConcept(AssociatedConcept[] vAssociatedConceptArray)
           
 void setAssociatedConcept(int index, AssociatedConcept vAssociatedConcept)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssociatedConceptList

public AssociatedConceptList()
Method Detail

addAssociatedConcept

public void addAssociatedConcept(AssociatedConcept vAssociatedConcept)
                          throws java.lang.IndexOutOfBoundsException
Parameters:
vAssociatedConcept -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addAssociatedConcept

public void addAssociatedConcept(int index,
                                 AssociatedConcept vAssociatedConcept)
                          throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vAssociatedConcept -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

enumerateAssociatedConcept

public java.util.Enumeration<AssociatedConcept> enumerateAssociatedConcept()
Method enumerateAssociatedConcept.

Returns:
an Enumeration over all possible elements of this collection

getAssociatedConcept

public AssociatedConcept getAssociatedConcept(int index)
                                       throws java.lang.IndexOutOfBoundsException
Method getAssociatedConcept.

Parameters:
index -
Returns:
the value of the org.LexGrid.LexBIG.DataModel.Core.AssociatedConcept at the given index
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

getAssociatedConcept

public AssociatedConcept[] getAssociatedConcept()
Method getAssociatedConcept.Returns the contents of the collection in an Array.

Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.

Returns:
this collection as an Array

getAssociatedConceptCount

public int getAssociatedConceptCount()
Method getAssociatedConceptCount.

Returns:
the size of this collection

iterateAssociatedConcept

public java.util.Iterator<AssociatedConcept> iterateAssociatedConcept()
Method iterateAssociatedConcept.

Returns:
an Iterator over all possible elements in this collection

removeAllAssociatedConcept

public void removeAllAssociatedConcept()

removeAssociatedConcept

public boolean removeAssociatedConcept(AssociatedConcept vAssociatedConcept)
Method removeAssociatedConcept.

Parameters:
vAssociatedConcept -
Returns:
true if the object was removed from the collection.

removeAssociatedConceptAt

public AssociatedConcept removeAssociatedConceptAt(int index)
Method removeAssociatedConceptAt.

Parameters:
index -
Returns:
the element removed from the collection

setAssociatedConcept

public void setAssociatedConcept(int index,
                                 AssociatedConcept vAssociatedConcept)
                          throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vAssociatedConcept -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

setAssociatedConcept

public void setAssociatedConcept(AssociatedConcept[] vAssociatedConceptArray)
Parameters:
vAssociatedConceptArray -

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.