public class CodedNodeSetBackedMapping extends java.lang.Object implements MappingExtension.Mapping
Modifier and Type | Class and Description |
---|---|
protected class |
CodedNodeSetBackedMapping.RelationshipRestriction |
MappingExtension.Mapping.SearchContext
Constructor and Description |
---|
CodedNodeSetBackedMapping()
Instantiates a new coded node set backed mapping.
|
CodedNodeSetBackedMapping(AbsoluteCodingSchemeVersionReference ref,
java.lang.String relationsContainerName)
Instantiates a new coded node set backed mapping.
|
Modifier and Type | Method and Description |
---|---|
protected CodedNodeGraph |
createCodedNodeGraph() |
protected CodedNodeSet |
createCodedNodeSet() |
protected void |
doRestrict(org.LexGrid.LexBIG.Impl.Extensions.GenericExtensions.mapping.CodedNodeSetBackedMapping.DoRestrict doRestrict,
MappingExtension.Mapping.SearchContext searchContext) |
protected int |
estimateMappingNumber(ResolvedConceptReferencesIterator sourceResolvedConceptReferencesIterator,
ResolvedConceptReferencesIterator targetResolvedConceptReferencesIterator,
ResolvedConceptReferencesIterator sourceAndTargetresolvedConceptReferencesIterator) |
java.lang.String |
getMappingUri()
Gets the mapping uri.
|
java.lang.String |
getMappingVersion()
Gets the mapping version.
|
java.lang.String |
getRelationsContainerName()
Gets the relations container name.
|
protected java.util.List<ConceptReference> |
getRequiredSourcesCodesFromRelationshipRestriction(java.util.List<ConceptReference> targetCodes,
java.util.List<java.lang.String> associations) |
protected void |
processRelationshipRestrictions() |
ResolvedConceptReferencesIterator |
resolveMapping()
Resolve mapping.
|
ResolvedConceptReferencesIterator |
resolveMapping(java.util.List<MappingExtension.MappingSortOption> sortOptionList)
Resolve mapping.
|
MappingExtension.Mapping |
restrictToCodes(ConceptReferenceList codeList,
MappingExtension.Mapping.SearchContext searchContext)
Restrict to codes.
|
MappingExtension.Mapping |
restrictToMatchingDesignations(java.lang.String matchText,
CodedNodeSet.SearchDesignationOption option,
java.lang.String matchAlgorithm,
java.lang.String language,
MappingExtension.Mapping.SearchContext searchContext)
Restrict to matching designations.
|
MappingExtension.Mapping |
restrictToMatchingProperties(LocalNameList propertyNames,
CodedNodeSet.PropertyType[] propertyTypes,
LocalNameList sourceList,
LocalNameList contextList,
NameAndValueList qualifierList,
java.lang.String matchText,
java.lang.String matchAlgorithm,
java.lang.String language,
MappingExtension.Mapping.SearchContext searchContext)
Restrict to matching properties.
|
MappingExtension.Mapping |
restrictToRelationship(java.lang.String matchText,
CodedNodeSet.SearchDesignationOption option,
java.lang.String matchAlgorithm,
java.lang.String language,
LocalNameList relationshipList)
Restrict to relationship.
|
public CodedNodeSetBackedMapping()
public CodedNodeSetBackedMapping(AbsoluteCodingSchemeVersionReference ref, java.lang.String relationsContainerName) throws LBException
codingScheme
- the coding schemecodingSchemeVersionOrTag
- the coding scheme version or tagrelationsContainerName
- the relations container nameLBException
- the LB exceptionpublic ResolvedConceptReferencesIterator resolveMapping() throws LBException
MappingExtension.Mapping
resolveMapping
in interface MappingExtension.Mapping
LBException
- the LB exceptionprotected int estimateMappingNumber(ResolvedConceptReferencesIterator sourceResolvedConceptReferencesIterator, ResolvedConceptReferencesIterator targetResolvedConceptReferencesIterator, ResolvedConceptReferencesIterator sourceAndTargetresolvedConceptReferencesIterator) throws LBResourceUnavailableException
LBResourceUnavailableException
protected void processRelationshipRestrictions() throws LBException
LBException
protected java.util.List<ConceptReference> getRequiredSourcesCodesFromRelationshipRestriction(java.util.List<ConceptReference> targetCodes, java.util.List<java.lang.String> associations)
public ResolvedConceptReferencesIterator resolveMapping(java.util.List<MappingExtension.MappingSortOption> sortOptionList) throws LBException
MappingExtension.Mapping
resolveMapping
in interface MappingExtension.Mapping
sortOptionList
- the sort option listLBException
- the LB exceptionpublic MappingExtension.Mapping restrictToMatchingDesignations(java.lang.String matchText, CodedNodeSet.SearchDesignationOption option, java.lang.String matchAlgorithm, java.lang.String language, MappingExtension.Mapping.SearchContext searchContext) throws LBInvocationException, LBParameterException
MappingExtension.Mapping
restrictToMatchingDesignations
in interface MappingExtension.Mapping
matchText
- the match textoption
- the optionmatchAlgorithm
- the match algorithmslanguage
- the languagesearchContext
- the search contextLBInvocationException
- the LB invocation exceptionLBParameterException
- the LB parameter exceptionpublic MappingExtension.Mapping restrictToMatchingProperties(LocalNameList propertyNames, CodedNodeSet.PropertyType[] propertyTypes, LocalNameList sourceList, LocalNameList contextList, NameAndValueList qualifierList, java.lang.String matchText, java.lang.String matchAlgorithm, java.lang.String language, MappingExtension.Mapping.SearchContext searchContext) throws LBInvocationException, LBParameterException
MappingExtension.Mapping
restrictToMatchingProperties
in interface MappingExtension.Mapping
propertyNames
- the property namespropertyTypes
- the property typessourceList
- the source listcontextList
- the context listqualifierList
- the qualifier listmatchText
- the match textmatchAlgorithm
- the match algorithmlanguage
- the languagesearchContext
- the search contextLBInvocationException
- the LB invocation exceptionLBParameterException
- the LB parameter exceptionpublic MappingExtension.Mapping restrictToCodes(ConceptReferenceList codeList, MappingExtension.Mapping.SearchContext searchContext) throws LBInvocationException, LBParameterException
MappingExtension.Mapping
restrictToCodes
in interface MappingExtension.Mapping
codeList
- the code listsearchContext
- the search contextLBInvocationException
- the LB invocation exceptionLBParameterException
- the LB parameter exceptionpublic MappingExtension.Mapping restrictToRelationship(java.lang.String matchText, CodedNodeSet.SearchDesignationOption option, java.lang.String matchAlgorithm, java.lang.String language, LocalNameList relationshipList) throws LBInvocationException, LBParameterException
MappingExtension.Mapping
restrictToRelationship
in interface MappingExtension.Mapping
matchText
- the match textoption
- the optionmatchAlgorithm
- the match algorithmlanguage
- the languagerelationshipList
- the relationship listLBInvocationException
- the LB invocation exceptionLBParameterException
- the LB parameter exceptionprotected CodedNodeSet createCodedNodeSet() throws LBParameterException
LBParameterException
protected CodedNodeGraph createCodedNodeGraph() throws LBParameterException
LBParameterException
protected void doRestrict(org.LexGrid.LexBIG.Impl.Extensions.GenericExtensions.mapping.CodedNodeSetBackedMapping.DoRestrict doRestrict, MappingExtension.Mapping.SearchContext searchContext) throws LBParameterException, LBInvocationException
public java.lang.String getMappingUri()
public java.lang.String getMappingVersion()
public java.lang.String getRelationsContainerName()