org.LexGrid.LexBIG.Impl.pagedgraph.builder
Class AssociationListBuilder

java.lang.Object
  extended by org.LexGrid.LexBIG.Impl.pagedgraph.builder.AssociationListBuilder
All Implemented Interfaces:
java.io.Serializable

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

The Class AssociationListBuilder.

Author:
Kevin Peterson
See Also:
Serialized Form

Nested Class Summary
static class AssociationListBuilder.AssociationDirection
          The Enum AssociationDirection.
 
Constructor Summary
AssociationListBuilder()
           
 
Method Summary
 AssociationList buildSourceOfAssociationList(java.lang.String codingSchemeUri, java.lang.String version, java.lang.String entityCode, java.lang.String entityCodeNamespace, java.lang.String relationsContainerName, boolean resolveForward, boolean resolveBackward, int resolveForwardAssociationDepth, int resolveBackwardAssociationDepth, int resolveCodedEntryDepth, GraphQuery graphQuery, LocalNameList propertyNames, CodedNodeSet.PropertyType[] propertyTypes, SortOptionList sortAlgorithms, LocalNameList filterOptions, CycleDetectingCallback cycleDetectingCallback)
          Builds the source of association list.
 AssociationList buildTargetOfAssociationList(java.lang.String codingSchemeUri, java.lang.String version, java.lang.String entityCode, java.lang.String entityCodeNamespace, java.lang.String relationsContainerName, boolean resolveForward, boolean resolveBackward, int resolveForwardAssociationDepth, int resolveBackwardAssociationDepth, int resolveCodedEntryDepth, GraphQuery graphQuery, LocalNameList propertyNames, CodedNodeSet.PropertyType[] propertyTypes, SortOptionList sortAlgorithms, LocalNameList filterOptions, CycleDetectingCallback cycleDetectingCallback)
          Builds the target of association list.
protected  AssociationList doBuildAssociationList(java.lang.String codingSchemeUri, java.lang.String version, java.lang.String entityCode, java.lang.String entityCodeNamespace, java.lang.String relationsContainerName, 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)
          Do build association list.
protected  java.util.List<java.lang.String> getAssociationPredicateNames(java.lang.String codingSchemeUri, java.lang.String codingSchemeVersion, java.lang.String relationsContainerName)
          Gets the association predicate names.
protected  java.util.List<java.lang.String> getRelationContainers(java.lang.String codingSchemeUri, java.lang.String codingSchemeVersion, java.lang.String relationContainer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssociationListBuilder

public AssociationListBuilder()
Method Detail

buildSourceOfAssociationList

public AssociationList buildSourceOfAssociationList(java.lang.String codingSchemeUri,
                                                    java.lang.String version,
                                                    java.lang.String entityCode,
                                                    java.lang.String entityCodeNamespace,
                                                    java.lang.String relationsContainerName,
                                                    boolean resolveForward,
                                                    boolean resolveBackward,
                                                    int resolveForwardAssociationDepth,
                                                    int resolveBackwardAssociationDepth,
                                                    int resolveCodedEntryDepth,
                                                    GraphQuery graphQuery,
                                                    LocalNameList propertyNames,
                                                    CodedNodeSet.PropertyType[] propertyTypes,
                                                    SortOptionList sortAlgorithms,
                                                    LocalNameList filterOptions,
                                                    CycleDetectingCallback cycleDetectingCallback)
Builds the source of association list.

Parameters:
codingSchemeUri - the coding scheme uri
version - the version
entityCode - the entity code
entityCodeNamespace - the entity code namespace
relationsContainerName - the relations container 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
Returns:
the association list

buildTargetOfAssociationList

public AssociationList buildTargetOfAssociationList(java.lang.String codingSchemeUri,
                                                    java.lang.String version,
                                                    java.lang.String entityCode,
                                                    java.lang.String entityCodeNamespace,
                                                    java.lang.String relationsContainerName,
                                                    boolean resolveForward,
                                                    boolean resolveBackward,
                                                    int resolveForwardAssociationDepth,
                                                    int resolveBackwardAssociationDepth,
                                                    int resolveCodedEntryDepth,
                                                    GraphQuery graphQuery,
                                                    LocalNameList propertyNames,
                                                    CodedNodeSet.PropertyType[] propertyTypes,
                                                    SortOptionList sortAlgorithms,
                                                    LocalNameList filterOptions,
                                                    CycleDetectingCallback cycleDetectingCallback)
Builds the target of association list.

Parameters:
codingSchemeUri - the coding scheme uri
version - the version
entityCode - the entity code
entityCodeNamespace - the entity code namespace
relationsContainerName - the relations container 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
cycleDetectingCallback - the cycle detecting callback
Returns:
the association list

doBuildAssociationList

protected AssociationList doBuildAssociationList(java.lang.String codingSchemeUri,
                                                 java.lang.String version,
                                                 java.lang.String entityCode,
                                                 java.lang.String entityCodeNamespace,
                                                 java.lang.String relationsContainerName,
                                                 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)
Do build association list.

Parameters:
codingSchemeUri - the coding scheme uri
version - the version
entityCode - the entity code
entityCodeNamespace - the entity code namespace
direction - the direction
relationsContainerName - the relations container 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
Returns:
the association list

getRelationContainers

protected java.util.List<java.lang.String> getRelationContainers(java.lang.String codingSchemeUri,
                                                                 java.lang.String codingSchemeVersion,
                                                                 java.lang.String relationContainer)

getAssociationPredicateNames

protected java.util.List<java.lang.String> getAssociationPredicateNames(java.lang.String codingSchemeUri,
                                                                        java.lang.String codingSchemeVersion,
                                                                        java.lang.String relationsContainerName)
Gets the association predicate names.

Parameters:
codingSchemeUri - the coding scheme uri
codingSchemeVersion - the coding scheme version
Returns:
the association predicate names

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.