public abstract class AbstractMultiGraph extends AbstractCodedNodeGraph
Constructor and Description |
---|
AbstractMultiGraph() |
AbstractMultiGraph(CodedNodeGraph graph1,
CodedNodeGraph graph2)
Instantiates a new union graph.
|
Modifier and Type | Method and Description |
---|---|
CodedNodeGraph |
getGraph1()
Gets the graph1.
|
CodedNodeGraph |
getGraph2()
Gets the graph2.
|
CodedNodeGraph |
restrictToAnonymous(java.lang.Boolean restrictToAnonymous)
Return a graph that contains only the codes that are either Anonymous,
Non-Anonymous, or Not Specified in the supplied list, and all edges
that still have a source and target code remaining.
|
CodedNodeGraph |
restrictToAssociations(NameAndValueList association,
NameAndValueList associationQualifiers)
Restrict the graph to the nodes that participate as a source or target of
the named association and, if supplied, the named association qualifiers.
|
CodedNodeGraph |
restrictToCodes(CodedNodeSet codes)
Return a graph that contains only the codes that are present in the
supplied list, and all edges that still have a source and target code
remaining.
|
CodedNodeGraph |
restrictToCodeSystem(java.lang.String codingScheme)
Restrict the graph to codes (source and target) that originate
from the supplied code system.
|
CodedNodeGraph |
restrictToDirectionalNames(NameAndValueList directionalNames,
NameAndValueList associationQualifiers)
Restrict the graph to the nodes that participate as a source or target of
an association whose directional name matches the one provided and, if
supplied, the named association qualifiers.
|
CodedNodeGraph |
restrictToEntityTypes(LocalNameList localNameList)
Return a graph that contains only the codes that contain an Entity Type
in the supplied list, and all edges that still have a source and target code
remaining.
|
CodedNodeGraph |
restrictToSourceCodes(CodedNodeSet codes)
Restrict the graph to associations that have one of the codes in the
supplied list as source codes.
|
CodedNodeGraph |
restrictToSourceCodeSystem(java.lang.String codingScheme)
Restrict the graph to edges that have codes from the specified
code system as a source.
|
CodedNodeGraph |
restrictToTargetCodes(CodedNodeSet codes)
Restrict the graph to associations that have one of the codes in the
supplied list as target codes.
|
CodedNodeGraph |
restrictToTargetCodeSystem(java.lang.String codingScheme)
Restrict the graph to edges that have codes from the specified
code system as a target.
|
void |
setGraph1(CodedNodeGraph graph1)
Sets the graph1.
|
void |
setGraph2(CodedNodeGraph graph2)
Sets the graph2.
|
doResolveAsList, getLogger, intersect, isCodeInGraph, listCodeRelationships, resolveAsList, resolveAsList, resolveAsList, union
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
areCodesRelated, listCodeRelationships, toNodeList
public AbstractMultiGraph()
public AbstractMultiGraph(CodedNodeGraph graph1, CodedNodeGraph graph2)
graph1
- the graph1graph2
- the graph2public CodedNodeGraph restrictToAssociations(NameAndValueList association, NameAndValueList associationQualifiers) throws LBInvocationException, LBParameterException
CodedNodeGraph
association
- List of associations used to restrict the graph. The name and
value for each item in the list will be compared against the
id and URI of supported associations for participating
coding schemes.associationQualifiers
- If supplied, restriction only applies to associations that are
qualified by one or more of the supplied qualifiers. The name
and value for each item in the list will be compared against
the id and URI of supported association qualifiers for
participating coding schemes.LBInvocationException
LBParameterException
public CodedNodeGraph restrictToCodeSystem(java.lang.String codingScheme) throws LBInvocationException, LBParameterException
CodedNodeGraph
codingScheme
- The local name or URI of the coding scheme to filter on.LBInvocationException
LBParameterException
public CodedNodeGraph restrictToCodes(CodedNodeSet codes) throws LBInvocationException, LBParameterException
CodedNodeGraph
codes
- Codes to filter on.LBInvocationException
LBParameterException
public CodedNodeGraph restrictToDirectionalNames(NameAndValueList directionalNames, NameAndValueList associationQualifiers) throws LBInvocationException, LBParameterException
CodedNodeGraph
directionalNames
- List of directionalNames used to restrict the graph. A
directional name is compared against the forward and reverse
names for defined associations. If a given name matches more
than one forward or reverse label, all corresponding
associations are included in the restriction.associationQualifiers
- If supplied, restriction only applies to associations that are
qualified by one or more of the supplied qualifiers. The name
and value for each item in the list will be compared against
the id and URI of supported association qualifiers for
participating coding schemes.LBInvocationException
- ,LBParameterExceptionLBParameterException
public CodedNodeGraph restrictToSourceCodeSystem(java.lang.String codingScheme) throws LBInvocationException, LBParameterException
CodedNodeGraph
codingScheme
- The local name or URI of the coding scheme to filter on.LBInvocationException
LBParameterException
public CodedNodeGraph restrictToSourceCodes(CodedNodeSet codes) throws LBInvocationException, LBParameterException
CodedNodeGraph
codes
- Codes to filter on.LBInvocationException
LBParameterException
public CodedNodeGraph restrictToTargetCodeSystem(java.lang.String codingScheme) throws LBInvocationException, LBParameterException
CodedNodeGraph
codingScheme
- The local name or URI of the coding scheme to filter on.LBInvocationException
LBParameterException
public CodedNodeGraph restrictToTargetCodes(CodedNodeSet codes) throws LBInvocationException, LBParameterException
CodedNodeGraph
codes
- Codes to filter on.LBInvocationException
LBParameterException
public CodedNodeGraph restrictToAnonymous(java.lang.Boolean restrictToAnonymous) throws LBInvocationException, LBParameterException
CodedNodeGraph
LBInvocationException
- the LB invocation exceptionLBParameterException
- the LB parameter exceptionpublic CodedNodeGraph restrictToEntityTypes(LocalNameList localNameList) throws LBInvocationException, LBParameterException
CodedNodeGraph
localNameList
- the local name listLBInvocationException
- the LB invocation exceptionLBParameterException
- the LB parameter exceptionpublic CodedNodeGraph getGraph1()
public void setGraph1(CodedNodeGraph graph1)
graph1
- the new graph1public CodedNodeGraph getGraph2()
public void setGraph2(CodedNodeGraph graph2)
graph2
- the new graph2