org.LexGrid.LexBIG.Impl.pagedgraph.model
Class LazyLoadableAssociatedConceptList

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

public class LazyLoadableAssociatedConceptList
extends AssociatedConceptList

The Class LazyLoadableAssociatedConceptList.

Author:
Kevin Peterson
See Also:
Serialized Form

Constructor Summary
LazyLoadableAssociatedConceptList()
           
LazyLoadableAssociatedConceptList(int count, java.lang.String codingSchemeUri, java.lang.String codingSchemeVersion, java.lang.String relationsContainerName, java.lang.String associationPredicateName, java.lang.String entityCode, java.lang.String entityCodeNamespace, boolean resolveForward, boolean resolveBackward, int resolveForwardAssociationDepth, int resolveBackwardAssociationDepth, int resolveCodedEntryDepth, GraphQuery graphQuery, LocalNameList propertyNames, CodedNodeSet.PropertyType[] propertyTypes, SortOptionList sortAlgorithms, LocalNameList filterOptions, CycleDetectingCallback cycleDetectingCallback, AssociationListBuilder.AssociationDirection direction, int pageSize)
          Instantiates a new lazy loadable associated concept list.
 
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[] arg0)
           
 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

LazyLoadableAssociatedConceptList

public LazyLoadableAssociatedConceptList()

LazyLoadableAssociatedConceptList

public LazyLoadableAssociatedConceptList(int count,
                                         java.lang.String codingSchemeUri,
                                         java.lang.String codingSchemeVersion,
                                         java.lang.String relationsContainerName,
                                         java.lang.String associationPredicateName,
                                         java.lang.String entityCode,
                                         java.lang.String entityCodeNamespace,
                                         boolean resolveForward,
                                         boolean resolveBackward,
                                         int resolveForwardAssociationDepth,
                                         int resolveBackwardAssociationDepth,
                                         int resolveCodedEntryDepth,
                                         GraphQuery graphQuery,
                                         LocalNameList propertyNames,
                                         CodedNodeSet.PropertyType[] propertyTypes,
                                         SortOptionList sortAlgorithms,
                                         LocalNameList filterOptions,
                                         CycleDetectingCallback cycleDetectingCallback,
                                         AssociationListBuilder.AssociationDirection direction,
                                         int pageSize)
Instantiates a new lazy loadable associated concept list.

Parameters:
count - the count
entityCode - the entity code
entityCodeNamespace - the entity code namespace
direction - the direction
pageSize - the page size
codingSchemeUri - the coding scheme uri
codingSchemeVersion - the coding scheme version
relationsContainerName - the relations container name
associationPredicateName - the association predicate name
resolveForward - the resolve forward
resolveBackward - the resolve backward
resolveForwardAssociationDepth - the resolve forward association depth
resolveBackwardAssociationDepth - the resolve backward association depth
resolveCodedEntryDepth - the resolve coded entry depth
graphQuery - the graph query
filterOptions -
cycleDetectingCallback - the cycle detecting callback
Method Detail

addAssociatedConcept

public void addAssociatedConcept(AssociatedConcept vAssociatedConcept)
                          throws java.lang.IndexOutOfBoundsException
Overrides:
addAssociatedConcept in class AssociatedConceptList
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
Overrides:
addAssociatedConcept in class AssociatedConceptList
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

enumerateAssociatedConcept

public java.util.Enumeration<AssociatedConcept> enumerateAssociatedConcept()
Description copied from class: AssociatedConceptList
Method enumerateAssociatedConcept.

Overrides:
enumerateAssociatedConcept in class AssociatedConceptList
Returns:
an Enumeration over all possible elements of this collection

getAssociatedConcept

public AssociatedConcept[] getAssociatedConcept()
Description copied from class: AssociatedConceptList
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.

Overrides:
getAssociatedConcept in class AssociatedConceptList
Returns:
this collection as an Array

getAssociatedConcept

public AssociatedConcept getAssociatedConcept(int index)
                                       throws java.lang.IndexOutOfBoundsException
Description copied from class: AssociatedConceptList
Method getAssociatedConcept.

Overrides:
getAssociatedConcept in class AssociatedConceptList
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

getAssociatedConceptCount

public int getAssociatedConceptCount()
Description copied from class: AssociatedConceptList
Method getAssociatedConceptCount.

Overrides:
getAssociatedConceptCount in class AssociatedConceptList
Returns:
the size of this collection

iterateAssociatedConcept

public java.util.Iterator<AssociatedConcept> iterateAssociatedConcept()
Description copied from class: AssociatedConceptList
Method iterateAssociatedConcept.

Overrides:
iterateAssociatedConcept in class AssociatedConceptList
Returns:
an Iterator over all possible elements in this collection

removeAllAssociatedConcept

public void removeAllAssociatedConcept()
Overrides:
removeAllAssociatedConcept in class AssociatedConceptList

removeAssociatedConcept

public boolean removeAssociatedConcept(AssociatedConcept vAssociatedConcept)
Description copied from class: AssociatedConceptList
Method removeAssociatedConcept.

Overrides:
removeAssociatedConcept in class AssociatedConceptList
Returns:
true if the object was removed from the collection.

removeAssociatedConceptAt

public AssociatedConcept removeAssociatedConceptAt(int index)
Description copied from class: AssociatedConceptList
Method removeAssociatedConceptAt.

Overrides:
removeAssociatedConceptAt in class AssociatedConceptList
Returns:
the element removed from the collection

setAssociatedConcept

public void setAssociatedConcept(AssociatedConcept[] arg0)
Overrides:
setAssociatedConcept in class AssociatedConceptList

setAssociatedConcept

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

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.