org.LexGrid.LexBIG.Preferences.loader.OWLLoadPreferences
Class PrioritizedDefinitionNames

java.lang.Object
  extended by org.LexGrid.LexBIG.Preferences.loader.OWLLoadPreferences.PrioritizedDefinitionNames
All Implemented Interfaces:
java.io.Serializable

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

Class PrioritizedDefinitionNames.

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

Constructor Summary
PrioritizedDefinitionNames()
           
 
Method Summary
 void addName(int index, java.lang.String vName)
           
 void addName(java.lang.String vName)
           
 java.util.Enumeration<java.lang.String> enumerateName()
          Method enumerateName.
 java.lang.String[] getName()
          Method getName.Returns the contents of the collection in an Array.
 java.lang.String getName(int index)
          Method getName.
 int getNameCount()
          Method getNameCount.
 java.util.Iterator<java.lang.String> iterateName()
          Method iterateName.
 void removeAllName()
           
 boolean removeName(java.lang.String vName)
          Method removeName.
 java.lang.String removeNameAt(int index)
          Method removeNameAt.
 void setName(int index, java.lang.String vName)
           
 void setName(java.lang.String[] vNameArray)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrioritizedDefinitionNames

public PrioritizedDefinitionNames()
Method Detail

addName

public void addName(java.lang.String vName)
             throws java.lang.IndexOutOfBoundsException
Parameters:
vName -
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addName

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

enumerateName

public java.util.Enumeration<java.lang.String> enumerateName()
Method enumerateName.

Returns:
an Enumeration over all possible elements of this collection

getName

public java.lang.String getName(int index)
                         throws java.lang.IndexOutOfBoundsException
Method getName.

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

getName

public java.lang.String[] getName()
Method getName.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

getNameCount

public int getNameCount()
Method getNameCount.

Returns:
the size of this collection

iterateName

public java.util.Iterator<java.lang.String> iterateName()
Method iterateName.

Returns:
an Iterator over all possible elements in this collection

removeAllName

public void removeAllName()

removeName

public boolean removeName(java.lang.String vName)
Method removeName.

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

removeNameAt

public java.lang.String removeNameAt(int index)
Method removeNameAt.

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

setName

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

setName

public void setName(java.lang.String[] vNameArray)
Parameters:
vNameArray -

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.