org.LexGrid.LexBIG.DataModel.Collections
Class CodingSchemeVersionList

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

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

Class CodingSchemeVersionList.

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

Constructor Summary
CodingSchemeVersionList()
           
 
Method Summary
 void addEntry(CodingSchemeVersion vEntry)
           
 void addEntry(int index, CodingSchemeVersion vEntry)
           
 java.util.Enumeration<CodingSchemeVersion> enumerateEntry()
          Method enumerateEntry.
 CodingSchemeVersion[] getEntry()
          Method getEntry.Returns the contents of the collection in an Array.
 CodingSchemeVersion getEntry(int index)
          Method getEntry.
 int getEntryCount()
          Method getEntryCount.
 java.util.Iterator<CodingSchemeVersion> iterateEntry()
          Method iterateEntry.
 void removeAllEntry()
           
 boolean removeEntry(CodingSchemeVersion vEntry)
          Method removeEntry.
 CodingSchemeVersion removeEntryAt(int index)
          Method removeEntryAt.
 void setEntry(CodingSchemeVersion[] vEntryArray)
           
 void setEntry(int index, CodingSchemeVersion vEntry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodingSchemeVersionList

public CodingSchemeVersionList()
Method Detail

addEntry

public void addEntry(CodingSchemeVersion vEntry)
              throws java.lang.IndexOutOfBoundsException
Parameters:
vEntry -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addEntry

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

enumerateEntry

public java.util.Enumeration<CodingSchemeVersion> enumerateEntry()
Method enumerateEntry.

Returns:
an Enumeration over all possible elements of this collection

getEntry

public CodingSchemeVersion getEntry(int index)
                             throws java.lang.IndexOutOfBoundsException
Method getEntry.

Parameters:
index -
Returns:
the value of the org.LexGrid.versions.CodingSchemeVersion at the given index
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

getEntry

public CodingSchemeVersion[] getEntry()
Method getEntry.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

getEntryCount

public int getEntryCount()
Method getEntryCount.

Returns:
the size of this collection

iterateEntry

public java.util.Iterator<CodingSchemeVersion> iterateEntry()
Method iterateEntry.

Returns:
an Iterator over all possible elements in this collection

removeAllEntry

public void removeAllEntry()

removeEntry

public boolean removeEntry(CodingSchemeVersion vEntry)
Method removeEntry.

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

removeEntryAt

public CodingSchemeVersion removeEntryAt(int index)
Method removeEntryAt.

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

setEntry

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

setEntry

public void setEntry(CodingSchemeVersion[] vEntryArray)
Parameters:
vEntryArray -

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.