|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.LexGrid.LexBIG.Impl.pagedgraph.query.DefaultGraphQueryBuilder
public class DefaultGraphQueryBuilder
The Class DefaultGraphQueryBuilder.
Nested Class Summary | |
---|---|
static class |
DefaultGraphQueryBuilder.InvalidMatchCodeNamspacePair
|
Field Summary | |
---|---|
static ConceptReference |
INVALID_MATCH_CONCEPT_REFERENCE
|
Constructor Summary | |
---|---|
DefaultGraphQueryBuilder(java.lang.String codingSchemeUri,
java.lang.String version)
Instantiates a new default graph query builder. |
|
DefaultGraphQueryBuilder(java.lang.String codingSchemeUri,
java.lang.String version,
GraphQuery query)
|
Method Summary | |
---|---|
protected java.util.List<ConceptReference> |
getCodesFromCodedNodeSet(CodedNodeSet codes)
|
GraphQuery |
getQuery()
Gets the query. |
void |
restrictToAnonymous(java.lang.Boolean restrictToAnonymous)
|
void |
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. |
void |
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. |
void |
restrictToCodeSystem(java.lang.String codingScheme)
Restrict the graph to codes (source and target) that originate from the supplied code system. |
void |
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. |
void |
restrictToEntityTypes(LocalNameList localNameList)
|
void |
restrictToSourceCodes(CodedNodeSet codes)
Restrict the graph to associations that have one of the codes in the supplied list as source codes. |
void |
restrictToSourceCodeSystem(java.lang.String codingScheme)
Restrict the graph to edges that have codes from the specified code system as a source. |
void |
restrictToTargetCodes(CodedNodeSet codes)
Restrict the graph to associations that have one of the codes in the supplied list as target codes. |
void |
restrictToTargetCodeSystem(java.lang.String codingScheme)
Restrict the graph to edges that have codes from the specified code system as a target. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static ConceptReference INVALID_MATCH_CONCEPT_REFERENCE
Constructor Detail |
---|
public DefaultGraphQueryBuilder(java.lang.String codingSchemeUri, java.lang.String version, GraphQuery query)
public DefaultGraphQueryBuilder(java.lang.String codingSchemeUri, java.lang.String version)
Method Detail |
---|
public GraphQuery getQuery()
GraphQueryBuilder
getQuery
in interface GraphQueryBuilder
public void restrictToAssociations(NameAndValueList association, NameAndValueList associationQualifiers) throws LBInvocationException, LBParameterException
GraphQueryBuilder
restrictToAssociations
in interface GraphQueryBuilder
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
- the LB invocation exception
LBParameterException
- the LB parameter exceptionpublic void restrictToCodeSystem(java.lang.String codingScheme) throws LBInvocationException, LBParameterException
GraphQueryBuilder
restrictToCodeSystem
in interface GraphQueryBuilder
codingScheme
- The local name or URI of the coding scheme to filter on.
LBInvocationException
- the LB invocation exception
LBParameterException
- the LB parameter exceptionpublic void restrictToCodes(CodedNodeSet codes) throws LBInvocationException, LBParameterException
GraphQueryBuilder
restrictToCodes
in interface GraphQueryBuilder
codes
- Codes to filter on.
LBInvocationException
- the LB invocation exception
LBParameterException
- the LB parameter exceptionprotected java.util.List<ConceptReference> getCodesFromCodedNodeSet(CodedNodeSet codes) throws LBInvocationException, LBParameterException
LBInvocationException
LBParameterException
public void restrictToDirectionalNames(NameAndValueList directionalNames, NameAndValueList associationQualifiers) throws LBInvocationException, LBParameterException
GraphQueryBuilder
restrictToDirectionalNames
in interface GraphQueryBuilder
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
- ,LBParameterException
LBParameterException
- the LB parameter exceptionpublic void restrictToSourceCodeSystem(java.lang.String codingScheme) throws LBInvocationException, LBParameterException
GraphQueryBuilder
restrictToSourceCodeSystem
in interface GraphQueryBuilder
codingScheme
- The local name or URI of the coding scheme to filter on.
LBInvocationException
- the LB invocation exception
LBParameterException
- the LB parameter exceptionpublic void restrictToSourceCodes(CodedNodeSet codes) throws LBInvocationException, LBParameterException
GraphQueryBuilder
restrictToSourceCodes
in interface GraphQueryBuilder
codes
- Codes to filter on.
LBInvocationException
- the LB invocation exception
LBParameterException
- the LB parameter exceptionpublic void restrictToTargetCodeSystem(java.lang.String codingScheme) throws LBInvocationException, LBParameterException
GraphQueryBuilder
restrictToTargetCodeSystem
in interface GraphQueryBuilder
codingScheme
- The local name or URI of the coding scheme to filter on.
LBInvocationException
- the LB invocation exception
LBParameterException
- the LB parameter exceptionpublic void restrictToTargetCodes(CodedNodeSet codes) throws LBInvocationException, LBParameterException
GraphQueryBuilder
restrictToTargetCodes
in interface GraphQueryBuilder
codes
- Codes to filter on.
LBInvocationException
- the LB invocation exception
LBParameterException
- the LB parameter exceptionpublic void restrictToAnonymous(java.lang.Boolean restrictToAnonymous) throws LBInvocationException, LBParameterException
restrictToAnonymous
in interface GraphQueryBuilder
LBInvocationException
LBParameterException
public void restrictToEntityTypes(LocalNameList localNameList) throws LBInvocationException, LBParameterException
restrictToEntityTypes
in interface GraphQueryBuilder
LBInvocationException
LBParameterException
|
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. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |