本文整理匯總了Java中org.ihtsdo.otf.tcc.api.spec.ConceptSpec類的典型用法代碼示例。如果您正苦於以下問題:Java ConceptSpec類的具體用法?Java ConceptSpec怎麽用?Java ConceptSpec使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ConceptSpec類屬於org.ihtsdo.otf.tcc.api.spec包,在下文中一共展示了ConceptSpec類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: get
import org.ihtsdo.otf.tcc.api.spec.ConceptSpec; //導入依賴的package包/類
public static JAXBContext get() throws JAXBException {
if (singleton == null) {
singleton = JAXBContext.newInstance(ViewCoordinate.class,
IdentifyAllConflict.class,
LastCommitWins.class,
Where.class,
ForCollection.class,
ConcurrentBitSet.class,
Position.class, LetMap.class,
Path.class, ConceptSpec.class, RelSpec.class,
ResultList.class,
DescriptionChronicleDdo.class,
DescriptionVersionDdo.class,
ConceptChronicleDdo.class,
SimpleDescriptionVersionDdo.class,
SimpleViewCoordinate.class,
SimplePath.class,
SimplePosition.class,
LanguageSortPrefs.class,
ReturnTypes.class);
}
return singleton;
}
示例2: RelRestriction
import org.ihtsdo.otf.tcc.api.spec.ConceptSpec; //導入依賴的package包/類
public RelRestriction(Query enclosingQuery, String relRestrictionSpecKey, String relTypeKey, String sourceSpecKey,
String viewCoordinateKey, String destinationSubsumptionKey, String relTypeSubsumptionKey) {
super(enclosingQuery);
this.enclosingQuery = enclosingQuery;
this.sourceSpecKey = sourceSpecKey;
this.sourceSpec = (ConceptSpec) enclosingQuery.getLetDeclarations().get(sourceSpecKey);
this.relTypeKey = relTypeKey;
this.relType = (ConceptSpec) enclosingQuery.getLetDeclarations().get(relTypeKey);
this.relRestrictionSpecKey = relRestrictionSpecKey;
this.relRestrictionSpec = (ConceptSpec) enclosingQuery.getLetDeclarations().get(relRestrictionSpecKey);
this.viewCoordinateKey = viewCoordinateKey;
this.relTypeSubsumptionKey = relTypeSubsumptionKey;
this.destinationSubsumptionKey = destinationSubsumptionKey;
this.relTypeSubsumption = (Boolean) enclosingQuery.getLetDeclarations().get(relTypeSubsumptionKey);
this.destinationSubsumption = (Boolean) enclosingQuery.getLetDeclarations().get(destinationSubsumptionKey);
}
示例3: buildConceptSpecClassMap
import org.ihtsdo.otf.tcc.api.spec.ConceptSpec; //導入依賴的package包/類
private Map<ConceptSpec, Class> buildConceptSpecClassMap() {
Map<ConceptSpec, Class> m = Maps.newHashMap();
/** TODO (artf231835) - BAC
m.put(FHIMMetadataBinding.FHIM_CODE,
datatypesPkg.createOwnedClass(CODE, false)); // Not abstract.
m.put(FHIMMetadataBinding.FHIM_PHYSICALQUANTITY,
datatypesPkg.createOwnedClass(PHYSICAL_QUANTITY, false)); // Not abstract.
m.put(FHIMMetadataBinding.FHIM_OBSERVATIONQUALIFIER,
clinicalObservationPkg.createOwnedClass(OBSERVATION_QUALIFIER, false)); // Not abstract.
m.put(FHIMMetadataBinding.FHIM_OBSERVATIONSTATEMENT,
clinicalObservationPkg.createOwnedClass(OBSERVATION_STATEMENT, false)); // Not abstract.
m.put(FHIMMetadataBinding.FHIM_PULSEPOSITION,
pulsePkg.createOwnedClass(PULSE_POSITION, false)); // Not abstract.
**/
return m;
}
示例4: addDialect
import org.ihtsdo.otf.tcc.api.spec.ConceptSpec; //導入依賴的package包/類
/**
* Adds a dialect to the <code>initialVariantMap</code>.
*
* @param dialectSpec the <code>ConceptSpec</code> representing the dialect
* concept
* @param viewCoordinate the view coordinate specifying which versions are
* active or inactive
* @param varientsSpec the <code>ConceptSpec</code> representing the dialect
* refex concept
* @param terminologySnapshot the terminologySnapshot to use for getting
* component versions
* @param initialVariantMap the map to udpate
* @throws ContradictionException if more than one version is found for a
* given position or view coordinate
* @throws IOException signals that an I/O exception has occurred
*/
private static void addDialect(ConceptSpec dialectSpec, ViewCoordinate viewCoordinate, ConceptSpec varientsSpec, TerminologySnapshotDI terminologySnapshot,
HashMap<Integer, Map<String, String>> initialVariantMap) throws ContradictionException, IOException
{
ConceptVersionBI dialectC = dialectSpec.getStrict(viewCoordinate);
ConceptVersionBI variantTextRefsetC = varientsSpec.getStrict(viewCoordinate);
Collection<? extends RefexChronicleBI<?>> dialectVarients = variantTextRefsetC.getRefexMembersActive(viewCoordinate);
Map<String, String> variantDialectMap = new HashMap<String, String>();
for (RefexChronicleBI<?> refex : dialectVarients)
{
if (RefexStringVersionBI.class.isAssignableFrom(refex.getClass()))
{
RefexStringVersionBI<?> dialectText = (RefexStringVersionBI<?>) refex.getVersion(viewCoordinate);
if (dialectText != null)
{
RefexStringVersionBI<?> variantText = (RefexStringVersionBI<?>) terminologySnapshot.getComponentVersion(dialectText.getReferencedComponentNid());
variantDialectMap.put(variantText.getString1(), dialectText.getString1());
}
}
}
initialVariantMap.put(dialectC.getNid(), variantDialectMap);
}
示例5: printAllPathsTest
import org.ihtsdo.otf.tcc.api.spec.ConceptSpec; //導入依賴的package包/類
private static void printAllPathsTest() {
Set<Path> allPaths = Bdb.getPathManager().getAll();
for (Path p : allPaths) {
ConceptSpec spec;
try {
spec = p.getConceptSpec();
String s = spec.getDescription();
System.out.println(s);
} catch (IOException e) {
// TODO (artf231874) Auto-generated catch block
e.printStackTrace();
}
}
}
示例6: ConceptIs
import org.ihtsdo.otf.tcc.api.spec.ConceptSpec; //導入依賴的package包/類
public ConceptIs(Query enclosingQuery, String conceptSpec, String viewCoordinateKey) {
super(enclosingQuery);
this.enclosingQuery = enclosingQuery;
this.conceptSpecString = conceptSpec;
this.conceptSpec = (ConceptSpec) enclosingQuery.getLetDeclarations().get(conceptSpecString);
this.viewCoordinateKey = viewCoordinateKey;
}
示例7: ConceptIsDescendentOf
import org.ihtsdo.otf.tcc.api.spec.ConceptSpec; //導入依賴的package包/類
public ConceptIsDescendentOf(Query enclosingQuery, String kindOfSpecKey, String viewCoordinateKey) {
super(enclosingQuery);
this.kindOfSpecKey = kindOfSpecKey;
this.kindOfSpec = (ConceptSpec) enclosingQuery.getLetDeclarations().get(kindOfSpecKey);
this.viewCoordinateKey = viewCoordinateKey;
this.enclosingQuery = enclosingQuery;
}
示例8: RefsetContainsString
import org.ihtsdo.otf.tcc.api.spec.ConceptSpec; //導入依賴的package包/類
public RefsetContainsString(Query enclosingQuery, String refsetSpecKey, String queryText, String viewCoordinateKey) {
super(enclosingQuery);
this.enclosingQuery = enclosingQuery;
this.refsetSpecKey = refsetSpecKey;
this.refsetSpec = (ConceptSpec) this.enclosingQuery.getLetDeclarations().get(refsetSpecKey);
this.queryText = queryText;
this.viewCoordinateKey = viewCoordinateKey;
}
示例9: RefsetContainsConcept
import org.ihtsdo.otf.tcc.api.spec.ConceptSpec; //導入依賴的package包/類
public RefsetContainsConcept(Query enclosingQuery, String refsetSpecKey, String conceptSpecKey, String viewCoordinateKey) {
super(enclosingQuery);
this.enclosingQuery = enclosingQuery;
this.refsetSpecKey = refsetSpecKey;
this.refsetSpec = (ConceptSpec) this.enclosingQuery.getLetDeclarations().get(refsetSpecKey);
this.conceptSpecKey = conceptSpecKey;
this.conceptSpec = (ConceptSpec) this.enclosingQuery.getLetDeclarations().get(conceptSpecKey);
this.viewCoordinateKey = viewCoordinateKey;
}
示例10: ConceptIsChildOf
import org.ihtsdo.otf.tcc.api.spec.ConceptSpec; //導入依賴的package包/類
public ConceptIsChildOf(Query enclosingQuery, String kindOfSpecKey, String viewCoordinateKey) {
super(enclosingQuery);
this.kindOfSpecKey = kindOfSpecKey;
this.kindOfSpec = (ConceptSpec) enclosingQuery.getLetDeclarations().get(kindOfSpecKey);
this.enclosingQuery = enclosingQuery;
this.viewCoordinateKey = viewCoordinateKey;
}
示例11: ConceptIsKindOf
import org.ihtsdo.otf.tcc.api.spec.ConceptSpec; //導入依賴的package包/類
public ConceptIsKindOf(Query enclosingQuery, String kindOfSpecKey, String viewCoordinateKey) {
super(enclosingQuery);
this.kindOfSpecKey = kindOfSpecKey;
this.kindOfSpec = (ConceptSpec) enclosingQuery.getLetDeclarations().get(kindOfSpecKey);
this.viewCoordinateKey = viewCoordinateKey;
this.enclosingQuery = enclosingQuery;
}
示例12: RefsetContainsKindOfConcept
import org.ihtsdo.otf.tcc.api.spec.ConceptSpec; //導入依賴的package包/類
public RefsetContainsKindOfConcept(Query enclosingQuery, String refsetSpecKey, String conceptSpecKey, String viewCoordinateKey) {
super(enclosingQuery);
this.enclosingQuery = enclosingQuery;
this.refsetSpecKey = refsetSpecKey;
this.refsetSpec = (ConceptSpec) this.enclosingQuery.getLetDeclarations().get(refsetSpecKey);
this.conceptSpecKey = conceptSpecKey;
this.conceptSpec = (ConceptSpec) this.enclosingQuery.getLetDeclarations().get(conceptSpecKey);
this.viewCoordinateKey = viewCoordinateKey;
}
示例13: RelType
import org.ihtsdo.otf.tcc.api.spec.ConceptSpec; //導入依賴的package包/類
public RelType(Query enclosingQuery, String relTypeSpecKey, String targetSpecKey, String viewCoordinateKey, Boolean relTypeSubsumption) {
super(enclosingQuery);
this.targetSpecKey = targetSpecKey;
this.targetSpec = (ConceptSpec) enclosingQuery.getLetDeclarations().get(targetSpecKey);
this.viewCoordinateKey = viewCoordinateKey;
this.enclosingQuery = enclosingQuery;
this.relTypeSpecKey = relTypeSpecKey;
this.relType = (ConceptSpec) enclosingQuery.getLetDeclarations().get(relTypeSpecKey);
this.relTypeSubsumption = relTypeSubsumption;
}
示例14: getTypeForModel
import org.ihtsdo.otf.tcc.api.spec.ConceptSpec; //導入依賴的package包/類
private Type getTypeForModel(FHIMInformationModel.Type typeModel) {
Type type = null;
// Try Enumerations first.
type = modelEnumerationMap.get(typeModel);
if (type != null) {
return type;
}
// Try Classes next.
type = modelClassMap.get(typeModel);
if (type != null) {
return type;
}
// Try OTF metadata concept type.
if (typeModel instanceof External) {
ConceptSpec conceptSpec = ((External) typeModel).getConceptSpec();
type = conceptSpecClassMap.get(conceptSpec);
if (type != null) {
return type;
}
}
// Something wrong!
throw new IllegalArgumentException("Could not find type for '" + typeModel + "'");
}
示例15: getRefsetView
import org.ihtsdo.otf.tcc.api.spec.ConceptSpec; //導入依賴的package包/類
private Region getRefsetView(ConceptSpec refset)
{
RefsetView rv = new RefsetView();
rv.setViewActiveOnly(activeOnly.isSelected());
rv.setRefsetAndComponent(refset.getUuids()[0], conceptUUID);
Region r = rv.getView();
r.getStyleClass().add("itemBorder");
r.setPrefHeight(300);
r.prefWidthProperty().bind(root.widthProperty().subtract(20));
return r;
}