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

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

public class LazyLoadableResolvedConceptReferenceList
extends ResolvedConceptReferenceList

The Class LazyLoadableAssociatedConceptList.

Author:
Kevin Peterson
See Also:
Serialized Form

Nested Class Summary
static class LazyLoadableResolvedConceptReferenceList.RootResolvedConceptReferenceIterator
           
 
Constructor Summary
LazyLoadableResolvedConceptReferenceList()
           
LazyLoadableResolvedConceptReferenceList(ValidatedParameterResolvingCallback validatedParameterResolvingCallback, java.lang.String codingSchemeUri, java.lang.String codingSchemeVersion, java.lang.String relationsContainerName, boolean resolveForward, boolean resolveBackward, int resolveAssociationDepth, int resolveCodedEntryDepth, boolean keepLastAssociationLevelUnresolved, GraphQuery graphQuery, LocalNameList propertyNames, CodedNodeSet.PropertyType[] propertyTypes, SortOptionList sortAlgorithms, LocalNameList filterOptions, CycleDetectingCallback cycleDetectingCallback, PagingCodedNodeGraphImpl.ArtificialRootResolvePolicy artificialRootResolvePolicy, int maxToReturn)
          Instantiates a new lazy loadable associated concept list.
 
Method Summary
 void addResolvedConceptReference(int index, ResolvedConceptReference vResolvedConceptReference)
           
 void addResolvedConceptReference(ResolvedConceptReference vResolvedConceptReference)
           
 java.util.Enumeration<ResolvedConceptReference> enumerateResolvedConceptReference()
          Method enumerateResolvedConceptReference.
 ResolvedConceptReference[] getResolvedConceptReference()
          Method getResolvedConceptReference.Returns the contents of the collection in an Array.
 ResolvedConceptReference getResolvedConceptReference(int index)
          Method getResolvedConceptReference.
 int getResolvedConceptReferenceCount()
          Method getResolvedConceptReferenceCount.
 java.util.Iterator<ResolvedConceptReference> iterateResolvedConceptReference()
          Method iterateResolvedConceptReference.
 void removeAllResolvedConceptReference()
           
 boolean removeResolvedConceptReference(ResolvedConceptReference vResolvedConceptReference)
          Method removeResolvedConceptReference.
 ResolvedConceptReference removeResolvedConceptReferenceAt(int index)
          Method removeResolvedConceptReferenceAt.
 void setResolvedConceptReference(int index, ResolvedConceptReference vResolvedConceptReference)
           
 void setResolvedConceptReference(ResolvedConceptReference[] arg0)
           
 
Methods inherited from class org.LexGrid.LexBIG.DataModel.Collections.ResolvedConceptReferenceList
getIncomplete, isIncomplete, setIncomplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyLoadableResolvedConceptReferenceList

public LazyLoadableResolvedConceptReferenceList()

LazyLoadableResolvedConceptReferenceList

public LazyLoadableResolvedConceptReferenceList(ValidatedParameterResolvingCallback validatedParameterResolvingCallback,
                                                java.lang.String codingSchemeUri,
                                                java.lang.String codingSchemeVersion,
                                                java.lang.String relationsContainerName,
                                                boolean resolveForward,
                                                boolean resolveBackward,
                                                int resolveAssociationDepth,
                                                int resolveCodedEntryDepth,
                                                boolean keepLastAssociationLevelUnresolved,
                                                GraphQuery graphQuery,
                                                LocalNameList propertyNames,
                                                CodedNodeSet.PropertyType[] propertyTypes,
                                                SortOptionList sortAlgorithms,
                                                LocalNameList filterOptions,
                                                CycleDetectingCallback cycleDetectingCallback,
                                                PagingCodedNodeGraphImpl.ArtificialRootResolvePolicy artificialRootResolvePolicy,
                                                int maxToReturn)
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

addResolvedConceptReference

public void addResolvedConceptReference(ResolvedConceptReference vResolvedConceptReference)
                                 throws java.lang.IndexOutOfBoundsException
Overrides:
addResolvedConceptReference in class ResolvedConceptReferenceList
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addResolvedConceptReference

public void addResolvedConceptReference(int index,
                                        ResolvedConceptReference vResolvedConceptReference)
                                 throws java.lang.IndexOutOfBoundsException
Overrides:
addResolvedConceptReference in class ResolvedConceptReferenceList
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

enumerateResolvedConceptReference

public java.util.Enumeration<ResolvedConceptReference> enumerateResolvedConceptReference()
Description copied from class: ResolvedConceptReferenceList
Method enumerateResolvedConceptReference.

Overrides:
enumerateResolvedConceptReference in class ResolvedConceptReferenceList
Returns:
an Enumeration over all possible elements of this collection

getResolvedConceptReference

public ResolvedConceptReference[] getResolvedConceptReference()
Description copied from class: ResolvedConceptReferenceList
Method getResolvedConceptReference.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:
getResolvedConceptReference in class ResolvedConceptReferenceList
Returns:
this collection as an Array

getResolvedConceptReference

public ResolvedConceptReference getResolvedConceptReference(int index)
                                                     throws java.lang.IndexOutOfBoundsException
Description copied from class: ResolvedConceptReferenceList
Method getResolvedConceptReference.

Overrides:
getResolvedConceptReference in class ResolvedConceptReferenceList
Returns:
the value of the org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference at the given index
Throws:
java.lang.IndexOutOfBoundsException - if the index given is outside the bounds of the collection

getResolvedConceptReferenceCount

public int getResolvedConceptReferenceCount()
Description copied from class: ResolvedConceptReferenceList
Method getResolvedConceptReferenceCount.

Overrides:
getResolvedConceptReferenceCount in class ResolvedConceptReferenceList
Returns:
the size of this collection

iterateResolvedConceptReference

public java.util.Iterator<ResolvedConceptReference> iterateResolvedConceptReference()
Description copied from class: ResolvedConceptReferenceList
Method iterateResolvedConceptReference.

Overrides:
iterateResolvedConceptReference in class ResolvedConceptReferenceList
Returns:
an Iterator over all possible elements in this collection

removeAllResolvedConceptReference

public void removeAllResolvedConceptReference()
Overrides:
removeAllResolvedConceptReference in class ResolvedConceptReferenceList

removeResolvedConceptReference

public boolean removeResolvedConceptReference(ResolvedConceptReference vResolvedConceptReference)
Description copied from class: ResolvedConceptReferenceList
Method removeResolvedConceptReference.

Overrides:
removeResolvedConceptReference in class ResolvedConceptReferenceList
Returns:
true if the object was removed from the collection.

removeResolvedConceptReferenceAt

public ResolvedConceptReference removeResolvedConceptReferenceAt(int index)
Description copied from class: ResolvedConceptReferenceList
Method removeResolvedConceptReferenceAt.

Overrides:
removeResolvedConceptReferenceAt in class ResolvedConceptReferenceList
Returns:
the element removed from the collection

setResolvedConceptReference

public void setResolvedConceptReference(ResolvedConceptReference[] arg0)
Overrides:
setResolvedConceptReference in class ResolvedConceptReferenceList

setResolvedConceptReference

public void setResolvedConceptReference(int index,
                                        ResolvedConceptReference vResolvedConceptReference)
                                 throws java.lang.IndexOutOfBoundsException
Overrides:
setResolvedConceptReference in class ResolvedConceptReferenceList
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.