diff --git a/.gitignore b/.gitignore
index 583ed67ce2..1412192e2c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,60 @@ bin
classes/
.metadata/
.DS_Store
+.settings/
+abstract-rrf-loader/.settings/
+cts2-model/.settings/
+cts2Impl/.settings/
+graph-loader/.settings/
+lbAdmin/.settings/
+lbExamples/.settings/
+lbGUI/.settings/
+lbImpl/.settings/
+lbIndex/.settings/
+lbInterfaces/.settings/
+lbModel/.settings/
+lbPackager/.settings/
+lbTest/.settings/
+lexevs-dao/.settings/
+lexevs-graph-dao/.settings/
+lexrdf/.settings/
+lgConverter/.settings/
+lgModel/.settings/
+lgResourceReader/.settings/
+lgSharedLibraries/.settings/
+lgUtil/.settings/
+lgValueSets/.settings/
+loader-framework/.settings/
+loader-framework-core/.settings/
+meta-loader/.settings/
+ndfrt-loader/.settings/
+rxnorm-loader/.settings/
+umls-loader/.settings/
+
+*.prefs
+
+graph-loader/.settings/org.eclipse.jdt.core.prefs
+
+Indexer/.settings/org.eclipse.jdt.core.prefs
+
+lbAdmin/.settings/org.eclipse.jdt.core.prefs
+
+lbExamples/.settings/org.eclipse.jdt.core.prefs
+
+lbGUI/.settings/org.eclipse.jdt.core.prefs
+
+lbImpl/.settings/org.eclipse.jdt.core.prefs
+
+lbInterfaces/.settings/org.eclipse.jdt.core.prefs
+
+lbModel/.settings/org.eclipse.jdt.core.prefs
+
+lbPackager/.settings/org.eclipse.jdt.core.prefs
+
+lexrdf/.settings/org.eclipse.jdt.core.prefs
+
+lgConverter/.settings/org.eclipse.jdt.core.prefs
+
+lgResourceReader/.settings/org.eclipse.jdt.core.prefs
+
+lgUtil/.settings/org.eclipse.jdt.core.prefs
diff --git a/README.md b/README.md
index 9ad706b70c..2922e66f08 100644
--- a/README.md
+++ b/README.md
@@ -15,7 +15,7 @@ Please see the NOTICE and LICENSE files for details.
You will find more details about LexEVS in the following links:
* [LexEVS Home](https://wiki.nci.nih.gov/x/OJG4Aw)
-* [Public Forum](https://cabig-kc.nci.nih.gov/Vocab/forums/viewforum.php?f=13)
+* [Public Forum](https://github.com/lexevs/lexevs/issues)
* [Issues Tracker](https://tracker.nci.nih.gov/browse/LEXEVS)
* [Documentation](https://wiki.nci.nih.gov/x/OJG4Aw)
* [Source code](https://github.com/NCIP/LexEVS)
diff --git a/cts2-model/.classpath b/cts2-model/.classpath
deleted file mode 100644
index bfaf51ea79..0000000000
--- a/cts2-model/.classpath
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/cts2-model/.gitignore b/cts2-model/.gitignore
deleted file mode 100644
index 690dcea017..0000000000
--- a/cts2-model/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/Castor
diff --git a/cts2-model/.project b/cts2-model/.project
deleted file mode 100644
index b1bc33dd02..0000000000
--- a/cts2-model/.project
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
- cts2-model
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
-
- org.eclipse.jdt.core.javanature
- org.apache.ivyde.eclipse.ivynature
-
-
diff --git a/cts2-model/binding.xml b/cts2-model/binding.xml
deleted file mode 100644
index d5b7153698..0000000000
--- a/cts2-model/binding.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/cts2-model/build.properties b/cts2-model/build.properties
deleted file mode 100755
index 09ba3dfd6b..0000000000
--- a/cts2-model/build.properties
+++ /dev/null
@@ -1,4 +0,0 @@
-#Generated by Maven Ant Plugin - DO NOT EDIT THIS FILE!
-#Mon Aug 31 13:56:58 CDT 2009
-lbPackager.dir=../lbPackager
-
diff --git a/cts2-model/build.xml b/cts2-model/build.xml
deleted file mode 100755
index bb61b620ac..0000000000
--- a/cts2-model/build.xml
+++ /dev/null
@@ -1,277 +0,0 @@
-
-
- Buildfile for the Castor Rendering of the LexBIG data model
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generate Castor Java
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Generating Castor Java from Schema ${xsdFile} from ${xsd.url}/${type}/${xsdFile}.xsd
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/cts2-model/castorbuilder.properties b/cts2-model/castorbuilder.properties
deleted file mode 100755
index c0a7fd0561..0000000000
--- a/cts2-model/castorbuilder.properties
+++ /dev/null
@@ -1,42 +0,0 @@
-org.exolab.castor.builder.javaclassmapping=type
-#Forces the code generator to create 'old' Java 1.4 enumeration classes even in Java 5 mode.
-org.exolab.castor.builder.forceJava4Enums=false
-org.exolab.castor.builder.enumTypeAccessInterface=false
-# Use the primitive wrappers
-org.exolab.castor.builder.primitivetowrapper=true
-# This property specifies whether the sources generated
-# should comply with java 1.4 or 5.0; defaults to 1.4
-org.exolab.castor.builder.javaVersion=5.0
-# XML namespace mapping to Java packages
-#
-org.exolab.castor.builder.jclassPrinterFactories=\
- org.exolab.castor.builder.printing.TemplateJClassPrinterFactory,\
- org.exolab.castor.builder.printing.StandardJClassPrinterFactory,\
- org.cts2.castor.printer.JClassModifyingWriterJClassPrinterFactory
-#
-org.exolab.castor.builder.nspackages=\
- http://cts2.org/schema/2010/01/Association=org.cts2.association,\
- http://cts2.org/schema/2010/01/CodeSystem=org.cts2.codesystem,\
- http://cts2.org/schema/2010/01/CodeSystemVersion=org.cts2.codesystemversion,\
- http://cts2.org/schema/2010/01/ConceptDomain=org.cts2.conceptdomain,\
- http://cts2.org/schema/2010/01/Core=org.cts2.core,\
- http://cts2.org/schema/2010/01/Entity=org.cts2.entity,\
- http://cts2.org/schema/2010/01/Map=org.cts2.map,\
- http://cts2.org/schema/2010/01/ValueSet=org.cts2.valueset,\
- http://cts2.org/schema/2010/01/ValueSetResolution=org.cts2.valuesetresolution,\
- http://cts2.org/schema/2010/01/Updates=org.cts2.updates,\
- \
- http://cts2.org/schema/2010/01/AssociationServices=org.cts2.service.association,\
- http://cts2.org/schema/2010/01/CodeSystemServices=org.cts2.service.codesystem,\
- http://cts2.org/schema/2010/01/CodeSystemVersionServices=org.cts2.service.codesystemversion,\
- http://cts2.org/schema/2010/01/ConceptDomainServices=org.cts2.service.conceptdomain,\
- http://cts2.org/schema/2010/01/CoreService=org.cts2.service.core,\
- http://cts2.org/schema/2010/01/EntityDescriptionServices=org.cts2.service.entitydescription,\
- http://cts2.org/schema/2010/01/MapServices=org.cts2.service.map,\
- http://cts2.org/schema/2010/01/MapVersionServices=org.cts2.service.mapversion,\
- http://cts2.org/schema/2010/01/StatementServices=org.cts2.service.statement,\
- http://cts2.org/schema/2010/01/ValueSetDefinitionServices=org.cts2.service.valuesetdefinition,\
- http://cts2.org/schema/2010/01/ValueSetRuleResolutionServices=org.cts2.service.valuesetruleresolution,\
- http://cts2.org/schema/2010/01/ValueSetServices=org.cts2.service.valueset
-
-
\ No newline at end of file
diff --git a/cts2-model/ivy.xml b/cts2-model/ivy.xml
deleted file mode 100755
index 3d60bd6be5..0000000000
--- a/cts2-model/ivy.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/cts2-model/src/castor/java/org/cts2/castor/fieldhandler/DirectoryURIFieldHandler.java b/cts2-model/src/castor/java/org/cts2/castor/fieldhandler/DirectoryURIFieldHandler.java
deleted file mode 100644
index 5cabfe584c..0000000000
--- a/cts2-model/src/castor/java/org/cts2/castor/fieldhandler/DirectoryURIFieldHandler.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.castor.fieldhandler;
-import org.cts2.uri.DirectoryURI;
-import org.exolab.castor.mapping.GeneralizedFieldHandler;
-
-
-/**
- * The Class DirectoryURIFieldHandler.
- *
- * @author Kevin Peterson
- */
-public class DirectoryURIFieldHandler extends GeneralizedFieldHandler {
-
- /* (non-Javadoc)
- * @see org.exolab.castor.mapping.GeneralizedFieldHandler#convertUponGet(java.lang.Object)
- */
- @Override
- public Object convertUponGet(Object directoryURI) {
- if(directoryURI == null){
- return null;
- }
-
- DirectoryURI uri = (DirectoryURI)directoryURI;
-
- return uri.marshall();
- }
-
- /* (non-Javadoc)
- * @see org.exolab.castor.mapping.GeneralizedFieldHandler#convertUponSet(java.lang.Object)
- */
- @Override
- public Object convertUponSet(Object arg0) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /* (non-Javadoc)
- * @see org.exolab.castor.mapping.GeneralizedFieldHandler#getFieldType()
- */
- @Override
- public Class> getFieldType() {
- return DirectoryURI.class;
- }
-}
diff --git a/cts2-model/src/castor/java/org/cts2/castor/printer/JClassModifier.java b/cts2-model/src/castor/java/org/cts2/castor/printer/JClassModifier.java
deleted file mode 100644
index 60344b72f4..0000000000
--- a/cts2-model/src/castor/java/org/cts2/castor/printer/JClassModifier.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.castor.printer;
-
-import org.exolab.javasource.JClass;
-
-/**
- * The Interface JClassModifier.
- *
- * @author Kevin Peterson
- */
-public interface JClassModifier {
-
- /**
- * Modify j class.
- *
- * @param jClass the j class
- * @param outputDir the output dir
- * @param lineSeparator the line separator
- * @param header the header
- */
- public void prePrintModifyJClass(JClass jClass, String outputDir, String lineSeparator, String header);
-
- /**
- * Post print modify j class.
- *
- * @param jClass the j class
- * @param outputDir the output dir
- * @param lineSeparator the line separator
- * @param header the header
- */
- public void postPrintModifyJClass(JClass jClass, String outputDir, String lineSeparator, String header);
-
- /**
- * Checks if is match.
- *
- * @param jClass the j class
- * @return true, if is match
- */
- public boolean isMatch(JClass jClass);
-}
diff --git a/cts2-model/src/castor/java/org/cts2/castor/printer/JClassModifyingWriterJClassPrinter.java b/cts2-model/src/castor/java/org/cts2/castor/printer/JClassModifyingWriterJClassPrinter.java
deleted file mode 100644
index 82dbe6a131..0000000000
--- a/cts2-model/src/castor/java/org/cts2/castor/printer/JClassModifyingWriterJClassPrinter.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.castor.printer;
-
-import java.util.HashSet;
-import java.util.Set;
-
-import org.cts2.castor.printer.modifiers.AssociationModifier;
-import org.cts2.castor.printer.modifiers.ChangeableResourceInterfaceAdder;
-import org.cts2.castor.printer.modifiers.DirectorySubclassesModifier;
-import org.cts2.castor.printer.modifiers.DirectoryURIMethodAddingModifier;
-import org.cts2.castor.printer.modifiers.ResourceDescriptionModifier;
-import org.cts2.castor.printer.modifiers.ValueSetResolutionRuleModifier;
-import org.exolab.castor.builder.printing.WriterJClassPrinter;
-import org.exolab.javasource.JClass;
-
-/**
- * The Class JClassModifyingWriterJClassPrinter.
- *
- * @author Kevin Peterson
- */
-public class JClassModifyingWriterJClassPrinter extends WriterJClassPrinter {
-
- /** The modifier map. */
- private Set modifierMap = new HashSet();
- {
- modifierMap.add(new DirectoryURIMethodAddingModifier());
- modifierMap.add(new DirectorySubclassesModifier());
- modifierMap.add(new ChangeableResourceInterfaceAdder());
- modifierMap.add(new ResourceDescriptionModifier());
- modifierMap.add(new ValueSetResolutionRuleModifier());
- modifierMap.add(new AssociationModifier());
- }
-
- /* (non-Javadoc)
- * @see org.exolab.castor.builder.printing.WriterJClassPrinter#printClass(org.exolab.javasource.JClass, java.lang.String, java.lang.String, java.lang.String)
- */
- public void printClass(JClass jClass, String outputDir,
- String lineSeparator, String header) {
-
- for(JClassModifier modifier : this.modifierMap){
- if(modifier.isMatch(jClass)){
- modifier.prePrintModifyJClass(jClass, outputDir,
- lineSeparator, header);
- }
- }
-
- super.printClass(jClass, outputDir, lineSeparator, header);
-
- for(JClassModifier modifier : this.modifierMap){
- if(modifier.isMatch(jClass)){
- modifier.postPrintModifyJClass(jClass, outputDir,
- lineSeparator, header);
- }
- }
- }
-}
diff --git a/cts2-model/src/castor/java/org/cts2/castor/printer/JClassModifyingWriterJClassPrinterFactory.java b/cts2-model/src/castor/java/org/cts2/castor/printer/JClassModifyingWriterJClassPrinterFactory.java
deleted file mode 100644
index 2d7a0c3d84..0000000000
--- a/cts2-model/src/castor/java/org/cts2/castor/printer/JClassModifyingWriterJClassPrinterFactory.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright 2005-2008 Werner Guttmann
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.cts2.castor.printer;
-
-import org.exolab.castor.builder.printing.JClassPrinter;
-import org.exolab.castor.builder.printing.JClassPrinterFactory;
-
-/**
- * A factory for creating JClassModifyingWriterJClassPrinter objects.
- */
-public class JClassModifyingWriterJClassPrinterFactory implements JClassPrinterFactory {
-
- /**
- * The name of the factory.
- */
- private static final String NAME = "modifying-writer";
-
- /**
- * Gets the j class printer.
- *
- * @return the j class printer
- * {@inheritDoc}
- * @see org.exolab.castor.builder.printing.JClassPrinterFactory#getJClassPrinter()
- */
- public JClassPrinter getJClassPrinter() {
- return new JClassModifyingWriterJClassPrinter();
- }
-
- /**
- * Gets the name.
- *
- * @return the name
- * {@inheritDoc}
- * @see org.exolab.castor.builder.printing.JClassPrinterFactory#getName()
- */
- public String getName() {
- return NAME;
- }
-}
diff --git a/cts2-model/src/castor/java/org/cts2/castor/printer/modifiers/AssociationModifier.java b/cts2-model/src/castor/java/org/cts2/castor/printer/modifiers/AssociationModifier.java
deleted file mode 100644
index 074df730c1..0000000000
--- a/cts2-model/src/castor/java/org/cts2/castor/printer/modifiers/AssociationModifier.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.castor.printer.modifiers;
-
-import org.cts2.castor.printer.JClassModifier;
-import org.exolab.javasource.JClass;
-import org.exolab.javasource.JMethod;
-import org.exolab.javasource.JType;
-
-/**
- * The Class AssociationModifier.
- *
- * @author Kevin Peterson
- */
-public class AssociationModifier implements JClassModifier {
-
- /* (non-Javadoc)
- * @see org.cts2.castor.printer.JClassModifier#prePrintModifyJClass(org.exolab.javasource.JClass, java.lang.String, java.lang.String, java.lang.String)
- */
- @Override
- public void prePrintModifyJClass(
- JClass jClass,
- String outputDir,
- String lineSeparator,
- String header) {
- JType jtype = new SimpleJType("java.lang.String");
- JMethod method = new JMethod("getEntryID", jtype, null);
- method.setSourceCode("return this.getExternalStatementId();");
-
- jClass.addMethod(method);
- }
-
- /* (non-Javadoc)
- * @see org.cts2.castor.printer.JClassModifier#postPrintModifyJClass(org.exolab.javasource.JClass, java.lang.String, java.lang.String, java.lang.String)
- */
- @Override
- public void postPrintModifyJClass(JClass jClass, String outputDir,
- String lineSeparator, String header) {
- //
- }
-
- /* (non-Javadoc)
- * @see org.cts2.castor.printer.JClassModifier#isMatch(org.exolab.javasource.JClass)
- */
- @Override
- public boolean isMatch(JClass jClass) {
- return jClass.getName().equals("org.cts2.association.Association");
- }
-}
diff --git a/cts2-model/src/castor/java/org/cts2/castor/printer/modifiers/ChangeableResourceInterfaceAdder.java b/cts2-model/src/castor/java/org/cts2/castor/printer/modifiers/ChangeableResourceInterfaceAdder.java
deleted file mode 100644
index 6d2eab0841..0000000000
--- a/cts2-model/src/castor/java/org/cts2/castor/printer/modifiers/ChangeableResourceInterfaceAdder.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.castor.printer.modifiers;
-
-import org.cts2.castor.printer.JClassModifier;
-import org.exolab.javasource.JClass;
-
-/**
- * The Class ChangeableResourceInterfaceAdder.
- *
- * @author Kevin Peterson
- */
-public class ChangeableResourceInterfaceAdder implements JClassModifier {
-
- /* (non-Javadoc)
- * @see org.cts2.castor.printer.JClassModifier#prePrintModifyJClass(org.exolab.javasource.JClass, java.lang.String, java.lang.String, java.lang.String)
- */
- @Override
- public void prePrintModifyJClass(
- JClass jClass,
- String outputDir,
- String lineSeparator,
- String header) {
- jClass.addInterface("org.cts2.core.ChangeableResource");
- }
-
- /* (non-Javadoc)
- * @see org.cts2.castor.printer.JClassModifier#postPrintModifyJClass(org.exolab.javasource.JClass, java.lang.String, java.lang.String, java.lang.String)
- */
- @Override
- public void postPrintModifyJClass(JClass jClass, String outputDir,
- String lineSeparator, String header) {
- //
- }
-
- /* (non-Javadoc)
- * @see org.cts2.castor.printer.JClassModifier#isMatch(org.exolab.javasource.JClass)
- */
- @Override
- public boolean isMatch(JClass jClass) {
- return jClass.getName().equals("org.cts2.core.Changeable");
- }
-
-}
diff --git a/cts2-model/src/castor/java/org/cts2/castor/printer/modifiers/DirectorySubclassesModifier.java b/cts2-model/src/castor/java/org/cts2/castor/printer/modifiers/DirectorySubclassesModifier.java
deleted file mode 100644
index 74974870c7..0000000000
--- a/cts2-model/src/castor/java/org/cts2/castor/printer/modifiers/DirectorySubclassesModifier.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.castor.printer.modifiers;
-
-import org.apache.commons.lang.StringUtils;
-import org.cts2.castor.printer.JClassModifier;
-import org.exolab.javasource.JClass;
-import org.exolab.javasource.JField;
-import org.exolab.javasource.JType;
-
-/**
- * The Class DirectoryURIMethodAddingModifier.
- *
- * @author Kevin Peterson
- */
-public class DirectorySubclassesModifier implements JClassModifier{
-
- /** The Constant DIRECTORY_QUALIFIED_NAME. */
- private static final String DIRECTORY_QUALIFIED_NAME = "org.cts2.core.Directory";
-
- /** The Constant DIRECTORYURI_PACKAGE. */
- private static final String DIRECTORYURI_PACKAGE = "org.cts2.uri";
-
- /** The Constant DIRECTORYURI_SUFFIX. */
- private static final String DIRECTORYURI_SUFFIX = "URI";
-
- /** The Constant GENERIC_REGEX. */
- private static final String GENERIC_REGEX = "<.*>$";
-
- /** The Constant LIST_REGEX. */
- private static final String LIST_REGEX = "List$";
-
- /** The Constant DIRECTORY_SUFFIX. */
- private static final String DIRECTORY_SUFFIX = "Directory";
-
- /* (non-Javadoc)
- * @see org.cts2.castor.printer.JClassModifier#prePrintModifyJClass(org.exolab.javasource.JClass, java.lang.String, java.lang.String, java.lang.String)
- */
- @Override
- public void prePrintModifyJClass(JClass jClass, String outputDir,
- String lineSeparator, String header) {
- jClass.setSuperClass(jClass.getSuperClassQualifiedName() + "<" + DIRECTORYURI_PACKAGE + "." + jClass.getLocalName().replaceAll(LIST_REGEX, DIRECTORY_SUFFIX) + DIRECTORYURI_SUFFIX + ">");
- }
-
- /**
- * Adjust field.
- *
- * @param jClass the j class
- * @param name the name
- * @param type the type
- */
- protected void adjustField(JClass jClass, String name, JType type){
- jClass.removeField(jClass.getField(name));
- jClass.addField(new JField(type, name));
- }
-
- /* (non-Javadoc)
- * @see org.cts2.castor.JClassModifier#isMatch(org.exolab.javasource.JClass)
- */
- @Override
- public boolean isMatch(JClass jClass) {
- return StringUtils.isNotBlank(jClass.getSuperClassQualifiedName()) &&
- (
- jClass.getSuperClassQualifiedName().matches(DIRECTORY_QUALIFIED_NAME) ||
- jClass.getSuperClassQualifiedName().matches(DIRECTORY_QUALIFIED_NAME + GENERIC_REGEX)
- );
- }
-
- /* (non-Javadoc)
- * @see org.cts2.castor.printer.JClassModifier#postPrintModifyJClass(org.exolab.javasource.JClass, java.lang.String, java.lang.String, java.lang.String)
- */
- @Override
- public void postPrintModifyJClass(JClass jClass, String outputDir,
- String lineSeparator, String header) {
- jClass.setSuperClass(jClass.getSuperClassQualifiedName().replaceAll(GENERIC_REGEX, ""));
- }
-}
diff --git a/cts2-model/src/castor/java/org/cts2/castor/printer/modifiers/DirectoryURIMethodAddingModifier.java b/cts2-model/src/castor/java/org/cts2/castor/printer/modifiers/DirectoryURIMethodAddingModifier.java
deleted file mode 100644
index 9ba1b04428..0000000000
--- a/cts2-model/src/castor/java/org/cts2/castor/printer/modifiers/DirectoryURIMethodAddingModifier.java
+++ /dev/null
@@ -1,186 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.castor.printer.modifiers;
-
-import java.io.File;
-import java.io.IOException;
-
-import org.apache.commons.io.FileUtils;
-import org.cts2.castor.printer.JClassModifier;
-import org.exolab.javasource.JClass;
-import org.exolab.javasource.JField;
-import org.exolab.javasource.JMethod;
-import org.exolab.javasource.JParameter;
-import org.exolab.javasource.JType;
-
-/**
- * The Class DirectoryURIMethodAddingModifier.
- *
- * @author Kevin Peterson
- */
-public class DirectoryURIMethodAddingModifier implements JClassModifier{
-
- /** The Constant DIRECTORY_QUALIFIED_NAME. */
- private static final String DIRECTORY_QUALIFIED_NAME = "org.cts2.core.Directory";
-
- /** The Constant URI_SUFFIX. */
- private static final String PREV_FIELD = "_prev";
-
- /** The Constant NEXT_FIELD. */
- private static final String NEXT_FIELD = "_next";
-
- /** The Constant PREV. */
- private static final String GET_PREV = "getPrev";
-
- /** The Constant NEXT. */
- private static final String SET_NEXT = "setNext";
-
- /** The Constant PREV. */
- private static final String GET_NEXT = "getNext";
-
- /** The Constant NEXT. */
- private static final String SET_PREV = "setPrev";
-
- /** The GENERICS. */
- private static String GENERICS = "";
-
- private static String DIRECTORY_CLASS_DECLARATION = "public abstract class Directory";
-
- /** The GENERI c_ simpl e_ type. */
- private static SimpleJType GENERIC_SIMPLE_TYPE = new SimpleJType("T");
-
- /* (non-Javadoc)
- * @see org.cts2.castor.printer.JClassModifier#prePrintModifyJClass(org.exolab.javasource.JClass, java.lang.String, java.lang.String, java.lang.String)
- */
- @Override
- public void prePrintModifyJClass(JClass jClass, String outputDir,
- String lineSeparator, String header) {
- jClass.removeConstructor(jClass.getConstructors()[0]);
-
- this.adjustField(jClass, PREV_FIELD, GENERIC_SIMPLE_TYPE);
- this.adjustField(jClass, NEXT_FIELD, GENERIC_SIMPLE_TYPE);
-
- this.adjustJMethod(jClass, GET_PREV, GENERIC_SIMPLE_TYPE, MethodType.GET);
- this.adjustJMethod(jClass, SET_PREV, GENERIC_SIMPLE_TYPE, MethodType.SET);
- this.adjustJMethod(jClass, GET_NEXT, GENERIC_SIMPLE_TYPE, MethodType.GET);
- this.adjustJMethod(jClass, SET_NEXT, GENERIC_SIMPLE_TYPE, MethodType.SET);
- }
-
- /**
- * Adjust field.
- *
- * @param jClass the j class
- * @param name the name
- * @param type the type
- */
- protected void adjustField(JClass jClass, String name, JType type){
- jClass.removeField(jClass.getField(name));
- jClass.addField(new JField(type, name));
- }
-
- /**
- * The Enum MethodType.
- *
- * @author Kevin Peterson
- */
- private enum MethodType {
- GET,
- SET}
-
- /**
- * Adjust j method.
- *
- * @param jClass the j class
- * @param name the name
- * @param jType the j type
- * @param methodType the method type
- */
- protected void adjustJMethod(JClass jClass, String name, JType jType, MethodType methodType){
- JMethod oldMethod = jClass.getMethod(name, 0);
-
- JMethod newMethod;
- if(methodType.equals(MethodType.GET)){
- newMethod = new JMethod(name, jType, null);
- } else {
- newMethod = new JMethod(name);
- for(JParameter oldParam : oldMethod.getParameters()){
- if(oldParam != null){
- JParameter newParam = new JParameter(jType, oldParam.getName());
- newMethod.getSignature().addParameter(newParam);
- break;
- }
- }
- }
-
- newMethod.setSourceCode(oldMethod.getSourceCode());
-
- jClass.removeMethod(oldMethod);
- jClass.addMethod(newMethod);
- }
-
- /**
- * Adds the generics.
- *
- * @param name the name
- * @return the string
- */
- protected String addGenerics(String name){
- return name + GENERICS;
- }
-
- /**
- * Removes the generics.
- *
- * @param name the name
- * @return the string
- */
- protected String removeGenerics(String name){
- return name.replaceAll(GENERICS, "");
- }
-
- /* (non-Javadoc)
- * @see org.cts2.castor.printer.JClassModifier#postPrintModifyJClass(org.exolab.javasource.JClass, java.lang.String, java.lang.String, java.lang.String)
- */
- @Override
- public void postPrintModifyJClass(JClass jClass, String outputDir,
- String lineSeparator, String header) {
-
- try {
- File file = new File(jClass.getFilename(outputDir));
-
- String originalFile = FileUtils.readFileToString(file);
-
- String modifiedFile =
- originalFile.replaceFirst(DIRECTORY_CLASS_DECLARATION, addGenerics(DIRECTORY_CLASS_DECLARATION));
-
- FileUtils.writeStringToFile(file, modifiedFile);
- } catch (IOException e) {
- throw new RuntimeException(e);
- }
- }
-
- /* (non-Javadoc)
- * @see org.cts2.castor.JClassModifier#isMatch(org.exolab.javasource.JClass)
- */
- @Override
- public boolean isMatch(JClass jClass) {
- return jClass.getName().equals(DIRECTORY_QUALIFIED_NAME) ||
- jClass.getName().equals(DIRECTORY_QUALIFIED_NAME + GENERICS);
- }
-}
diff --git a/cts2-model/src/castor/java/org/cts2/castor/printer/modifiers/ResourceDescriptionModifier.java b/cts2-model/src/castor/java/org/cts2/castor/printer/modifiers/ResourceDescriptionModifier.java
deleted file mode 100644
index 0b935509d8..0000000000
--- a/cts2-model/src/castor/java/org/cts2/castor/printer/modifiers/ResourceDescriptionModifier.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.castor.printer.modifiers;
-
-import org.cts2.castor.printer.JClassModifier;
-import org.exolab.javasource.JClass;
-import org.exolab.javasource.JMethod;
-import org.exolab.javasource.JType;
-
-/**
- * The Class ResourceDescriptionModifier.
- *
- * @author Kevin Peterson
- */
-public class ResourceDescriptionModifier implements JClassModifier {
-
- /* (non-Javadoc)
- * @see org.cts2.castor.printer.JClassModifier#prePrintModifyJClass(org.exolab.javasource.JClass, java.lang.String, java.lang.String, java.lang.String)
- */
- @Override
- public void prePrintModifyJClass(
- JClass jClass,
- String outputDir,
- String lineSeparator,
- String header) {
- JType jtype = new SimpleJType("java.lang.String");
- JMethod method = new JMethod("getEntryID", jtype, null);
- method.setSourceCode("return this.getAbout();");
-
- jClass.addMethod(method);
- }
-
- /* (non-Javadoc)
- * @see org.cts2.castor.printer.JClassModifier#postPrintModifyJClass(org.exolab.javasource.JClass, java.lang.String, java.lang.String, java.lang.String)
- */
- @Override
- public void postPrintModifyJClass(JClass jClass, String outputDir,
- String lineSeparator, String header) {
- //
- }
-
- /* (non-Javadoc)
- * @see org.cts2.castor.printer.JClassModifier#isMatch(org.exolab.javasource.JClass)
- */
- @Override
- public boolean isMatch(JClass jClass) {
- return jClass.getName().equals("org.cts2.core.ResourceDescription");
- }
-}
diff --git a/cts2-model/src/castor/java/org/cts2/castor/printer/modifiers/SimpleJType.java b/cts2-model/src/castor/java/org/cts2/castor/printer/modifiers/SimpleJType.java
deleted file mode 100644
index 51f5043525..0000000000
--- a/cts2-model/src/castor/java/org/cts2/castor/printer/modifiers/SimpleJType.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.castor.printer.modifiers;
-
-import org.exolab.javasource.JType;
-
-/**
- * The Class SimpleJType.
- *
- * @author Kevin Peterson
- */
-public class SimpleJType extends JType{
-
- /**
- * Instantiates a new simple j type.
- *
- * @param name the name
- */
- public SimpleJType(String name) {
- super(name);
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#toString()
- */
- public String toString(){
- return this.getName();
- }
-
-}
\ No newline at end of file
diff --git a/cts2-model/src/castor/java/org/cts2/castor/printer/modifiers/ValueSetResolutionRuleModifier.java b/cts2-model/src/castor/java/org/cts2/castor/printer/modifiers/ValueSetResolutionRuleModifier.java
deleted file mode 100644
index 74dd2f3e55..0000000000
--- a/cts2-model/src/castor/java/org/cts2/castor/printer/modifiers/ValueSetResolutionRuleModifier.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.castor.printer.modifiers;
-
-import org.cts2.castor.printer.JClassModifier;
-import org.exolab.javasource.JClass;
-import org.exolab.javasource.JMethod;
-import org.exolab.javasource.JType;
-
-/**
- * The Class ValueSetResolutionRuleModifier.
- *
- * @author Kevin Peterson
- */
-public class ValueSetResolutionRuleModifier implements JClassModifier {
-
- /* (non-Javadoc)
- * @see org.cts2.castor.printer.JClassModifier#prePrintModifyJClass(org.exolab.javasource.JClass, java.lang.String, java.lang.String, java.lang.String)
- */
- @Override
- public void prePrintModifyJClass(
- JClass jClass,
- String outputDir,
- String lineSeparator,
- String header) {
- JType jtype = new SimpleJType("java.lang.String");
- JMethod method = new JMethod("getEntryID", jtype, null);
- method.setSourceCode("return this.getResolutionRuleURI();");
-
- jClass.addMethod(method);
- }
-
- /* (non-Javadoc)
- * @see org.cts2.castor.printer.JClassModifier#postPrintModifyJClass(org.exolab.javasource.JClass, java.lang.String, java.lang.String, java.lang.String)
- */
- @Override
- public void postPrintModifyJClass(JClass jClass, String outputDir,
- String lineSeparator, String header) {
- //
- }
-
- /* (non-Javadoc)
- * @see org.cts2.castor.printer.JClassModifier#isMatch(org.exolab.javasource.JClass)
- */
- @Override
- public boolean isMatch(JClass jClass) {
- return jClass.getName().equals("org.cts2.valuesetresolution.ValueSetResolutionRule");
- }
-}
diff --git a/cts2-model/src/main/java/org/cts2/core/ChangeableResource.java b/cts2-model/src/main/java/org/cts2/core/ChangeableResource.java
deleted file mode 100644
index 4521701e8d..0000000000
--- a/cts2-model/src/main/java/org/cts2/core/ChangeableResource.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.core;
-
-import org.cts2.core.types.EntryState;
-
-/**
- * The Interface ChangeableResource.
- *
- * @author Kevin Peterson
- */
-public interface ChangeableResource {
-
- /**
- * Gets the entry id.
- *
- * @return the entry id
- */
- public String getEntryID();
-
- /**
- * Gets the entry state.
- *
- * @return the entry state
- */
- public EntryState getEntryState();
-
- /**
- * Gets the status.
- *
- * @return the status
- */
- public StatusReference getStatus();
-
- /**
- * Gets the change description.
- *
- * @return the change description
- */
- public ChangeDescription getChangeDescription();
-}
diff --git a/cts2-model/src/main/java/org/cts2/uri/AssociationDirectoryURI.java b/cts2-model/src/main/java/org/cts2/uri/AssociationDirectoryURI.java
deleted file mode 100644
index 28dbec8992..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/AssociationDirectoryURI.java
+++ /dev/null
@@ -1,120 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.uri;
-
-import org.cts2.core.TargetExpression;
-import org.cts2.service.core.EntityNameOrURI;
-import org.cts2.service.core.NameOrURI;
-import org.cts2.service.core.QueryControl;
-import org.cts2.service.core.ReadContext;
-import org.cts2.uri.restriction.AssociationDirectoryRestrictionState;
-
-/**
- * The Interface AssociationDirectoryURI.
- *
- * @author Kevin Peterson
- */
-public interface AssociationDirectoryURI
- extends DirectoryURI, SetOperable {
-
- /**
- *
- * @param directory
- * @param queryControl
- * @param context
- */
- public EntityDirectoryURI getAllSourceAndTargetEntities(
- EntityDirectoryURI directory, QueryControl queryControl,
- ReadContext context);
-
- /**
- *
- * @param directory
- * @param queryControl
- * @param context
- */
- public EntityDirectoryURI getPredicates(QueryControl queryControl, ReadContext context);
-
- /**
- *
- * @param directory
- * @param queryControl
- * @param context
- */
- public EntityDirectoryURI getSourceEntities(QueryControl queryControl, ReadContext context);
-
- /**
- *
- * @param directory
- * @param queryControl
- * @param context
- */
- public EntityDirectoryURI getTargetEntities(QueryControl queryControl, ReadContext context);
-
- /**
- *
- * @param directory
- * @param codeSystemVersion
- */
- public AssociationDirectoryURI restrictToCodeSystemVersion(NameOrURI codeSystemVersion);
-
- /**
- *
- * @param directory
- * @param predicate
- */
- public AssociationDirectoryURI restrictToPredicate(EntityNameOrURI predicate);
-
- /**
- *
- * @param directory
- * @param sourceEntity
- */
- public AssociationDirectoryURI restrictToSourceEntity(EntityNameOrURI sourceEntity);
-
- /**
- *
- * @param directory
- * @param entity
- */
- public AssociationDirectoryURI restrictToSourceOrTargetEntity(EntityNameOrURI entity);
-
- /**
- *
- * @param directory
- * @param target
- */
- public AssociationDirectoryURI restrictToTargetEntity(EntityNameOrURI target);
-
- /**
- *
- * @param directory
- * @param target
- */
- public AssociationDirectoryURI restrictToTargetExpression(TargetExpression target);
-
- /**
- *
- * @param directory
- * @param target
- */
- public AssociationDirectoryURI restrictToTargetLiteral(String target);
-
- public AssociationDirectoryRestrictionState getRestrictionState();
-}
diff --git a/cts2-model/src/main/java/org/cts2/uri/AssociationGraphURI.java b/cts2-model/src/main/java/org/cts2/uri/AssociationGraphURI.java
deleted file mode 100644
index 004f7763d0..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/AssociationGraphURI.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.uri;
-
-
-
-/**
- * The Interface AssociationDirectoryURI.
- *
- * @author Kevin Peterson
- */
-public interface AssociationGraphURI
- extends DirectoryURI, SetOperable {
-}
-
diff --git a/cts2-model/src/main/java/org/cts2/uri/ChangeSetDirectoryURI.java b/cts2-model/src/main/java/org/cts2/uri/ChangeSetDirectoryURI.java
deleted file mode 100644
index 026b0dd9ab..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/ChangeSetDirectoryURI.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.uri;
-
-
-/**
- * The Interface CodeSystemVersionDirectoryURI.
- *
- * @author Kevin Peterson
- */
-public interface ChangeSetDirectoryURI
- extends DirectoryURI, SetOperable {
-}
diff --git a/cts2-model/src/main/java/org/cts2/uri/CodeSystemDirectoryURI.java b/cts2-model/src/main/java/org/cts2/uri/CodeSystemDirectoryURI.java
deleted file mode 100644
index 0b2f0f3ccc..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/CodeSystemDirectoryURI.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.uri;
-
-
-/**
- * The Interface CodeSystemDirectoryURI.
- *
- * @author Kevin Peterson
- */
-public interface CodeSystemDirectoryURI
- extends DirectoryURI, SetOperable {
-}
diff --git a/cts2-model/src/main/java/org/cts2/uri/CodeSystemVersionDirectoryURI.java b/cts2-model/src/main/java/org/cts2/uri/CodeSystemVersionDirectoryURI.java
deleted file mode 100644
index 40073664a8..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/CodeSystemVersionDirectoryURI.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.uri;
-
-import java.util.List;
-
-import org.cts2.core.EntityReference;
-import org.cts2.service.core.types.ActiveOrAll;
-import org.cts2.service.core.types.RestrictionType;
-import org.cts2.uri.restriction.CodeSystemVersionRestrictionState;
-
-/**
- * The Interface CodeSystemVersionDirectoryURI.
- *
- * @author Kevin Peterson
- */
-public interface CodeSystemVersionDirectoryURI extends DirectoryURI, SetOperable {
-
- public CodeSystemVersionRestrictionState getRestrictionState();
-
- public CodeSystemVersionDirectoryURI restrictToEntities(
- List entities, RestrictionType allOrSome,
- ActiveOrAll active);
-}
diff --git a/cts2-model/src/main/java/org/cts2/uri/ConceptDomainBindingDirectoryURI.java b/cts2-model/src/main/java/org/cts2/uri/ConceptDomainBindingDirectoryURI.java
deleted file mode 100644
index 67f401b49b..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/ConceptDomainBindingDirectoryURI.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.uri;
-
-
-/**
- * The Interface CodeSystemVersionDirectoryURI.
- *
- * @author Kevin Peterson
- */
-public interface ConceptDomainBindingDirectoryURI
- extends DirectoryURI, SetOperable {
-}
-
diff --git a/cts2-model/src/main/java/org/cts2/uri/ConceptDomainDirectoryURI.java b/cts2-model/src/main/java/org/cts2/uri/ConceptDomainDirectoryURI.java
deleted file mode 100644
index 976914abaf..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/ConceptDomainDirectoryURI.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.uri;
-
-
-/**
- * The Interface CodeSystemVersionDirectoryURI.
- *
- * @author Kevin Peterson
- */
-public interface ConceptDomainDirectoryURI
- extends DirectoryURI, SetOperable {
-}
-
diff --git a/cts2-model/src/main/java/org/cts2/uri/DirectoryURI.java b/cts2-model/src/main/java/org/cts2/uri/DirectoryURI.java
deleted file mode 100644
index 7cb7e6eeae..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/DirectoryURI.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.uri;
-
-
-import org.cts2.core.Directory;
-import org.cts2.core.Filter;
-import org.cts2.service.core.QueryControl;
-import org.cts2.service.core.ReadContext;
-import org.cts2.uri.restriction.RestrictionState;
-
-/**
- * The Interface DirectoryURI.
- *
- * @author Kevin Peterson
- */
-public interface DirectoryURI {
-
- /**
- * Gets the restriction state.
- *
- * @return the restriction state
- */
- public RestrictionState extends DirectoryURI> getRestrictionState();
-
- /**
- * Gets the.
- *
- * @param the
- * @param queryControl the query control
- * @param readContext the read context
- * @param content the content
- * @return the t
- */
- public > T get(QueryControl queryControl, ReadContext readContext, Class content);
-
- /**
- * Count.
- *
- * @param readContext the read context
- * @return the int
- */
- public int count(ReadContext readContext);
-
- /**
- * Restrict.
- *
- * @param filter the filter
- * @return the directory uri
- */
- public DirectoryURI restrict(Filter filter);
-
- /**
- * Marshall.
- *
- * @return the string
- */
- public String marshall();
-}
diff --git a/cts2-model/src/main/java/org/cts2/uri/EntityDirectoryURI.java b/cts2-model/src/main/java/org/cts2/uri/EntityDirectoryURI.java
deleted file mode 100644
index 1f51ba5384..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/EntityDirectoryURI.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.uri;
-
-import org.cts2.core.VersionTagReference;
-import org.cts2.service.core.NameOrURI;
-import org.cts2.uri.restriction.EntityDirectoryRestrictionState;
-
-
-/**
- * The Interface CodeSystemVersionDirectoryURI.
- *
- * @author Kevin Peterson
- */
-public interface EntityDirectoryURI
- extends DirectoryURI, SetOperable {
-
- /**
- * Restrict to code systems.
- *
- * @param codeSystems the code systems
- * @param tag the tag
- * @return the entity directory uri
- */
- public EntityDirectoryURI restrictToCodeSystems(NameOrURI codeSystems, VersionTagReference tag);
-
- /**
- * Restrict to code system versions.
- *
- * @param codeSystemVersions the code system versions
- * @return the entity directory uri
- */
- public EntityDirectoryURI restrictToCodeSystemVersions(NameOrURI codeSystemVersions);
-
- /* (non-Javadoc)
- * @see org.cts2.uri.DirectoryURI#getRestrictionState()
- */
- public EntityDirectoryRestrictionState getRestrictionState();
-}
-
diff --git a/cts2-model/src/main/java/org/cts2/uri/MapDirectoryURI.java b/cts2-model/src/main/java/org/cts2/uri/MapDirectoryURI.java
deleted file mode 100644
index d78f6d5650..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/MapDirectoryURI.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.uri;
-
-
-/**
- * The Interface CodeSystemVersionDirectoryURI.
- *
- * @author Kevin Peterson
- */
-public interface MapDirectoryURI
- extends DirectoryURI, SetOperable {
-}
diff --git a/cts2-model/src/main/java/org/cts2/uri/MapEntryDirectoryURI.java b/cts2-model/src/main/java/org/cts2/uri/MapEntryDirectoryURI.java
deleted file mode 100644
index c1e7023b0c..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/MapEntryDirectoryURI.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.uri;
-
-
-/**
- * The Interface CodeSystemVersionDirectoryURI.
- *
- * @author Kevin Peterson
- */
-public interface MapEntryDirectoryURI
- extends DirectoryURI, SetOperable {
-}
diff --git a/cts2-model/src/main/java/org/cts2/uri/MapVersionDirectoryURI.java b/cts2-model/src/main/java/org/cts2/uri/MapVersionDirectoryURI.java
deleted file mode 100644
index 0d35ecf3c1..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/MapVersionDirectoryURI.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.uri;
-
-import org.cts2.service.core.NameOrURIList;
-import org.cts2.uri.restriction.MapVersionDirectoryRestrictionState;
-
-
-
-/**
- * The Interface CodeSystemVersionDirectoryURI.
- *
- * @author Kevin Peterson
- */
-public interface MapVersionDirectoryURI
- extends DirectoryURI, SetOperable {
-
- public MapVersionDirectoryRestrictionState getRestrictionState();
-
- public MapVersionDirectoryURI restrictToCodeSystems(MapVersionDirectoryURI directory,
- NameOrURIList codeSystems);
-}
diff --git a/cts2-model/src/main/java/org/cts2/uri/ResolutionRuleDirectoryURI.java b/cts2-model/src/main/java/org/cts2/uri/ResolutionRuleDirectoryURI.java
deleted file mode 100644
index 410ad61b8b..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/ResolutionRuleDirectoryURI.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.uri;
-
-
-/**
- * The Interface CodeSystemVersionDirectoryURI.
- *
- * @author Kevin Peterson
- */
-public interface ResolutionRuleDirectoryURI
- extends DirectoryURI, SetOperable {
-}
diff --git a/cts2-model/src/main/java/org/cts2/uri/SetOperable.java b/cts2-model/src/main/java/org/cts2/uri/SetOperable.java
deleted file mode 100644
index f9fb4a9d1c..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/SetOperable.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.uri;
-
-/**
- * The Interface SetOperable.
- *
- * @param the
- * @author Kevin Peterson
- */
-public interface SetOperable {
-
- /**
- * Union.
- *
- * @param set the set
- * @return the t
- */
- public T union(T set);
-
- /**
- * Intersect.
- *
- * @param set the set
- * @return the t
- */
- public T intersect(T set);
-
- /**
- * Difference.
- *
- * @param set the set
- * @return the t
- */
- public T difference(T set);
-}
diff --git a/cts2-model/src/main/java/org/cts2/uri/StatementDirectoryURI.java b/cts2-model/src/main/java/org/cts2/uri/StatementDirectoryURI.java
deleted file mode 100644
index 0ab7871d99..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/StatementDirectoryURI.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.uri;
-
-
-/**
- * The Interface CodeSystemVersionDirectoryURI.
- *
- * @author Kevin Peterson
- */
-public interface StatementDirectoryURI
- extends DirectoryURI, SetOperable {
-}
diff --git a/cts2-model/src/main/java/org/cts2/uri/UrlBasedDirectoryUriFactory.java b/cts2-model/src/main/java/org/cts2/uri/UrlBasedDirectoryUriFactory.java
deleted file mode 100644
index cf5fa69b3c..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/UrlBasedDirectoryUriFactory.java
+++ /dev/null
@@ -1,110 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.uri;
-
-import net.sf.cglib.proxy.Enhancer;
-import net.sf.cglib.proxy.NoOp;
-
-import org.cts2.core.Directory;
-import org.cts2.core.Filter;
-import org.cts2.service.core.QueryControl;
-import org.cts2.service.core.ReadContext;
-import org.cts2.uri.restriction.RestrictionState;
-
-/**
- * The Class UrlBasedDirectoryUriFactory.
- *
- * @author Kevin Peterson
- */
-public class UrlBasedDirectoryUriFactory {
-
- /**
- * Creates the url based directory uri.
- *
- * @param targetClass the target class
- * @param uri the uri
- * @return the DirectoryURI
- */
- @SuppressWarnings("unchecked")
- public static T createUrlBasedDirectoryUri(String url, Class targetClass) {
- Enhancer enhancer = new Enhancer();
- enhancer.setSuperclass(UrlStringBasedDirectoryURI.class);
- enhancer.setInterfaces(new Class[]{targetClass});
- enhancer.setCallback(NoOp.INSTANCE);
- return (T)enhancer.create(new Class[]{String.class}, new Object[]{url});
- }
-
- /**
- * The Class UrlStringBasedDirectoryURI.
- *
- * @author Kevin Peterson
- */
- public static class UrlStringBasedDirectoryURI implements DirectoryURI {
-
- /** The url. */
- private String url;
-
- /**
- * Instantiates a new url string based directory uri.
- *
- * @param url the url
- */
- public UrlStringBasedDirectoryURI(String url){
- this.url = url;
- }
-
- /* (non-Javadoc)
- * @see org.cts2.uri.DirectoryURI#get(org.cts2.service.core.QueryControl, org.cts2.service.core.ReadContext, java.lang.Class)
- */
- @Override
- public > T get(QueryControl queryControl,
- ReadContext readContext, Class content) {
- throw new UnsupportedOperationException();
- }
-
- /* (non-Javadoc)
- * @see org.cts2.uri.DirectoryURI#count(org.cts2.service.core.ReadContext)
- */
- @Override
- public int count(ReadContext readContext) {
- throw new UnsupportedOperationException();
- }
-
- /* (non-Javadoc)
- * @see org.cts2.uri.DirectoryURI#restrict(org.cts2.core.Filter)
- */
- @Override
- public DirectoryURI restrict(Filter filter) {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public RestrictionState extends DirectoryURI> getRestrictionState() {
- throw new UnsupportedOperationException();
- }
-
- /* (non-Javadoc)
- * @see org.cts2.uri.DirectoryURI#marshall()
- */
- @Override
- public String marshall() {
- return this.url;
- }
- }
-}
diff --git a/cts2-model/src/main/java/org/cts2/uri/ValueSetDefinitionDirectoryURI.java b/cts2-model/src/main/java/org/cts2/uri/ValueSetDefinitionDirectoryURI.java
deleted file mode 100644
index 3aeb2b2066..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/ValueSetDefinitionDirectoryURI.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.uri;
-
-import java.util.List;
-
-import org.cts2.core.EntityReference;
-import org.cts2.uri.restriction.ValueSetDefinitionRestrictionState;
-
-/**
- * The Interface ValueSetDefinitionDirectoryURI.
- *
- * @author Kevin Peterson
- */
-public interface ValueSetDefinitionDirectoryURI
- extends DirectoryURI, SetOperable {
-
- /**
- * Restrict to entities.
- *
- * @param entityList the entity list
- * @return the value set definition directory uri
- */
- public ValueSetDefinitionDirectoryURI restrictToEntities(List entityList);
-
- /* (non-Javadoc)
- * @see org.cts2.uri.DirectoryURI#getRestrictionState()
- */
- public ValueSetDefinitionRestrictionState getRestrictionState();
-}
diff --git a/cts2-model/src/main/java/org/cts2/uri/ValueSetDirectoryURI.java b/cts2-model/src/main/java/org/cts2/uri/ValueSetDirectoryURI.java
deleted file mode 100644
index 660dee2ce4..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/ValueSetDirectoryURI.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.uri;
-
-
-/**
- * The Interface CodeSystemVersionDirectoryURI.
- *
- * @author Kevin Peterson
- */
-public interface ValueSetDirectoryURI
- extends DirectoryURI, SetOperable {
-}
diff --git a/cts2-model/src/main/java/org/cts2/uri/restriction/AssociationDirectoryRestrictionState.java b/cts2-model/src/main/java/org/cts2/uri/restriction/AssociationDirectoryRestrictionState.java
deleted file mode 100644
index 46801d6d69..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/restriction/AssociationDirectoryRestrictionState.java
+++ /dev/null
@@ -1,393 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.uri.restriction;
-
-import java.util.HashSet;
-import java.util.Set;
-
-import org.cts2.core.TargetExpression;
-import org.cts2.service.core.EntityNameOrURI;
-import org.cts2.service.core.NameOrURI;
-import org.cts2.uri.AssociationDirectoryURI;
-
-/**
- * The Class AssociationDirectoryRestrictionState.
- *
- * @author Kevin Peterson
- */
-public class AssociationDirectoryRestrictionState extends
- RestrictionState {
-
- /** The restrict to code system version restrictions. */
- private Set restrictToCodeSystemVersionRestrictions = new HashSet();
-
- /** The restrict to predicate restrictions. */
- private Set restrictToPredicateRestrictions = new HashSet();
-
- /** The restrict to source entity restrictions. */
- private Set restrictToSourceEntityRestrictions = new HashSet();
-
- /** The restrict to source or target entity restrictions. */
- private Set restrictToSourceOrTargetEntityRestrictions = new HashSet();
-
- /** The restrict to target entity restrictions. */
- private Set restrictToTargetEntityRestrictions = new HashSet();
-
- /** The restrict to target expression restrictions. */
- private Set restrictToTargetExpressionRestrictions = new HashSet();
-
- /** The restrict to target literal restriction. */
- private Set restrictToTargetLiteralRestriction = new HashSet();
-
- /**
- * The Class RestrictToCodeSystemVersionRestriction.
- *
- * @author Kevin Peterson
- */
- public static class RestrictToCodeSystemVersionRestriction {
-
- /** The code system version. */
- private NameOrURI codeSystemVersion;
-
- /**
- * Sets the code system version.
- *
- * @param codeSystemVersion the new code system version
- */
- public void setCodeSystemVersion(NameOrURI codeSystemVersion) {
- this.codeSystemVersion = codeSystemVersion;
- }
-
- /**
- * Gets the code system version.
- *
- * @return the code system version
- */
- public NameOrURI getCodeSystemVersion() {
- return codeSystemVersion;
- }
- }
-
- /**
- * The Class RestrictToPredicateRestriction.
- *
- * @author Kevin Peterson
- */
- public static class RestrictToPredicateRestriction {
-
- /** The predicate. */
- private EntityNameOrURI predicate;
-
- /**
- * Sets the predicate.
- *
- * @param predicate the new predicate
- */
- public void setPredicate(EntityNameOrURI predicate) {
- this.predicate = predicate;
- }
-
- /**
- * Gets the predicate.
- *
- * @return the predicate
- */
- public EntityNameOrURI getPredicate() {
- return predicate;
- }
- }
-
- /**
- * The Class RestrictToSourceEntityRestriction.
- *
- * @author Kevin Peterson
- */
- public static class RestrictToSourceEntityRestriction {
-
- /** The source entity. */
- private EntityNameOrURI sourceEntity;
-
- /**
- * Sets the source entity.
- *
- * @param sourceEntity the new source entity
- */
- public void setSourceEntity(EntityNameOrURI sourceEntity) {
- this.sourceEntity = sourceEntity;
- }
-
- /**
- * Gets the source entity.
- *
- * @return the source entity
- */
- public EntityNameOrURI getSourceEntity() {
- return sourceEntity;
- }
- }
-
- /**
- * The Class RestrictToSourceOrTargetEntityRestriction.
- *
- * @author Kevin Peterson
- */
- public static class RestrictToSourceOrTargetEntityRestriction {
-
- /** The entity. */
- private EntityNameOrURI entity;
-
- /**
- * Sets the entity.
- *
- * @param entity the new entity
- */
- public void setEntity(EntityNameOrURI entity) {
- this.entity = entity;
- }
-
- /**
- * Gets the entity.
- *
- * @return the entity
- */
- public EntityNameOrURI getEntity() {
- return entity;
- }
- }
-
- /**
- * The Class RestrictToTargetEntityRestriction.
- *
- * @author Kevin Peterson
- */
- public static class RestrictToTargetEntityRestriction {
-
- /** The target. */
- private EntityNameOrURI target;
-
- /**
- * Sets the target.
- *
- * @param target the new target
- */
- public void setTarget(EntityNameOrURI target) {
- this.target = target;
- }
-
- /**
- * Gets the target.
- *
- * @return the target
- */
- public EntityNameOrURI getTarget() {
- return target;
- }
- }
-
- /**
- * The Class RestrictToTargetExpressionRestriction.
- *
- * @author Kevin Peterson
- */
- public static class RestrictToTargetExpressionRestriction {
-
- /** The target. */
- private TargetExpression target;
-
- /**
- * Sets the target.
- *
- * @param target the new target
- */
- public void setTarget(TargetExpression target) {
- this.target = target;
- }
-
- /**
- * Gets the target.
- *
- * @return the target
- */
- public TargetExpression getTarget() {
- return target;
- }
- }
-
- /**
- * The Class RestrictToTargetLiteralRestriction.
- *
- * @author Kevin Peterson
- */
- public static class RestrictToTargetLiteralRestriction {
-
- /** The target. */
- private String target;
-
- /**
- * Sets the target.
- *
- * @param target the new target
- */
- public void setTarget(String target) {
- this.target = target;
- }
-
- /**
- * Gets the target.
- *
- * @return the target
- */
- public String getTarget() {
- return target;
- }
- }
-
- /**
- * Gets the restrict to code system version restrictions.
- *
- * @return the restrict to code system version restrictions
- */
- public Set getRestrictToCodeSystemVersionRestrictions() {
- return restrictToCodeSystemVersionRestrictions;
- }
-
- /**
- * Sets the restrict to code system version restrictions.
- *
- * @param restrictToCodeSystemVersionRestrictions the new restrict to code system version restrictions
- */
- public void setRestrictToCodeSystemVersionRestrictions(
- Set restrictToCodeSystemVersionRestrictions) {
- this.restrictToCodeSystemVersionRestrictions = restrictToCodeSystemVersionRestrictions;
- }
-
- /**
- * Gets the restrict to predicate restrictions.
- *
- * @return the restrict to predicate restrictions
- */
- public Set getRestrictToPredicateRestrictions() {
- return restrictToPredicateRestrictions;
- }
-
- /**
- * Sets the restrict to predicate restrictions.
- *
- * @param restrictToPredicateRestrictions the new restrict to predicate restrictions
- */
- public void setRestrictToPredicateRestrictions(
- Set restrictToPredicateRestrictions) {
- this.restrictToPredicateRestrictions = restrictToPredicateRestrictions;
- }
-
- /**
- * Gets the restrict to source entity restrictions.
- *
- * @return the restrict to source entity restrictions
- */
- public Set getRestrictToSourceEntityRestrictions() {
- return restrictToSourceEntityRestrictions;
- }
-
- /**
- * Sets the restrict to source entity restrictions.
- *
- * @param restrictToSourceEntityRestrictions the new restrict to source entity restrictions
- */
- public void setRestrictToSourceEntityRestrictions(
- Set restrictToSourceEntityRestrictions) {
- this.restrictToSourceEntityRestrictions = restrictToSourceEntityRestrictions;
- }
-
- /**
- * Gets the restrict to source or target entity restrictions.
- *
- * @return the restrict to source or target entity restrictions
- */
- public Set getRestrictToSourceOrTargetEntityRestrictions() {
- return restrictToSourceOrTargetEntityRestrictions;
- }
-
- /**
- * Sets the restrict to source or target entity restrictions.
- *
- * @param restrictToSourceOrTargetEntityRestrictions the new restrict to source or target entity restrictions
- */
- public void setRestrictToSourceOrTargetEntityRestrictions(
- Set restrictToSourceOrTargetEntityRestrictions) {
- this.restrictToSourceOrTargetEntityRestrictions = restrictToSourceOrTargetEntityRestrictions;
- }
-
- /**
- * Gets the restrict to target entity restrictions.
- *
- * @return the restrict to target entity restrictions
- */
- public Set getRestrictToTargetEntityRestrictions() {
- return restrictToTargetEntityRestrictions;
- }
-
- /**
- * Sets the restrict to target entity restrictions.
- *
- * @param restrictToTargetEntityRestrictions the new restrict to target entity restrictions
- */
- public void setRestrictToTargetEntityRestrictions(
- Set restrictToTargetEntityRestrictions) {
- this.restrictToTargetEntityRestrictions = restrictToTargetEntityRestrictions;
- }
-
- /**
- * Gets the restrict to target expression restrictions.
- *
- * @return the restrict to target expression restrictions
- */
- public Set getRestrictToTargetExpressionRestrictions() {
- return restrictToTargetExpressionRestrictions;
- }
-
- /**
- * Sets the restrict to target expression restrictions.
- *
- * @param restrictToTargetExpressionRestrictions the new restrict to target expression restrictions
- */
- public void setRestrictToTargetExpressionRestrictions(
- Set restrictToTargetExpressionRestrictions) {
- this.restrictToTargetExpressionRestrictions = restrictToTargetExpressionRestrictions;
- }
-
- /**
- * Gets the restrict to target literal restriction.
- *
- * @return the restrict to target literal restriction
- */
- public Set getRestrictToTargetLiteralRestriction() {
- return restrictToTargetLiteralRestriction;
- }
-
- /**
- * Sets the restrict to target literal restriction.
- *
- * @param restrictToTargetLiteralRestriction the new restrict to target literal restriction
- */
- public void setRestrictToTargetLiteralRestriction(
- Set restrictToTargetLiteralRestriction) {
- this.restrictToTargetLiteralRestriction = restrictToTargetLiteralRestriction;
- }
-}
\ No newline at end of file
diff --git a/cts2-model/src/main/java/org/cts2/uri/restriction/CodeSystemVersionRestrictionState.java b/cts2-model/src/main/java/org/cts2/uri/restriction/CodeSystemVersionRestrictionState.java
deleted file mode 100644
index 74e7e821b6..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/restriction/CodeSystemVersionRestrictionState.java
+++ /dev/null
@@ -1,131 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.uri.restriction;
-
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-import org.cts2.core.EntityReference;
-import org.cts2.service.core.types.ActiveOrAll;
-import org.cts2.service.core.types.RestrictionType;
-import org.cts2.uri.CodeSystemVersionDirectoryURI;
-
-/**
- * The Class CodeSystemVersionRestrictionState.
- *
- * @author Kevin Peterson
- */
-public class CodeSystemVersionRestrictionState extends
- RestrictionState {
-
- /** The restrict to entities restrictions. */
- private Set restrictToEntitiesRestrictions = new HashSet();
-
- /**
- * Sets the restrict to entities restriction.
- *
- * @param restrictToEntitiesRestrictions the new restrict to entities restriction
- */
- public void setRestrictToEntitiesRestriction(
- Set restrictToEntitiesRestrictions) {
- this.restrictToEntitiesRestrictions = restrictToEntitiesRestrictions;
- }
-
- /**
- * Gets the restrict to entities restrictions.
- *
- * @return the restrict to entities restrictions
- */
- public Set getRestrictToEntitiesRestrictions() {
- return restrictToEntitiesRestrictions;
- }
-
- /**
- * The Class RestrictToEntitiesRestriction.
- *
- * @author Kevin Peterson
- */
- public static class RestrictToEntitiesRestriction {
-
- /** The entities. */
- private List entities;
-
- /** The all or some. */
- private RestrictionType allOrSome;
-
- /** The active. */
- private ActiveOrAll active;
-
- /**
- * Gets the entities.
- *
- * @return the entities
- */
- public List getEntities() {
- return entities;
- }
-
- /**
- * Sets the entities.
- *
- * @param entities the new entities
- */
- public void setEntities(List entities) {
- this.entities = entities;
- }
-
- /**
- * Gets the all or some.
- *
- * @return the all or some
- */
- public RestrictionType getAllOrSome() {
- return allOrSome;
- }
-
- /**
- * Sets the all or some.
- *
- * @param allOrSome the new all or some
- */
- public void setAllOrSome(RestrictionType allOrSome) {
- this.allOrSome = allOrSome;
- }
-
- /**
- * Gets the active.
- *
- * @return the active
- */
- public ActiveOrAll getActive() {
- return active;
- }
-
- /**
- * Sets the active.
- *
- * @param active the new active
- */
- public void setActive(ActiveOrAll active) {
- this.active = active;
- }
-
- }
-}
\ No newline at end of file
diff --git a/cts2-model/src/main/java/org/cts2/uri/restriction/EntityDirectoryRestrictionState.java b/cts2-model/src/main/java/org/cts2/uri/restriction/EntityDirectoryRestrictionState.java
deleted file mode 100644
index c05ccc725c..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/restriction/EntityDirectoryRestrictionState.java
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.uri.restriction;
-
-import java.util.HashSet;
-import java.util.Set;
-
-import org.cts2.service.core.NameOrURIList;
-import org.cts2.uri.EntityDirectoryURI;
-
-/**
- * The Class CodeSystemVersionRestrictionState.
- *
- * @author Kevin Peterson
- */
-public class EntityDirectoryRestrictionState extends
- RestrictionState {
-
- /** The restrict to code system versions restrictions. */
- private Set restrictToCodeSystemVersionsRestrictions = new HashSet();
-
- /**
- * Sets the restrict to code system versions restrictions.
- *
- * @param restrictToCodeSystemVersionsRestrictions the new restrict to code system versions restrictions
- */
- public void setRestrictToCodeSystemVersionsRestrictions(
- Set restrictToCodeSystemVersionsRestrictions) {
- this.restrictToCodeSystemVersionsRestrictions = restrictToCodeSystemVersionsRestrictions;
- }
-
- /**
- * Gets the restrict to code system versions restrictions.
- *
- * @return the restrict to code system versions restrictions
- */
- public Set getRestrictToCodeSystemVersionsRestrictions() {
- return restrictToCodeSystemVersionsRestrictions;
- }
-
- /**
- * The Class RestrictToCodeSystemVersionsRestriction.
- *
- * @author Kevin Peterson
- */
- public static class RestrictToCodeSystemVersionsRestriction {
-
- /** The code system versions. */
- private NameOrURIList codeSystemVersions;
-
- /**
- * Sets the code system versions.
- *
- * @param codeSystemVersions the new code system versions
- */
- public void setCodeSystemVersions(NameOrURIList codeSystemVersions) {
- this.codeSystemVersions = codeSystemVersions;
- }
-
- /**
- * Gets the code system versions.
- *
- * @return the code system versions
- */
- public NameOrURIList getCodeSystemVersions() {
- return codeSystemVersions;
- }
- }
-
-}
\ No newline at end of file
diff --git a/cts2-model/src/main/java/org/cts2/uri/restriction/MapVersionDirectoryRestrictionState.java b/cts2-model/src/main/java/org/cts2/uri/restriction/MapVersionDirectoryRestrictionState.java
deleted file mode 100644
index e711b91e65..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/restriction/MapVersionDirectoryRestrictionState.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package org.cts2.uri.restriction;
-
-
-import org.cts2.uri.MapVersionDirectoryURI;
-
-/**
- * The Class MapVersionDirectoryRestrictionState
- *
- * @author Zonghui Lian
- *
- */
-public class MapVersionDirectoryRestrictionState extends
- RestrictionState {
-
-// private Set restrictToCodeSystemVersionsRestrictions = new HashSet();
-
-}
diff --git a/cts2-model/src/main/java/org/cts2/uri/restriction/RestrictionState.java b/cts2-model/src/main/java/org/cts2/uri/restriction/RestrictionState.java
deleted file mode 100644
index b8b7506812..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/restriction/RestrictionState.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.uri.restriction;
-
-import java.util.HashSet;
-import java.util.Set;
-
-import org.cts2.core.Filter;
-import org.cts2.uri.DirectoryURI;
-
-/**
- * The Class RestrictionState.
- *
- * @param the
- * @author Kevin Peterson
- */
-public class RestrictionState {
-
- /** The set composite. */
- private SetComposite setComposite;
-
- /** The filters. */
- private Set filters = new HashSet();
-
- /**
- * Gets the sets the composite.
- *
- * @return the sets the composite
- */
- public SetComposite getSetComposite() {
- return setComposite;
- }
-
- /**
- * Sets the sets the composite.
- *
- * @param setComposite the new sets the composite
- */
- public void setSetComposite(SetComposite setComposite) {
- this.setComposite = setComposite;
- }
-
- /**
- * Gets the filters.
- *
- * @return the filters
- */
- public Set getFilters() {
- return filters;
- }
-
- /**
- * Sets the filters.
- *
- * @param filters the new filters
- */
- public void setFilters(Set filters) {
- this.filters = filters;
- }
-}
\ No newline at end of file
diff --git a/cts2-model/src/main/java/org/cts2/uri/restriction/SetComposite.java b/cts2-model/src/main/java/org/cts2/uri/restriction/SetComposite.java
deleted file mode 100644
index 9e6ce9e430..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/restriction/SetComposite.java
+++ /dev/null
@@ -1,94 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.uri.restriction;
-
-import org.cts2.core.types.SetOperator;
-import org.cts2.uri.DirectoryURI;
-
-/**
- * The Class SetComposite.
- *
- * @param the
- * @author Kevin Peterson
- */
-public class SetComposite {
-
- /** The set operator. */
- private SetOperator setOperator;
-
- /** The directory uri1. */
- private T directoryUri1;
-
- /** The directory uri2. */
- private T directoryUri2;
-
- /**
- * Gets the sets the operator.
- *
- * @return the sets the operator
- */
- public SetOperator getSetOperator() {
- return setOperator;
- }
-
- /**
- * Sets the sets the operator.
- *
- * @param setOperator the new sets the operator
- */
- public void setSetOperator(SetOperator setOperator) {
- this.setOperator = setOperator;
- }
-
- /**
- * Gets the directory uri1.
- *
- * @return the directory uri1
- */
- public T getDirectoryUri1() {
- return directoryUri1;
- }
-
- /**
- * Sets the directory uri1.
- *
- * @param directoryUri1 the new directory uri1
- */
- public void setDirectoryUri1(T directoryUri1) {
- this.directoryUri1 = directoryUri1;
- }
-
- /**
- * Gets the directory uri2.
- *
- * @return the directory uri2
- */
- public T getDirectoryUri2() {
- return directoryUri2;
- }
-
- /**
- * Sets the directory uri2.
- *
- * @param directoryUri2 the new directory uri2
- */
- public void setDirectoryUri2(T directoryUri2) {
- this.directoryUri2 = directoryUri2;
- }
-}
\ No newline at end of file
diff --git a/cts2-model/src/main/java/org/cts2/uri/restriction/ValueSetDefinitionRestrictionState.java b/cts2-model/src/main/java/org/cts2/uri/restriction/ValueSetDefinitionRestrictionState.java
deleted file mode 100644
index f6ea4dd966..0000000000
--- a/cts2-model/src/main/java/org/cts2/uri/restriction/ValueSetDefinitionRestrictionState.java
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.uri.restriction;
-
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-import org.cts2.core.EntityReference;
-import org.cts2.uri.ValueSetDefinitionDirectoryURI;
-
-/**
- * The Class ValueSetDefinitionRestrictionState.
- *
- * @author Kevin Peterson
- */
-public class ValueSetDefinitionRestrictionState extends
- RestrictionState {
-
- private Set restrictToEntitiesRestriction = new HashSet();
-
- /**
- * The Class RestrictToEntitiesRestriction.
- *
- * @author Kevin Peterson
- */
- public static class RestrictToEntitiesRestriction {
-
- /** The code system versions. */
- private List entityReferences;
-
- /**
- * Sets the entity references.
- *
- * @param entityReferences the new entity references
- */
- public void setEntityReferences(List entityReferences) {
- this.entityReferences = entityReferences;
- }
-
- /**
- * Gets the entity references.
- *
- * @return the entity references
- */
- public List getEntityReferences() {
- return entityReferences;
- }
-
-
- }
-
- /**
- * Sets the restrict to entities restriction.
- *
- * @param restrictToEntitiesRestriction the new restrict to entities restriction
- */
- public void setRestrictToEntitiesRestriction(
- Set restrictToEntitiesRestriction) {
- this.restrictToEntitiesRestriction = restrictToEntitiesRestriction;
- }
-
- /**
- * Gets the restrict to entities restriction.
- *
- * @return the restrict to entities restriction
- */
- public Set getRestrictToEntitiesRestriction() {
- return restrictToEntitiesRestriction;
- }
-
-}
\ No newline at end of file
diff --git a/cts2Impl/.classpath b/cts2Impl/.classpath
deleted file mode 100644
index 3875862ae5..0000000000
--- a/cts2Impl/.classpath
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/cts2Impl/.project b/cts2Impl/.project
deleted file mode 100644
index 39f4a3e33c..0000000000
--- a/cts2Impl/.project
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
- cts2Impl
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
-
- org.eclipse.jdt.core.javanature
- org.apache.ivyde.eclipse.ivynature
-
-
diff --git a/cts2Impl/.settings/org.eclipse.jdt.core.prefs b/cts2Impl/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index dd53e5cf0b..0000000000
--- a/cts2Impl/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,12 +0,0 @@
-#Tue Jun 01 08:26:38 CDT 2010
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
diff --git a/cts2Impl/build.properties b/cts2Impl/build.properties
deleted file mode 100755
index 9f2817787d..0000000000
--- a/cts2Impl/build.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-#Generated by Maven Ant Plugin - DO NOT EDIT THIS FILE!
-#Mon Aug 31 13:56:58 CDT 2009
-lbPackager.dir=../lbPackager
-ivy.organisation=lexevs
-test.reports=${build.dir}/test-reports
-reporting.outputDirectory=${build.dir}/site
-build.outputDir=${build.dir}/classes
-build.resourceDir=src/main/resources
-build.testOutputDir=${build.dir}/test-classes
-settings.offline=false
-build.dir=target
-settings.interactiveMode=true
-build.srcDir=src/main/java
-build.testDir=NA
-build.testResourceDir=NA
-test.skip=true
-no.tests=true
diff --git a/cts2Impl/build.xml b/cts2Impl/build.xml
deleted file mode 100755
index bd5917e2d0..0000000000
--- a/cts2Impl/build.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/cts2Impl/ivy.xml b/cts2Impl/ivy.xml
deleted file mode 100755
index 3d9a6a1258..0000000000
--- a/cts2Impl/ivy.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/cts2Impl/src/main/java/org/cts2/constant/ExternalCts2Constants.java b/cts2Impl/src/main/java/org/cts2/constant/ExternalCts2Constants.java
deleted file mode 100644
index 8ee8ff443c..0000000000
--- a/cts2Impl/src/main/java/org/cts2/constant/ExternalCts2Constants.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.constant;
-
-/**
- * The Class ExternalCts2Constants.
- *
- * @author Kevin Peterson
- */
-public class ExternalCts2Constants {
-
- public static final String CONCAT_STRING = ":";
-
- public static final String SLASH = "/";
-
- public static final String CTS2_URI = "http://cts2.org";
-
- public static final String MODEL = "model";
-
- public static final String ATTRIBUTE = "attribute";
-
- public static final String MA_ENTITY_DESCRIPTION_DESIGNATION_NAME = "entityDescriptionDesignation";
-
- public static final String MA_ABOUT_NAME = "about";
-
- public static final String MA_MAPVERSION_NAME_MEANING = "MODEL_ATTRIBUTE_ROOT#mapVersion";
-
- public static final String MA_MAPVERSION_NAME_CONTENT = "MapVersion";
-
- private static final String MODEL_ATTRIBUTE_ROOT = CTS2_URI + SLASH + MODEL + SLASH + ATTRIBUTE;
-
- public static final String MA_ABOUT_URI = MODEL_ATTRIBUTE_ROOT + CONCAT_STRING + MA_ABOUT_NAME;
-
- public static final String MA_ENTITY_DESCRIPTION_DESIGNATION_URI = MODEL_ATTRIBUTE_ROOT + CONCAT_STRING + MA_ENTITY_DESCRIPTION_DESIGNATION_NAME;
-
-}
-
diff --git a/cts2Impl/src/main/java/org/cts2/internal/lexevs/identity/DefaultLexEvsIdentityConverter.java b/cts2Impl/src/main/java/org/cts2/internal/lexevs/identity/DefaultLexEvsIdentityConverter.java
deleted file mode 100644
index fd89dd50d9..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/lexevs/identity/DefaultLexEvsIdentityConverter.java
+++ /dev/null
@@ -1,373 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.lexevs.identity;
-
-import java.util.List;
-
-import org.LexGrid.LexBIG.DataModel.Core.AbsoluteCodingSchemeVersionReference;
-import org.LexGrid.LexBIG.DataModel.Core.CodingSchemeSummary;
-import org.LexGrid.LexBIG.DataModel.Core.ConceptReference;
-import org.LexGrid.LexBIG.Exceptions.LBParameterException;
-import org.LexGrid.LexBIG.LexBIGService.LexBIGService;
-import org.LexGrid.LexBIG.Utility.ServiceUtility;
-import org.LexGrid.codingSchemes.CodingScheme;
-import org.apache.commons.lang.StringUtils;
-import org.cts2.core.types.DefinitionRole;
-import org.cts2.entity.types.DesignationRole;
-import org.cts2.service.core.EntityNameOrURI;
-import org.cts2.service.core.NameOrURI;
-import org.lexevs.locator.LexEvsServiceLocator;
-import org.lexevs.system.service.CodingSchemeAliasHolder;
-import org.lexevs.system.service.SystemResourceService.CodingSchemeMatcher;
-
-/**
- * The Class LexEvsIdentityConverter.
- *
- * @author Kevin Peterson
- */
-public class DefaultLexEvsIdentityConverter implements LexEvsIdentityConverter {
-
- /** The DEFAUL t_ nam e_ conca t_ string. */
- public static String DEFAULT_NAME_CONCAT_STRING = ":";
-
- /** The DEFAUL t_ ur i_ conca t_ string. */
- public static String DEFAULT_URI_CONCAT_STRING = ":";
-
- /** The name concat string. */
- private String nameConcatString = DEFAULT_NAME_CONCAT_STRING;
-
- /** The uri concat string. */
- private String uriConcatString = DEFAULT_URI_CONCAT_STRING;
-
- /** The lex big service. */
- public LexBIGService lexBigService;
-
- private LexEvsServiceLocator lexEvsServiceLocator;
-
- /*
- * (non-Javadoc)
- *
- * @see org.cts2.internal.lexevs.identity.LexEvsIdentityConverter#
- * nameOrUriToAbsoluteCodingSchemeVersionReference
- * (org.cts2.service.core.NameOrURI)
- */
- @Override
- public AbsoluteCodingSchemeVersionReference nameOrUriToAbsoluteCodingSchemeVersionReference(
- NameOrURI nameOrUri) {
- if (StringUtils.isNotBlank(nameOrUri.getName())) {
- return this.codeSystemVersionNameToCodingSchemeReference(nameOrUri
- .getName());
- } else {
- return this
- .codeSystemVersionDocumentUriToCodingSchemeReference(nameOrUri
- .getUri());
- }
- }
-
- @Override
- public ConceptReference entityNameOrUriToConceptReference(
- EntityNameOrURI nameOrUri) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.cts2.internal.lexevs.identity.LexEvsIdentityConverter#
- * codeSystemVersionNameToCodingSchemeReference(java.lang.String)
- */
- @Override
- public AbsoluteCodingSchemeVersionReference codeSystemVersionNameToCodingSchemeReference(
- String codeSystemVersionName) {
-
- return this.getCodeSystemVersionNameMatch(codeSystemVersionName);
- }
-
- @Override
- public String codingSchemeToCodeSystemVersionName(CodingScheme codingScheme) {
- return this.constructCodeSystemVersionName(
- codingScheme.getCodingSchemeName(),
- codingScheme.getRepresentsVersion());
- }
-
- @Override
- public String codingSchemeSummaryToCodeSystemVersionName(
- CodingSchemeSummary codingSchemeSummary) {
- return this.constructCodeSystemVersionName(
- codingSchemeSummary.getLocalName(),
- codingSchemeSummary.getRepresentsVersion());
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.cts2.internal.lexevs.identity.LexEvsIdentityConverter#
- * codingSchemeReferenceToCodeSystemVersionName
- * (org.LexGrid.LexBIG.DataModel.Core.AbsoluteCodingSchemeVersionReference)
- */
- @Override
- public String codingSchemeReferenceToCodeSystemVersionName(
- AbsoluteCodingSchemeVersionReference ref) {
- String codingSchemeName;
- try {
- codingSchemeName = ServiceUtility.getCodingSchemeName(
- ref.getCodingSchemeURN(), ref.getCodingSchemeVersion());
- } catch (LBParameterException e) {
- throw new RuntimeException(e);
- }
- return this.constructCodeSystemVersionName(codingSchemeName,
- ref.getCodingSchemeVersion());
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.cts2.internal.lexevs.identity.LexEvsIdentityConverter#
- * codeSystemVersionDocumentUriToCodingSchemeReference(java.lang.String)
- */
- @Override
- public AbsoluteCodingSchemeVersionReference codeSystemVersionDocumentUriToCodingSchemeReference(
- String codeSystemVersionDocumentUri) {
-
- return this
- .getCodeSystemVersionDocumentUriMatch(codeSystemVersionDocumentUri);
- }
-
- @Override
- public String codingSchemeToCodeSystemVersionDocumentUri(
- CodingScheme codingScheme) {
- return this.constructCodeSystemVersionDocumentUri(
- codingScheme.getCodingSchemeURI(),
- codingScheme.getRepresentsVersion());
- }
-
- @Override
- public String codingSchemeReferenceToCodeSystemVersionDocumentUri(
- AbsoluteCodingSchemeVersionReference ref) {
-
- return this.constructCodeSystemVersionDocumentUri(
- ref.getCodingSchemeURN(), ref.getCodingSchemeVersion());
- }
-
- /**
- * Gets the code system version name match.
- *
- * @param codeSystemVersionLocalName
- * the code system version local name
- * @return the code system version name match
- */
- protected AbsoluteCodingSchemeVersionReference getCodeSystemVersionNameMatch(
- final String codeSystemVersionLocalName) {
- List result = lexEvsServiceLocator
- .getSystemResourceService().getMatchingCodingSchemeResources(
- new CodingSchemeMatcher() {
-
- @Override
- public boolean isMatch(
- CodingSchemeAliasHolder aliasHolder) {
- return StringUtils
- .equals(codeSystemVersionLocalName,
- constructCodeSystemVersionName(
- aliasHolder
- .getCodingSchemeName(),
- aliasHolder
- .getRepresentsVersion()));
- }
- });
-
- if (result.size() != 1) {
- throw new RuntimeException(
- "Error -- waiting for real CTS2 exceptions...");
- }
-
- return result.get(0);
- }
-
- /**
- * Gets the code system version document uri match.
- *
- * @param documentUri
- * the document uri
- * @return the code system version document uri match
- */
- protected AbsoluteCodingSchemeVersionReference getCodeSystemVersionDocumentUriMatch(
- final String documentUri) {
- List result = lexEvsServiceLocator
- .getSystemResourceService().getMatchingCodingSchemeResources(
- new CodingSchemeMatcher() {
-
- @Override
- public boolean isMatch(
- CodingSchemeAliasHolder aliasHolder) {
- return StringUtils
- .equals(documentUri,
- constructCodeSystemVersionDocumentUri(
- aliasHolder
- .getCodingSchemeName(),
- aliasHolder
- .getRepresentsVersion()));
- }
- });
-
- if (result.size() != 1) {
- throw new RuntimeException(
- "Error -- waiting for real CTS2 exceptions...");
- }
-
- return result.get(0);
- }
-
- /**
- * Construct code system version name.
- *
- * @param codingSchemeName
- * the coding scheme name
- * @param version
- * the version
- * @return the string
- */
- protected String constructCodeSystemVersionName(String codingSchemeName,
- String version) {
- return codingSchemeName + nameConcatString + version;
- }
-
- /**
- * Construct map version name.
- *
- * @param codingSchemeName
- * the coding scheme name
- * @param version
- * the version
- * @return the string
- */
- protected String constructMapVersionName(String codingSchemeName,
- String version) {
- return codingSchemeName + nameConcatString + version;
- }
-
- /**
- * Construct code system version document uri.
- *
- * @param uri
- * the uri
- * @param version
- * the version
- * @return the string
- */
- protected String constructCodeSystemVersionDocumentUri(String uri,
- String version) {
- return uri + uriConcatString + version;
- }
-
- /**
- * Gets the name concat string.
- *
- * @return the name concat string
- */
- public String getNameConcatString() {
- return nameConcatString;
- }
-
- /**
- * Sets the name concat string.
- *
- * @param nameConcatString
- * the new name concat string
- */
- public void setNameConcatString(String nameConcatString) {
- this.nameConcatString = nameConcatString;
- }
-
- /**
- * Gets the uri concat string.
- *
- * @return the uri concat string
- */
- public String getUriConcatString() {
- return uriConcatString;
- }
-
- /**
- * Sets the uri concat string.
- *
- * @param uriConcatString
- * the new uri concat string
- */
- public void setUriConcatString(String uriConcatString) {
- this.uriConcatString = uriConcatString;
- }
-
- /**
- * Gets the lex big service.
- *
- * @return the lex big service
- */
- public LexBIGService getLexBigService() {
- return lexBigService;
- }
-
- /**
- * Sets the lex big service.
- *
- * @param lexBigService
- * the new lex big service
- */
- public void setLexBigService(LexBIGService lexBigService) {
- this.lexBigService = lexBigService;
- }
-
- @Override
- public String nsUriAndCodeToUri(String nsUri, String code) {
- return nsUri + this.uriConcatString + code;
- }
-
- @Override
- public DesignationRole preferredtoDestinationRole(boolean b) {
- if (b == true)
- return DesignationRole.PREFERRED;
- else
- return DesignationRole.ALTERNATIVE;
- }
-
- @Override
- public DefinitionRole preferredtoDefinitionRole(boolean b) {
- if (b == true)
- return DefinitionRole.NORMATIVE;
- else
- return DefinitionRole.INFORMATIVE;
- }
-
- public void setLexEvsServiceLocator(
- LexEvsServiceLocator lexEvsServiceLocator) {
- this.lexEvsServiceLocator = lexEvsServiceLocator;
- }
-
- public LexEvsServiceLocator getLexEvsServiceLocator() {
- return lexEvsServiceLocator;
- }
-
- @Override
- public String codingSchemeSummaryToMapVersionName(
- CodingSchemeSummary codingSchemeSummary) {
- return this.constructMapVersionName(
- codingSchemeSummary.getLocalName(),
- codingSchemeSummary.getRepresentsVersion());
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/lexevs/identity/LexEvsIdentityConverter.java b/cts2Impl/src/main/java/org/cts2/internal/lexevs/identity/LexEvsIdentityConverter.java
deleted file mode 100644
index 863b53c4a6..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/lexevs/identity/LexEvsIdentityConverter.java
+++ /dev/null
@@ -1,76 +0,0 @@
-package org.cts2.internal.lexevs.identity;
-
-import org.LexGrid.LexBIG.DataModel.Core.AbsoluteCodingSchemeVersionReference;
-import org.LexGrid.LexBIG.DataModel.Core.CodingSchemeSummary;
-import org.LexGrid.LexBIG.DataModel.Core.ConceptReference;
-import org.LexGrid.codingSchemes.CodingScheme;
-import org.cts2.core.types.DefinitionRole;
-import org.cts2.entity.types.DesignationRole;
-import org.cts2.service.core.EntityNameOrURI;
-import org.cts2.service.core.NameOrURI;
-
-public interface LexEvsIdentityConverter {
-
- /**
- * Name or uri to absolute coding scheme version reference.
- *
- * @param nameOrUri
- * the name or uri
- * @return the absolute coding scheme version reference
- */
- public AbsoluteCodingSchemeVersionReference nameOrUriToAbsoluteCodingSchemeVersionReference(
- NameOrURI nameOrUri);
-
- public ConceptReference entityNameOrUriToConceptReference(
- EntityNameOrURI nameOrUri);
-
- /**
- * Code system version name to coding scheme reference.
- *
- * @param codeSystemVersionName
- * the code system version name
- * @return the absolute coding scheme version reference
- */
- public AbsoluteCodingSchemeVersionReference codeSystemVersionNameToCodingSchemeReference(
- String codeSystemVersionName);
-
- /**
- * Coding scheme reference to code system version name.
- *
- * @param ref
- * the ref
- * @return the string
- */
- public String codingSchemeReferenceToCodeSystemVersionName(
- AbsoluteCodingSchemeVersionReference ref);
-
- public String codingSchemeToCodeSystemVersionName(CodingScheme codingScheme);
-
- public String codingSchemeSummaryToCodeSystemVersionName(
- CodingSchemeSummary codingSchemeSummary);
-
- public String codingSchemeSummaryToMapVersionName(
- CodingSchemeSummary codingSchemeSummary);
-
- public String codingSchemeReferenceToCodeSystemVersionDocumentUri(
- AbsoluteCodingSchemeVersionReference ref);
-
- /**
- * Code system version document uri to coding scheme reference.
- *
- * @param codeSystemVersionDocumentUri
- * the code system version document uri
- * @return the absolute coding scheme version reference
- */
- public AbsoluteCodingSchemeVersionReference codeSystemVersionDocumentUriToCodingSchemeReference(
- String codeSystemVersionDocumentUri);
-
- public String codingSchemeToCodeSystemVersionDocumentUri(
- CodingScheme codingScheme);
-
- public String nsUriAndCodeToUri(String nsUri, String code);
-
- public DesignationRole preferredtoDestinationRole(boolean b);
-
- public DefinitionRole preferredtoDefinitionRole(boolean b);
-}
\ No newline at end of file
diff --git a/cts2Impl/src/main/java/org/cts2/internal/logging/LoggingAspect.java b/cts2Impl/src/main/java/org/cts2/internal/logging/LoggingAspect.java
deleted file mode 100644
index a6a5e9e2c5..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/logging/LoggingAspect.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.logging;
-
-import org.LexGrid.LexBIG.Utility.logging.LgLoggerIF;
-import org.aspectj.lang.ProceedingJoinPoint;
-import org.aspectj.lang.annotation.Around;
-import org.aspectj.lang.annotation.Aspect;
-import org.aspectj.lang.reflect.MethodSignature;
-import org.lexevs.logging.LoggerFactory;
-
-/**
- * The Class LoggingAspect.
- *
- * @author Kevin Peterson
- */
-@Aspect
-public class LoggingAspect {
-
- private LgLoggerIF logger;
-
- /**
- * Log method.
- *
- * @param pjp the pjp
- * @return the object
- * @throws Throwable the throwable
- */
- @Around("@within(org.cts2.internal.logging.annotation.Loggable) && " +
- "( @annotation(org.cts2.internal.logging.annotation.Loggable) )")
- public Object logMethod(ProceedingJoinPoint pjp) throws Throwable {
- MethodSignature sig = (MethodSignature)pjp.getSignature();
-
- String msg = this.logMethod(sig);
-
- this.logger.info(msg);
-
- return pjp.proceed();
- }
-
- /**
- * Log method.
- *
- * @param signature the signature
- * @return the string
- */
- protected String logMethod(MethodSignature signature){
- return signature.toLongString();
- }
-
- public void setLogger(LgLoggerIF logger) {
- this.logger = logger;
- }
-
- public LgLoggerIF getLogger() {
- return logger;
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/logging/annotation/Loggable.java b/cts2Impl/src/main/java/org/cts2/internal/logging/annotation/Loggable.java
deleted file mode 100644
index cf5bde879f..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/logging/annotation/Loggable.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package org.cts2.internal.logging.annotation;
-
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-@Retention(RetentionPolicy.RUNTIME)
-@Target({ElementType.METHOD,ElementType.TYPE})
-public @interface Loggable {
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/BaseDozerBeanMapper.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/BaseDozerBeanMapper.java
deleted file mode 100644
index 09b1b3587a..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/BaseDozerBeanMapper.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.mapper;
-
-import org.dozer.DozerBeanMapper;
-
-/**
- * The Class BaseDozerBeanMapper.
- *
- * @author Kevin Peterson
- */
-public class BaseDozerBeanMapper implements BeanMapper{
-
- /** The dozer bean mapper. */
- private DozerBeanMapper dozerBeanMapper;
-
- /* (non-Javadoc)
- * @see org.cts2.internal.mapper.BeanMapper#map(java.lang.Object, java.lang.Class)
- */
- public T map(Object source, Class targetClass){
- return this.dozerBeanMapper.map(source, targetClass);
- }
-
- /**
- * Gets the dozer bean mapper.
- *
- * @return the dozer bean mapper
- */
- public DozerBeanMapper getDozerBeanMapper() {
- return this.dozerBeanMapper;
- }
-
- /**
- * Sets the dozer bean mapper.
- *
- * @param dozerBeanMapper the new dozer bean mapper
- */
- public void setDozerBeanMapper(DozerBeanMapper dozerBeanMapper) {
- this.dozerBeanMapper = dozerBeanMapper;
- }
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/BeanMapper.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/BeanMapper.java
deleted file mode 100644
index 3587069cfb..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/BeanMapper.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.mapper;
-
-/**
- * The Interface BeanMapper.
- *
- * @author Kevin Peterson
- */
-public interface BeanMapper {
-
- /**
- * Map.
- *
- * @param the
- * @param source the source
- * @param targetClass the target class
- * @return the t
- */
- public T map(Object source, Class targetClass);
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/AnonymousEntityDescriptionAboutConverter.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/AnonymousEntityDescriptionAboutConverter.java
deleted file mode 100644
index c310848a4c..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/AnonymousEntityDescriptionAboutConverter.java
+++ /dev/null
@@ -1,76 +0,0 @@
-package org.cts2.internal.mapper.converter;
-
-import org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference;
-import org.LexGrid.codingSchemes.CodingScheme;
-import org.LexGrid.naming.SupportedNamespace;
-
-import org.apache.commons.lang.StringUtils;
-import org.cts2.entity.AnonymousEntityDescription;
-import org.cts2.internal.lexevs.identity.LexEvsIdentityConverter;
-import org.dozer.DozerConverter;
-import org.lexevs.dao.database.service.codingscheme.CodingSchemeService;
-import org.lexevs.dao.database.utility.DaoUtility;
-
-public class AnonymousEntityDescriptionAboutConverter extends
- DozerConverter {
- private CodingSchemeService codingSchemeService;
- private LexEvsIdentityConverter lexEvsIdentityConverter;
-
- public AnonymousEntityDescriptionAboutConverter() {
- super(ResolvedConceptReference.class, AnonymousEntityDescription.class);
- }
-
- public CodingSchemeService getCodingSchemeService() {
- return codingSchemeService;
- }
-
- public void setCodingSchemeService(CodingSchemeService codingSchemeService) {
- this.codingSchemeService = codingSchemeService;
- }
-
- public LexEvsIdentityConverter getLexEvsIdentityConverter() {
- return lexEvsIdentityConverter;
- }
-
- public void setLexEvsIdentityConverter(
- LexEvsIdentityConverter lexEvsIdentityConverter) {
- this.lexEvsIdentityConverter = lexEvsIdentityConverter;
- }
-
- @Override
- public ResolvedConceptReference convertFrom(AnonymousEntityDescription source,
- ResolvedConceptReference target) {
- return null;
- }
-
- @Override
- public AnonymousEntityDescription convertTo(ResolvedConceptReference source,
- AnonymousEntityDescription target) {
-
- if (StringUtils.isBlank(source.getCode())
- || StringUtils.isBlank(source.getCodeNamespace())) {
- return target;
- }
- CodingScheme cs = codingSchemeService.getCodingSchemeByUriAndVersion(
- source.getCodingSchemeURI(), source.getCodingSchemeVersion());
-
- if (cs != null) {
- try {
- SupportedNamespace sns = DaoUtility.getURIMap(cs,
- SupportedNamespace.class, source.getCodeNamespace());
- String uri;
- if (sns != null && !StringUtils.isBlank(sns.getUri())) {
- uri = lexEvsIdentityConverter.nsUriAndCodeToUri(sns.getUri(), source.getCode());
- }
- else {
- uri = lexEvsIdentityConverter.nsUriAndCodeToUri(cs.getCodingSchemeURI(), source.getCode());
- }
- target.setAbout(uri);
- } catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- return target;
- }
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/AnonymousEntityDescriptionDefinitionListConverter.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/AnonymousEntityDescriptionDefinitionListConverter.java
deleted file mode 100644
index 029811ae0f..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/AnonymousEntityDescriptionDefinitionListConverter.java
+++ /dev/null
@@ -1,102 +0,0 @@
-package org.cts2.internal.mapper.converter;
-
-import org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference;
-import org.LexGrid.codingSchemes.CodingScheme;
-import org.LexGrid.naming.SupportedContext;
-import org.LexGrid.naming.SupportedDataType;
-import org.LexGrid.naming.SupportedLanguage;
-import org.apache.commons.lang.StringUtils;
-import org.cts2.core.ContextReference;
-import org.cts2.entity.AnonymousEntityDescription;
-import org.cts2.internal.mapper.BaseDozerBeanMapper;
-import org.dozer.DozerConverter;
-import org.lexevs.dao.database.service.codingscheme.CodingSchemeService;
-import org.lexevs.dao.database.utility.DaoUtility;
-
-public class AnonymousEntityDescriptionDefinitionListConverter extends
- DozerConverter {
-
- private BaseDozerBeanMapper baseDozerBeanMapper;
- private CodingSchemeService codingSchemeService;
-
- public AnonymousEntityDescriptionDefinitionListConverter() {
- super(ResolvedConceptReference.class, AnonymousEntityDescription.class);
- }
-
- public BaseDozerBeanMapper getBaseDozerBeanMapper() {
- return baseDozerBeanMapper;
- }
-
- public void setBaseDozerBeanMapper(BaseDozerBeanMapper baseDozerBeanMapper) {
- this.baseDozerBeanMapper = baseDozerBeanMapper;
- }
-
- @Override
- public ResolvedConceptReference convertFrom(AnonymousEntityDescription source,
- ResolvedConceptReference target) {
- return null;
- }
-
- @Override
- public AnonymousEntityDescription convertTo(ResolvedConceptReference source,
- AnonymousEntityDescription target) {
- if (StringUtils.isBlank(source.getCode())
- || StringUtils.isBlank(source.getCodeNamespace())) {
- return target;
- }
- CodingScheme cs = codingSchemeService.getCodingSchemeByUriAndVersion(
- source.getCodingSchemeURI(), source.getCodingSchemeVersion());
-
- for (org.LexGrid.concepts.Definition d : source.getEntity()
- .getDefinition()) {
- org.cts2.core.Definition definition = this.baseDozerBeanMapper.map(
- d, org.cts2.core.Definition.class);
-
- // process supported mappings
- if (cs != null) {
- if (definition.getFormat() != null
- && !StringUtils.isEmpty(definition.getFormat()
- .getContent())) {
- SupportedDataType supportedDataType = DaoUtility.getURIMap(
- cs, SupportedDataType.class, definition.getFormat()
- .getContent());
- if (supportedDataType != null)
- definition.getFormat().setMeaning(
- supportedDataType.getUri());
- }
-
- if (definition.getLanguage() != null
- && !StringUtils.isEmpty(definition.getLanguage()
- .getContent())) {
- SupportedLanguage supportedLanguage = DaoUtility.getURIMap(
- cs, SupportedLanguage.class, definition
- .getLanguage().getContent());
- if (supportedLanguage != null)
- definition.getLanguage().setMeaning(
- supportedLanguage.getUri());
- }
-
- ContextReference context = definition.getUsageContext();
- if (context != null
- && !StringUtils.isEmpty(context.getContent())) {
- SupportedContext supportedContext = DaoUtility.getURIMap(
- cs, SupportedContext.class, context.getContent());
- if (supportedContext != null) {
- context.setMeaning(supportedContext.getUri());
- }
- }
- }
- target.addDefinition(definition);
- }
- return target;
- }
-
- public void setCodingSchemeService(CodingSchemeService codingSchemeService) {
- this.codingSchemeService = codingSchemeService;
- }
-
- public CodingSchemeService getCodingSchemeService() {
- return codingSchemeService;
- }
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/AnonymousEntityDescriptionDesignationListConverter.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/AnonymousEntityDescriptionDesignationListConverter.java
deleted file mode 100644
index 951bb0098c..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/AnonymousEntityDescriptionDesignationListConverter.java
+++ /dev/null
@@ -1,126 +0,0 @@
-package org.cts2.internal.mapper.converter;
-
-import org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference;
-import org.LexGrid.codingSchemes.CodingScheme;
-import org.LexGrid.naming.SupportedContext;
-import org.LexGrid.naming.SupportedDataType;
-import org.LexGrid.naming.SupportedDegreeOfFidelity;
-import org.LexGrid.naming.SupportedLanguage;
-import org.LexGrid.naming.SupportedProperty;
-import org.apache.commons.lang.StringUtils;
-import org.cts2.core.ContextReference;
-import org.cts2.entity.AnonymousEntityDescription;
-import org.cts2.internal.mapper.BaseDozerBeanMapper;
-import org.dozer.DozerConverter;
-import org.hsqldb.lib.StringUtil;
-import org.lexevs.dao.database.service.codingscheme.CodingSchemeService;
-import org.lexevs.dao.database.utility.DaoUtility;
-
-public class AnonymousEntityDescriptionDesignationListConverter extends
- DozerConverter {
-
- private BaseDozerBeanMapper baseDozerBeanMapper;
- private CodingSchemeService codingSchemeService;
-
- public AnonymousEntityDescriptionDesignationListConverter() {
- super(ResolvedConceptReference.class, AnonymousEntityDescription.class);
- }
-
- public BaseDozerBeanMapper getBaseDozerBeanMapper() {
- return baseDozerBeanMapper;
- }
-
- public void setBaseDozerBeanMapper(BaseDozerBeanMapper baseDozerBeanMapper) {
- this.baseDozerBeanMapper = baseDozerBeanMapper;
- }
-
- @Override
- public ResolvedConceptReference convertFrom(AnonymousEntityDescription source,
- ResolvedConceptReference target) {
- return null;
- }
-
- @Override
- public AnonymousEntityDescription convertTo(ResolvedConceptReference source,
- AnonymousEntityDescription target) {
- if (StringUtils.isBlank(source.getCode())
- || StringUtils.isBlank(source.getCodeNamespace())) {
- return target;
- }
- CodingScheme cs = codingSchemeService.getCodingSchemeByUriAndVersion(
- source.getCodingSchemeURI(), source.getCodingSchemeVersion());
-
- for (org.LexGrid.concepts.Presentation p : source.getEntity()
- .getPresentation()) {
- org.cts2.entity.Designation designation = this.baseDozerBeanMapper
- .map(p, org.cts2.entity.Designation.class);
-
- // process supported mappings
- if (cs != null) {
- if (designation.getDegreeOfFidelity() != null
- && !StringUtils.isEmpty(designation
- .getDegreeOfFidelity().getContent())) {
- SupportedDegreeOfFidelity supportedDegreeOfFidelity = DaoUtility
- .getURIMap(cs, SupportedDegreeOfFidelity.class,
- designation.getDegreeOfFidelity()
- .getContent());
- if (supportedDegreeOfFidelity != null)
- designation.getDegreeOfFidelity().setMeaning(
- supportedDegreeOfFidelity.getUri());
- }
- if (designation.getDesignationType() != null
- && !StringUtil.isEmpty(designation.getDesignationType()
- .getContent())) {
- SupportedProperty supportedProperty = DaoUtility.getURIMap(
- cs, SupportedProperty.class, designation
- .getDesignationType().getContent());
- if (supportedProperty != null)
- designation.getDesignationType().setMeaning(
- supportedProperty.getUri());
- }
-
- if (designation.getFormat() != null
- && !StringUtils.isEmpty(designation.getFormat()
- .getContent())) {
- SupportedDataType supportedDataType = DaoUtility.getURIMap(
- cs, SupportedDataType.class, designation
- .getFormat().getContent());
- if (supportedDataType != null)
- designation.getFormat().setMeaning(
- supportedDataType.getUri());
- }
-
- if (designation.getLanguage() != null
- && !StringUtils.isEmpty(designation.getLanguage()
- .getContent())) {
- SupportedLanguage supportedLanguage = DaoUtility.getURIMap(
- cs, SupportedLanguage.class, designation
- .getLanguage().getContent());
- if (supportedLanguage != null)
- designation.getLanguage().setMeaning(
- supportedLanguage.getUri());
- }
-
- for (ContextReference context : designation.getUsageContext()) {
- if (!StringUtils.isEmpty(context.getContent())){
- SupportedContext supportedContext = DaoUtility.getURIMap(cs, SupportedContext.class, context.getContent());
- if (supportedContext != null) {
- context.setMeaning(supportedContext.getUri());
- }
- }
- }
- }
- target.addDesignation(designation);
- }
- return target;
- }
-
- public void setCodingSchemeService(CodingSchemeService codingSchemeService) {
- this.codingSchemeService = codingSchemeService;
- }
-
- public CodingSchemeService getCodingSchemeService() {
- return codingSchemeService;
- }
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/AnonymousEntityDescriptionNoteListConverter.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/AnonymousEntityDescriptionNoteListConverter.java
deleted file mode 100644
index d5cf6b6e25..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/AnonymousEntityDescriptionNoteListConverter.java
+++ /dev/null
@@ -1,91 +0,0 @@
-package org.cts2.internal.mapper.converter;
-
-import org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference;
-import org.LexGrid.codingSchemes.CodingScheme;
-import org.LexGrid.naming.SupportedDataType;
-import org.LexGrid.naming.SupportedLanguage;
-import org.apache.commons.lang.StringUtils;
-import org.cts2.entity.AnonymousEntityDescription;
-import org.cts2.internal.mapper.BaseDozerBeanMapper;
-import org.dozer.DozerConverter;
-import org.lexevs.dao.database.service.codingscheme.CodingSchemeService;
-import org.lexevs.dao.database.utility.DaoUtility;
-
-public class AnonymousEntityDescriptionNoteListConverter extends
- DozerConverter {
-
- private BaseDozerBeanMapper baseDozerBeanMapper;
- private CodingSchemeService codingSchemeService;
-
- public AnonymousEntityDescriptionNoteListConverter() {
- super(ResolvedConceptReference.class, AnonymousEntityDescription.class);
- }
-
- public BaseDozerBeanMapper getBaseDozerBeanMapper() {
- return baseDozerBeanMapper;
- }
-
- public void setBaseDozerBeanMapper(BaseDozerBeanMapper baseDozerBeanMapper) {
- this.baseDozerBeanMapper = baseDozerBeanMapper;
- }
-
- @Override
- public ResolvedConceptReference convertFrom(AnonymousEntityDescription source,
- ResolvedConceptReference target) {
- return null;
- }
-
- @Override
- public AnonymousEntityDescription convertTo(ResolvedConceptReference source,
- AnonymousEntityDescription target) {
- if (StringUtils.isBlank(source.getCode())
- || StringUtils.isBlank(source.getCodeNamespace())) {
- return target;
- }
- CodingScheme cs = codingSchemeService.getCodingSchemeByUriAndVersion(
- source.getCodingSchemeURI(), source.getCodingSchemeVersion());
-
- for (org.LexGrid.concepts.Comment c : source.getEntity()
- .getComment()) {
- org.cts2.core.Comment comment = this.baseDozerBeanMapper.map(
- c, org.cts2.core.Comment.class);
-
- // process supported mappings
- if (cs != null) {
- if (comment.getFormat() != null
- && !StringUtils.isEmpty(comment.getFormat()
- .getContent())) {
- SupportedDataType supportedDataType = DaoUtility.getURIMap(
- cs, SupportedDataType.class, comment.getFormat()
- .getContent());
- if (supportedDataType != null)
- comment.getFormat().setMeaning(
- supportedDataType.getUri());
- }
-
- if (comment.getLanguage() != null
- && !StringUtils.isEmpty(comment.getLanguage()
- .getContent())) {
- SupportedLanguage supportedLanguage = DaoUtility.getURIMap(
- cs, SupportedLanguage.class, comment
- .getLanguage().getContent());
- if (supportedLanguage != null)
- comment.getLanguage().setMeaning(
- supportedLanguage.getUri());
- }
-
- }
- target.addNote(comment);
- }
- return target;
- }
-
- public void setCodingSchemeService(CodingSchemeService codingSchemeService) {
- this.codingSchemeService = codingSchemeService;
- }
-
- public CodingSchemeService getCodingSchemeService() {
- return codingSchemeService;
- }
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/AnonymousEntityDescriptionPropertyListConverter.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/AnonymousEntityDescriptionPropertyListConverter.java
deleted file mode 100644
index 95b176bd14..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/AnonymousEntityDescriptionPropertyListConverter.java
+++ /dev/null
@@ -1,90 +0,0 @@
-package org.cts2.internal.mapper.converter;
-
-import org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference;
-import org.LexGrid.codingSchemes.CodingScheme;
-import org.LexGrid.naming.SupportedDataType;
-import org.LexGrid.naming.SupportedLanguage;
-import org.apache.commons.lang.StringUtils;
-import org.cts2.core.EntryDescription;
-import org.cts2.entity.AnonymousEntityDescription;
-import org.cts2.internal.mapper.BaseDozerBeanMapper;
-import org.dozer.DozerConverter;
-import org.lexevs.dao.database.service.codingscheme.CodingSchemeService;
-import org.lexevs.dao.database.utility.DaoUtility;
-
-public class AnonymousEntityDescriptionPropertyListConverter extends
- DozerConverter {
-
- private BaseDozerBeanMapper baseDozerBeanMapper;
- private CodingSchemeService codingSchemeService;
-
- public AnonymousEntityDescriptionPropertyListConverter() {
- super(ResolvedConceptReference.class, AnonymousEntityDescription.class);
- }
-
- public BaseDozerBeanMapper getBaseDozerBeanMapper() {
- return baseDozerBeanMapper;
- }
-
- public void setBaseDozerBeanMapper(BaseDozerBeanMapper baseDozerBeanMapper) {
- this.baseDozerBeanMapper = baseDozerBeanMapper;
- }
-
- @Override
- public ResolvedConceptReference convertFrom(AnonymousEntityDescription source,
- ResolvedConceptReference target) {
- return null;
- }
-
- @Override
- public AnonymousEntityDescription convertTo(ResolvedConceptReference source,
- AnonymousEntityDescription target) {
- if (StringUtils.isBlank(source.getCode())
- || StringUtils.isBlank(source.getCodeNamespace())) {
- return target;
- }
- CodingScheme cs = codingSchemeService.getCodingSchemeByUriAndVersion(
- source.getCodingSchemeURI(), source.getCodingSchemeVersion());
-
- for (org.LexGrid.commonTypes.Property p : source.getEntity()
- .getProperty()) {
- org.cts2.core.Property ctsProp = this.baseDozerBeanMapper.map(p,
- org.cts2.core.Property.class);
-
- EntryDescription enDesc = ctsProp.getValue();
- // process supported mappings
- if (cs != null && enDesc != null) {
- if (enDesc.getFormat() != null
- && StringUtils.isEmpty(enDesc.getFormat().getContent()) == false) {
- SupportedDataType supportedDataType = DaoUtility.getURIMap(
- cs, SupportedDataType.class, enDesc.getFormat()
- .getContent());
- if (supportedDataType != null)
- enDesc.getFormat().setMeaning(
- supportedDataType.getUri());
- }
- if (enDesc.getLanguage() != null
- && StringUtils.isEmpty(enDesc.getLanguage()
- .getContent()) == false) {
- SupportedLanguage supportedLanguage = DaoUtility.getURIMap(
- cs, SupportedLanguage.class, enDesc.getLanguage()
- .getContent());
- if (supportedLanguage != null)
- enDesc.getLanguage().setMeaning(
- supportedLanguage.getUri());
- }
- }
- target.addProperty(ctsProp);
- }
- return target;
- }
-
- public void setCodingSchemeService(CodingSchemeService codingSchemeService) {
- this.codingSchemeService = codingSchemeService;
- }
-
- public CodingSchemeService getCodingSchemeService() {
- return codingSchemeService;
- }
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/ChangeTypeConverter.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/ChangeTypeConverter.java
deleted file mode 100644
index 738d583765..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/ChangeTypeConverter.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.mapper.converter;
-
-import org.LexGrid.versions.types.ChangeType;
-import org.dozer.DozerConverter;
-
-/**
- * The Class ChangeTypeConverter. LexGrid ChangeType <--> CTS2 ChangeType
- *
- * @author Sridhar Dwarkanath
- */
-public class ChangeTypeConverter extends DozerConverter {
-
- public ChangeTypeConverter() {
- super(ChangeType.class, org.cts2.core.types.ChangeType.class);
- }
-
- /* (non-Javadoc)
- * @see org.dozer.DozerConverter#convertFrom(java.lang.Object, java.lang.Object)
- */
- @Override
- public ChangeType convertFrom(
- org.cts2.core.types.ChangeType cts2ChangeType,
- ChangeType lgChangeType) {
- if(lgChangeType == null){
- return null;
- }
- switch (cts2ChangeType) {
- case CREATE : {
- return ChangeType.NEW;
- }
- case UPDATE : {
- return ChangeType.MODIFY;
- }
- case DELETE : {
- return ChangeType.REMOVE;
- }
- case METADATA : {
- return ChangeType.VERSIONABLE;
- }
- default : {
- throw new RuntimeException(cts2ChangeType + " cannot be mapped.");
- }
- }
- }
-
- /* (non-Javadoc)
- * @see org.dozer.DozerConverter#convertTo(java.lang.Object, java.lang.Object)
- */
- @Override
- public org.cts2.core.types.ChangeType convertTo(ChangeType lgChangeType, org.cts2.core.types.ChangeType cts2ChangeType) {
- if(lgChangeType == null){
- return null;
- }
- switch (lgChangeType) {
- case NEW : {
- return org.cts2.core.types.ChangeType.CREATE;
- }
- case MODIFY : {
- return org.cts2.core.types.ChangeType.UPDATE;
- }
- case REMOVE : {
- return org.cts2.core.types.ChangeType.DELETE;
- }
- case VERSIONABLE : {
- return org.cts2.core.types.ChangeType.METADATA;
- }
- default : {
- throw new RuntimeException(lgChangeType + " cannot be mapped.");
- }
- }
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/CodeSystemVersionDirectoryEntryIdentityConverter.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/CodeSystemVersionDirectoryEntryIdentityConverter.java
deleted file mode 100644
index 15f6a8fee5..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/CodeSystemVersionDirectoryEntryIdentityConverter.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.mapper.converter;
-
-import org.LexGrid.LexBIG.DataModel.InterfaceElements.CodingSchemeRendering;
-import org.LexGrid.LexBIG.Utility.Constructors;
-import org.cts2.codesystemversion.CodeSystemVersionDirectoryEntry;
-import org.cts2.internal.lexevs.identity.LexEvsIdentityConverter;
-import org.dozer.DozerConverter;
-
-/**
- * The Class DefinitionOperatorToSetOperatorConverter.
- *
- * @author Kevin Peterson
- */
-public class CodeSystemVersionDirectoryEntryIdentityConverter extends DozerConverter {
-
- private LexEvsIdentityConverter lexEvsIdentityConverter;
-
- public CodeSystemVersionDirectoryEntryIdentityConverter() {
- super(CodingSchemeRendering.class, CodeSystemVersionDirectoryEntry.class);
- }
-
- @Override
- public CodingSchemeRendering convertFrom(CodeSystemVersionDirectoryEntry codeSystemVersionDirectoryEntry,
- CodingSchemeRendering codingSchemeRendering) {
- return null;
- }
-
- @Override
- public CodeSystemVersionDirectoryEntry convertTo(CodingSchemeRendering codingSchemeRendering,
- CodeSystemVersionDirectoryEntry codeSystemVersionDirectoryEntry) {
-
- String codeSystemVersionDirectoryEntryName = this.lexEvsIdentityConverter.
- codingSchemeReferenceToCodeSystemVersionName(
- Constructors.createAbsoluteCodingSchemeVersionReference(codingSchemeRendering.getCodingSchemeSummary()));
-
- String codeSystemVersionDocumentUri = this.lexEvsIdentityConverter.
- codingSchemeReferenceToCodeSystemVersionDocumentUri(
- Constructors.createAbsoluteCodingSchemeVersionReference(codingSchemeRendering.getCodingSchemeSummary()));
-
- codeSystemVersionDirectoryEntry.setCodeSystemVersionName(codeSystemVersionDirectoryEntryName);
- codeSystemVersionDirectoryEntry.setResourceName(codeSystemVersionDirectoryEntryName);
- codeSystemVersionDirectoryEntry.setDocumentURI(codeSystemVersionDocumentUri);
- codeSystemVersionDirectoryEntry.setResourceID(codeSystemVersionDocumentUri);
-
- return codeSystemVersionDirectoryEntry;
- }
-
- public LexEvsIdentityConverter getLexEvsIdentityConverter() {
- return lexEvsIdentityConverter;
- }
-
- public void setLexEvsIdentityConverter(
- LexEvsIdentityConverter lexEvsIdentityConverter) {
- this.lexEvsIdentityConverter = lexEvsIdentityConverter;
- }
-}
\ No newline at end of file
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/CodeSystemVersionIdentityConverter.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/CodeSystemVersionIdentityConverter.java
deleted file mode 100644
index 3c15dcf6ad..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/CodeSystemVersionIdentityConverter.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.mapper.converter;
-
-import org.LexGrid.codingSchemes.CodingScheme;
-import org.cts2.codesystemversion.CodeSystemVersion;
-import org.cts2.internal.lexevs.identity.LexEvsIdentityConverter;
-import org.dozer.DozerConverter;
-
-/**
- * The Class DefinitionOperatorToSetOperatorConverter.
- *
- * @author Kevin Peterson
- */
-public class CodeSystemVersionIdentityConverter extends DozerConverter {
-
- private LexEvsIdentityConverter lexEvsIdentityConverter;
-
- public CodeSystemVersionIdentityConverter() {
- super(CodingScheme.class, CodeSystemVersion.class);
- }
-
- @Override
- public CodingScheme convertFrom(CodeSystemVersion csv, CodingScheme cs) {
- //this.lexEvsIdentityConverter.codingSchemeToCodeSystemVersionName(cs);
- return null;
- }
-
- @Override
- public CodeSystemVersion convertTo(CodingScheme cs, CodeSystemVersion csv) {
- String codeSystemVersionName =
- this.lexEvsIdentityConverter.codingSchemeToCodeSystemVersionName(cs);
-
- String codeSystemVersionDocumentUri =
- this.lexEvsIdentityConverter.codingSchemeToCodeSystemVersionDocumentUri(cs);
-
- csv.setCodeSystemVersionName(codeSystemVersionName);
- csv.setDocumentURI(codeSystemVersionDocumentUri);
-
- return csv;
- }
-
- public LexEvsIdentityConverter getLexEvsIdentityConverter() {
- return lexEvsIdentityConverter;
- }
-
- public void setLexEvsIdentityConverter(
- LexEvsIdentityConverter lexEvsIdentityConverter) {
- this.lexEvsIdentityConverter = lexEvsIdentityConverter;
- }
-
-}
\ No newline at end of file
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/CopyrightConverter.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/CopyrightConverter.java
deleted file mode 100644
index f2049a4cff..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/CopyrightConverter.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.mapper.converter;
-
-import org.LexGrid.codingSchemes.CodingScheme;
-import org.LexGrid.commonTypes.Text;
-import org.LexGrid.naming.SupportedDataType;
-import org.LexGrid.naming.URIMap;
-import org.cts2.codesystemversion.CodeSystemVersion;
-import org.cts2.core.DataTypeReference;
-import org.cts2.core.OpaqueData;
-import org.dozer.DozerConverter;
-import org.lexevs.dao.database.utility.DaoUtility;
-
-/**
- * The Class DefinitionOperatorToSetOperatorConverter.
- *
- * @author Kevin Peterson
- */
-public class CopyrightConverter extends DozerConverter {
-
- public CopyrightConverter() {
- super(CodingScheme.class, CodeSystemVersion.class);
- }
-
- @Override
- public CodingScheme convertFrom(CodeSystemVersion csv, CodingScheme cs) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public CodeSystemVersion convertTo(CodingScheme cs, CodeSystemVersion csv) {
- Text copyright = cs.getCopyright();
-
- if(copyright == null){
- return csv;
- }
-
- if(csv == null){
- csv = new CodeSystemVersion();
- }
-
- OpaqueData od = new OpaqueData();
- od.setValue(copyright.getContent());
- csv.setRights(od);
-
- String datatype = cs.getCopyright().getDataType();
-
- if(datatype != null){
-
- try {
- URIMap uriMap =
- DaoUtility.getURIMap(cs, SupportedDataType.class, datatype);
-
- DataTypeReference dataTypeRef = new DataTypeReference();
- dataTypeRef.setContent(uriMap.getLocalId());
- dataTypeRef.setHref(uriMap.getUri());
-
- csv.getRights().setFormat(dataTypeRef);
-
- } catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
-
- csv.setRights(od);
-
- return csv;
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/DefaultLanguageConverter.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/DefaultLanguageConverter.java
deleted file mode 100644
index 40d1df138c..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/DefaultLanguageConverter.java
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.mapper.converter;
-
-import org.LexGrid.codingSchemes.CodingScheme;
-import org.LexGrid.naming.SupportedLanguage;
-import org.LexGrid.naming.URIMap;
-import org.cts2.codesystemversion.CodeSystemVersion;
-import org.cts2.core.LanguageReference;
-import org.dozer.DozerConverter;
-import org.lexevs.dao.database.utility.DaoUtility;
-
-/**
- * The Class DefinitionOperatorToSetOperatorConverter.
- *
- * @author Kevin Peterson
- */
-public class DefaultLanguageConverter extends DozerConverter {
-
- public DefaultLanguageConverter() {
- super(CodingScheme.class, CodeSystemVersion.class);
- }
-
- @Override
- public CodingScheme convertFrom(CodeSystemVersion csv, CodingScheme cs) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public CodeSystemVersion convertTo(CodingScheme cs, CodeSystemVersion csv) {
- String language = cs.getDefaultLanguage();
-
- if(language == null){
- return csv;
- }
-
- if(csv == null){
- csv = new CodeSystemVersion();
- }
-
- try {
- URIMap uriMap =
- DaoUtility.getURIMap(cs, SupportedLanguage.class, language);
-
- if(uriMap == null){
- return csv;
- }
-
- LanguageReference languageRef = new LanguageReference();
- languageRef.setContent(uriMap.getLocalId());
- languageRef.setHref(uriMap.getUri());
-
- languageRef.setContent(language);
-
- csv.setDefaultLanguage(languageRef);
-
- } catch (Exception e) {
- throw new RuntimeException(e);
- }
-
- return csv;
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/DefinitionEntryToValueSetDefinitionEntryConverter.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/DefinitionEntryToValueSetDefinitionEntryConverter.java
deleted file mode 100644
index c53957dabe..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/DefinitionEntryToValueSetDefinitionEntryConverter.java
+++ /dev/null
@@ -1,215 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.mapper.converter;
-
-import org.LexGrid.valueSets.DefinitionEntry;
-import org.LexGrid.valueSets.EntityReference;
-import org.LexGrid.valueSets.PropertyReference;
-import org.cts2.core.CodeSystemReference;
-import org.cts2.core.FilterComponent;
-import org.cts2.core.MatchAlgorithmReference;
-import org.cts2.core.NameOrURI;
-import org.cts2.core.PredicateReference;
-import org.cts2.core.ScopedEntityName;
-import org.cts2.core.ValueSetReference;
-import org.cts2.core.types.SetOperator;
-import org.cts2.core.types.TargetReferenceType;
-import org.cts2.valueset.AssociatedEntitiesReference;
-import org.cts2.valueset.CompleteCodeSystemReference;
-import org.cts2.valueset.CompleteValueSetReference;
-import org.cts2.valueset.PropertyQueryReference;
-import org.cts2.valueset.ValueSetDefinitionEntry;
-import org.cts2.valueset.types.AssociationDirection;
-import org.cts2.valueset.types.LeafOrAll;
-import org.cts2.valueset.types.TransitiveClosure;
-import org.cts2.valueset.types.ValueSetDefinitionEntryType;
-import org.dozer.DozerConverter;
-
-/**
- * The Class DefinitionEntryToValueSetDefinitionEntryConverter.
- *
- * @author Sridhar Dwarkanath
- */
-public class DefinitionEntryToValueSetDefinitionEntryConverter extends DozerConverter {
-
- private DefinitionOperatorToSetOperatorConverter definitionOperatorToSetOperatorConverter;
-
- public DefinitionEntryToValueSetDefinitionEntryConverter() {
- super(DefinitionEntry.class, ValueSetDefinitionEntry.class);
- }
-
- /* (non-Javadoc)
- * @see org.dozer.DozerConverter#convertTo(java.lang.Object, java.lang.Object)
- */
- @Override
- public ValueSetDefinitionEntry convertTo(DefinitionEntry definitionEntry,
- ValueSetDefinitionEntry valueSetDefinitionEntry) {
- if (definitionOperatorToSetOperatorConverter == null)
- definitionOperatorToSetOperatorConverter = new DefinitionOperatorToSetOperatorConverter();
-
- ValueSetDefinitionEntry vde = null;
- if (definitionEntry.getCodingSchemeReference() != null)
- {
- CompleteCodeSystemReference csRef = new CompleteCodeSystemReference();
- CodeSystemReference cs = new CodeSystemReference();
- cs.setContent(definitionEntry.getCodingSchemeReference().getCodingScheme());
- csRef.setCodeSystem(cs);
-
- csRef.setEntryType(ValueSetDefinitionEntryType.COMPLETE_CODE_SYSTEM);
-
- csRef.setOperator(this.definitionOperatorToSetOperatorConverter.convertTo(definitionEntry.getOperator()));
-
- return csRef;
- } else if (definitionEntry.getValueSetDefinitionReference() != null)
- {
- CompleteValueSetReference vsRef = new CompleteValueSetReference();
-
- ValueSetReference vs = new ValueSetReference();
- vs.setContent(definitionEntry.getValueSetDefinitionReference().getValueSetDefinitionURI());
- vsRef.setValueSet(vs);
- vsRef.setValueSetDefinition(vs);
-
- vsRef.setEntryType(ValueSetDefinitionEntryType.COMPLETE_VALUE_SET);
-
- vsRef.setOperator(this.definitionOperatorToSetOperatorConverter.convertTo(definitionEntry.getOperator()));
-
- return vsRef;
- } else if (definitionEntry.getEntityReference() != null)
- {
- EntityReference lgER = definitionEntry.getEntityReference();
- AssociatedEntitiesReference aeRef = new AssociatedEntitiesReference();
-
- CodeSystemReference cs = new CodeSystemReference();
- cs.setContent(lgER.getEntityCodeNamespace());
- aeRef.setCodeSystem(cs);
-
- // set directional
- if (lgER.getTargetToSource() != null)
- {
- if (lgER.isTargetToSource())
- aeRef.setDirection(AssociationDirection.TARGET_TO_SOURCE);
- else
- aeRef.setDirection(AssociationDirection.SOURCE_TO_TARGET);
- }
-
-
- // set leafOnly
- if (lgER.getLeafOnly() != null)
- {
- if (lgER.isLeafOnly())
- aeRef.setLeafOnly(LeafOrAll.LEAF_ONLY);
- else
- aeRef.setLeafOnly(LeafOrAll.ALL_INTERMEDIATE_NODES);
- }
-
- // set predicate
- PredicateReference pr = new PredicateReference();
- pr.setContent(lgER.getReferenceAssociation());
- aeRef.setPredicate(pr);
-
- // set referenceEntity
- org.cts2.core.EntityReference er = new org.cts2.core.EntityReference();
- ScopedEntityName entityName = new ScopedEntityName();
- entityName.setName(lgER.getEntityCode());
- entityName.setNamespace(lgER.getEntityCodeNamespace());
- er.setLocalEntityName(entityName);
- aeRef.setReferencedEntity(er);
-
- // set transitivity
- if (lgER.getTransitiveClosure() != null)
- {
- if (lgER.isTransitiveClosure())
- aeRef.setTransitivity(TransitiveClosure.TRANSITIVE_CLOSURE);
- else
- aeRef.setTransitivity(TransitiveClosure.DIRECTLY_ASSOCIATED);
- }
-
- aeRef.setEntryType(ValueSetDefinitionEntryType.ASSOCIATED_ENTITIES);
-
- aeRef.setOperator(this.definitionOperatorToSetOperatorConverter.convertTo(definitionEntry.getOperator()));
-
- return aeRef;
- } else if (definitionEntry.getPropertyReference() != null)
- {
- PropertyReference lgPropRef = definitionEntry.getPropertyReference();
- PropertyQueryReference propQueryRef = new PropertyQueryReference();
-
- CodeSystemReference cs = new CodeSystemReference();
- cs.setContent(lgPropRef.getCodingScheme());
-
- propQueryRef.setCodeSystem(cs);
-
- FilterComponent fc = new FilterComponent();
-
- if (lgPropRef.getPropertyName() != null)
- {
- org.cts2.core.PropertyReference propRef = new org.cts2.core.PropertyReference();
- NameOrURI nameOrURI = new NameOrURI();
- nameOrURI.setName(lgPropRef.getPropertyName());
- propRef.setReferenceType(TargetReferenceType.PROPERTY);
-
- fc.setFilterComponent(propRef);
- }
-
- if (lgPropRef.getPropertyMatchValue() != null)
- {
- MatchAlgorithmReference matchRef = new MatchAlgorithmReference();
- matchRef.setContent(lgPropRef.getPropertyMatchValue().getMatchAlgorithm());
-
- fc.setMatchAlgorithm(matchRef);
- fc.setMatchValue(lgPropRef.getPropertyMatchValue().getContent());
- }
-
- propQueryRef.setFilter(fc);
-
- propQueryRef.setEntryType(ValueSetDefinitionEntryType.PROPERTY_QUERY);
-
- propQueryRef.setOperator(this.definitionOperatorToSetOperatorConverter.convertTo(definitionEntry.getOperator()));
-
- return propQueryRef;
- }
- return vde;
- }
-
- /*
- * (non-Javadoc)
- * @see org.dozer.DozerConverter#convertFrom(java.lang.Object, java.lang.Object)
- */
- @Override
- public DefinitionEntry convertFrom(ValueSetDefinitionEntry valueSetDefinitionEntry,
- DefinitionEntry definitionEntry) {
- // TODO Auto-generated method stub
- return null;
- }
-
- /**
- * @return the definitionOperatorToSetOperatorConverter
- */
- public DefinitionOperatorToSetOperatorConverter getDefinitionOperatorToSetOperatorConverter() {
- return definitionOperatorToSetOperatorConverter;
- }
-
- /**
- * @param definitionOperatorToSetOperatorConverter the definitionOperatorToSetOperatorConverter to set
- */
- public void setDefinitionOperatorToSetOperatorConverter(
- DefinitionOperatorToSetOperatorConverter definitionOperatorToSetOperatorConverter) {
- this.definitionOperatorToSetOperatorConverter = definitionOperatorToSetOperatorConverter;
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/DefinitionOperatorToSetOperatorConverter.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/DefinitionOperatorToSetOperatorConverter.java
deleted file mode 100644
index 345bd98c6c..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/DefinitionOperatorToSetOperatorConverter.java
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.mapper.converter;
-
-import org.LexGrid.valueSets.types.DefinitionOperator;
-import org.cts2.core.types.SetOperator;
-import org.dozer.DozerConverter;
-
-/**
- * The Class DefinitionOperatorToSetOperatorConverter.
- *
- * @author Kevin Peterson
- */
-public class DefinitionOperatorToSetOperatorConverter extends DozerConverter {
-
- public DefinitionOperatorToSetOperatorConverter() {
- super(DefinitionOperator.class, SetOperator.class);
- }
-
- /* (non-Javadoc)
- * @see org.dozer.DozerConverter#convertFrom(java.lang.Object, java.lang.Object)
- */
- @Override
- public DefinitionOperator convertFrom(
- SetOperator setOperator,
- DefinitionOperator definitionOperator) {
- switch (setOperator) {
- case UNION : {
- return DefinitionOperator.OR;
- }
- case INTERSECT : {
- return DefinitionOperator.AND;
- }
- case SUBTRACT : {
- return DefinitionOperator.SUBTRACT;
- }
- default : {
- throw new RuntimeException(setOperator + " cannot be mapped.");
- }
- }
- }
-
- /* (non-Javadoc)
- * @see org.dozer.DozerConverter#convertTo(java.lang.Object, java.lang.Object)
- */
- @Override
- public SetOperator convertTo(DefinitionOperator definitionOperator, SetOperator convertFrom) {
- switch (definitionOperator) {
- case OR : {
- return SetOperator.UNION;
- }
- case AND : {
- return SetOperator.INTERSECT;
- }
- case SUBTRACT : {
- return SetOperator.SUBTRACT;
- }
- default : {
- throw new RuntimeException(definitionOperator + " cannot be mapped.");
- }
- }
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/DefinitionPreferredToDefinitionRoleConverter.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/DefinitionPreferredToDefinitionRoleConverter.java
deleted file mode 100644
index 2378084c39..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/DefinitionPreferredToDefinitionRoleConverter.java
+++ /dev/null
@@ -1,41 +0,0 @@
-package org.cts2.internal.mapper.converter;
-
-import org.LexGrid.concepts.Definition;
-import org.cts2.internal.lexevs.identity.LexEvsIdentityConverter;
-import org.dozer.DozerConverter;
-
-public class DefinitionPreferredToDefinitionRoleConverter extends
- DozerConverter {
- private LexEvsIdentityConverter lexEvsIdentityConverter;
-
- public DefinitionPreferredToDefinitionRoleConverter() {
- super(org.LexGrid.concepts.Definition.class, org.cts2.core.Definition.class);
- }
-
- @Override
- public org.cts2.core.Definition convertTo(org.LexGrid.concepts.Definition source, org.cts2.core.Definition destination) {
- boolean b;
- if (source.getIsPreferred() == null)
- b= false;
- else
- b = source.getIsPreferred();
- destination.setDefinitionRole(this.lexEvsIdentityConverter
- .preferredtoDefinitionRole(b));
- return destination;
- }
-
- @Override
- public Definition convertFrom(org.cts2.core.Definition arg0, org.LexGrid.concepts.Definition arg1) {
- return null;
- }
-
-
- public void setLexEvsIdentityConverter(
- LexEvsIdentityConverter lexEvsIdentityConverter) {
- this.lexEvsIdentityConverter = lexEvsIdentityConverter;
- }
-
- public LexEvsIdentityConverter getLexEvsIdentityConverter() {
- return lexEvsIdentityConverter;
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/DefinitionUsageContextListToContextReferenceListConverter.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/DefinitionUsageContextListToContextReferenceListConverter.java
deleted file mode 100644
index 10ef4a0188..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/DefinitionUsageContextListToContextReferenceListConverter.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package org.cts2.internal.mapper.converter;
-
-import org.cts2.core.ContextReference;
-import org.dozer.DozerConverter;
-
-public class DefinitionUsageContextListToContextReferenceListConverter extends DozerConverter{
-
- public DefinitionUsageContextListToContextReferenceListConverter() {
- super(org.LexGrid.concepts.Definition.class, org.cts2.core.Definition.class);
- }
-
- @Override
- public org.cts2.core.Definition convertTo(org.LexGrid.concepts.Definition source, org.cts2.core.Definition destination) {
- for (String content: source.getUsageContext()) {
- ContextReference context = new ContextReference();
- context.setContent(content);
- //TODO not an array???
- destination.setUsageContext(context);
- break;
- }
- return destination;
- }
-
- @Override
- public org.LexGrid.concepts.Definition convertFrom(org.cts2.core.Definition source, org.LexGrid.concepts.Definition destination) {
- return null;
- }
-
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/EntityDirectoryEntryAboutConverter.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/EntityDirectoryEntryAboutConverter.java
deleted file mode 100644
index ae94a23414..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/EntityDirectoryEntryAboutConverter.java
+++ /dev/null
@@ -1,84 +0,0 @@
-package org.cts2.internal.mapper.converter;
-
-import org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference;
-import org.LexGrid.codingSchemes.CodingScheme;
-import org.LexGrid.naming.SupportedNamespace;
-import org.apache.commons.lang.StringUtils;
-import org.cts2.entity.EntityDirectoryEntry;
-import org.cts2.internal.lexevs.identity.LexEvsIdentityConverter;
-import org.dozer.DozerConverter;
-import org.lexevs.dao.database.service.codingscheme.CodingSchemeService;
-import org.lexevs.dao.database.utility.DaoUtility;
-
-/**
- *
- * @author Zonghui Lian
- *
- */
-public class EntityDirectoryEntryAboutConverter extends
- DozerConverter {
-
- private CodingSchemeService codingSchemeService;
- private LexEvsIdentityConverter lexEvsIdentityConverter;
-
-
- public EntityDirectoryEntryAboutConverter() {
- super(ResolvedConceptReference.class, EntityDirectoryEntry.class);
- }
-
- public LexEvsIdentityConverter getLexEvsIdentityConverter() {
- return lexEvsIdentityConverter;
- }
-
- public void setLexEvsIdentityConverter(
- LexEvsIdentityConverter lexEvsIdentityConverter) {
- this.lexEvsIdentityConverter = lexEvsIdentityConverter;
- }
-
- @Override
- public ResolvedConceptReference convertFrom(EntityDirectoryEntry arg0,
- ResolvedConceptReference arg1) {
- return null;
- }
-
- @Override
- public EntityDirectoryEntry convertTo(ResolvedConceptReference conRef,
- EntityDirectoryEntry dirEntry) {
-
- if (StringUtils.isBlank(conRef.getCode())
- || StringUtils.isBlank(conRef.getCodeNamespace())) {
- return dirEntry;
- }
-
- CodingScheme cs = codingSchemeService.getCodingSchemeByUriAndVersion(
- conRef.getCodingSchemeURI(), conRef.getCodingSchemeVersion());
-
- if (cs != null) {
- try {
- SupportedNamespace sns = DaoUtility.getURIMap(cs,
- SupportedNamespace.class, conRef.getCodeNamespace());
- String uri;
- if (sns != null && !StringUtils.isBlank(sns.getUri())) {
- uri = lexEvsIdentityConverter.nsUriAndCodeToUri(sns.getUri(), conRef.getCode());
- }
- else {
- uri = lexEvsIdentityConverter.nsUriAndCodeToUri(cs.getCodingSchemeURI(), conRef.getCode());
- }
- dirEntry.setAbout(uri);
- } catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
-
- return dirEntry;
- }
-
- public void setCodingSchemeService(CodingSchemeService codingSchemeService) {
- this.codingSchemeService = codingSchemeService;
- }
-
- public CodingSchemeService getCodingSchemeService() {
- return codingSchemeService;
- }
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/IsActiveToEntryStateConverter.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/IsActiveToEntryStateConverter.java
deleted file mode 100644
index a05f6dfaae..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/IsActiveToEntryStateConverter.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.mapper.converter;
-
-import org.cts2.core.types.EntryState;
-import org.dozer.DozerConverter;
-
-/**
- * The Class IsActiveToEntryStateConverter.
- *
- * @author Kevin Peterson
- */
-public class IsActiveToEntryStateConverter extends DozerConverter{
-
- /**
- * Instantiates a new checks if is active to entry state converter.
- */
- public IsActiveToEntryStateConverter() {
- super(Boolean.class, EntryState.class);
- }
-
- /* (non-Javadoc)
- * @see org.dozer.DozerConverter#convertFrom(java.lang.Object, java.lang.Object)
- */
- @Override
- public Boolean convertFrom(EntryState es, Boolean bl) {
- if(es == null){
- return null;
- }
-
- switch (es){
- case ACTIVE :{ return true ; }
- case INACTIVE :{ return true ; }
- default : { throw new IllegalArgumentException("Could not map EntryState"); }
- }
- }
-
- /* (non-Javadoc)
- * @see org.dozer.DozerConverter#convertTo(java.lang.Object, java.lang.Object)
- */
- @Override
- public EntryState convertTo(Boolean bl, EntryState es) {
- if(bl == null){
- return null;
- }
-
- if(bl){
- return EntryState.ACTIVE;
- } else {
- return EntryState.INACTIVE;
- }
- }
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/NamedEntityDescriptionAboutConverter.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/NamedEntityDescriptionAboutConverter.java
deleted file mode 100644
index e6b982f936..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/NamedEntityDescriptionAboutConverter.java
+++ /dev/null
@@ -1,76 +0,0 @@
-package org.cts2.internal.mapper.converter;
-
-import org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference;
-import org.LexGrid.codingSchemes.CodingScheme;
-import org.LexGrid.naming.SupportedNamespace;
-
-import org.apache.commons.lang.StringUtils;
-import org.cts2.entity.NamedEntityDescription;
-import org.cts2.internal.lexevs.identity.LexEvsIdentityConverter;
-import org.dozer.DozerConverter;
-import org.lexevs.dao.database.service.codingscheme.CodingSchemeService;
-import org.lexevs.dao.database.utility.DaoUtility;
-
-public class NamedEntityDescriptionAboutConverter extends
- DozerConverter {
- private CodingSchemeService codingSchemeService;
- private LexEvsIdentityConverter lexEvsIdentityConverter;
-
- public NamedEntityDescriptionAboutConverter() {
- super(ResolvedConceptReference.class, NamedEntityDescription.class);
- }
-
- public CodingSchemeService getCodingSchemeService() {
- return codingSchemeService;
- }
-
- public void setCodingSchemeService(CodingSchemeService codingSchemeService) {
- this.codingSchemeService = codingSchemeService;
- }
-
- public LexEvsIdentityConverter getLexEvsIdentityConverter() {
- return lexEvsIdentityConverter;
- }
-
- public void setLexEvsIdentityConverter(
- LexEvsIdentityConverter lexEvsIdentityConverter) {
- this.lexEvsIdentityConverter = lexEvsIdentityConverter;
- }
-
- @Override
- public ResolvedConceptReference convertFrom(NamedEntityDescription source,
- ResolvedConceptReference target) {
- return null;
- }
-
- @Override
- public NamedEntityDescription convertTo(ResolvedConceptReference source,
- NamedEntityDescription target) {
-
- if (StringUtils.isBlank(source.getCode())
- || StringUtils.isBlank(source.getCodeNamespace())) {
- return target;
- }
- CodingScheme cs = codingSchemeService.getCodingSchemeByUriAndVersion(
- source.getCodingSchemeURI(), source.getCodingSchemeVersion());
-
- if (cs != null) {
- try {
- SupportedNamespace sns = DaoUtility.getURIMap(cs,
- SupportedNamespace.class, source.getCodeNamespace());
- String uri;
- if (sns != null && !StringUtils.isBlank(sns.getUri())) {
- uri = lexEvsIdentityConverter.nsUriAndCodeToUri(sns.getUri(), source.getCode());
- }
- else {
- uri = lexEvsIdentityConverter.nsUriAndCodeToUri(cs.getCodingSchemeURI(), source.getCode());
- }
- target.setAbout(uri);
- } catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- return target;
- }
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/NamedEntityDescriptionDefinitionListConverter.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/NamedEntityDescriptionDefinitionListConverter.java
deleted file mode 100644
index daec1cb159..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/NamedEntityDescriptionDefinitionListConverter.java
+++ /dev/null
@@ -1,102 +0,0 @@
-package org.cts2.internal.mapper.converter;
-
-import org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference;
-import org.LexGrid.codingSchemes.CodingScheme;
-import org.LexGrid.naming.SupportedContext;
-import org.LexGrid.naming.SupportedDataType;
-import org.LexGrid.naming.SupportedLanguage;
-import org.apache.commons.lang.StringUtils;
-import org.cts2.core.ContextReference;
-import org.cts2.entity.NamedEntityDescription;
-import org.cts2.internal.mapper.BaseDozerBeanMapper;
-import org.dozer.DozerConverter;
-import org.lexevs.dao.database.service.codingscheme.CodingSchemeService;
-import org.lexevs.dao.database.utility.DaoUtility;
-
-public class NamedEntityDescriptionDefinitionListConverter extends
- DozerConverter {
-
- private BaseDozerBeanMapper baseDozerBeanMapper;
- private CodingSchemeService codingSchemeService;
-
- public NamedEntityDescriptionDefinitionListConverter() {
- super(ResolvedConceptReference.class, NamedEntityDescription.class);
- }
-
- public BaseDozerBeanMapper getBaseDozerBeanMapper() {
- return baseDozerBeanMapper;
- }
-
- public void setBaseDozerBeanMapper(BaseDozerBeanMapper baseDozerBeanMapper) {
- this.baseDozerBeanMapper = baseDozerBeanMapper;
- }
-
- @Override
- public ResolvedConceptReference convertFrom(NamedEntityDescription source,
- ResolvedConceptReference target) {
- return null;
- }
-
- @Override
- public NamedEntityDescription convertTo(ResolvedConceptReference source,
- NamedEntityDescription target) {
- if (StringUtils.isBlank(source.getCode())
- || StringUtils.isBlank(source.getCodeNamespace())) {
- return target;
- }
- CodingScheme cs = codingSchemeService.getCodingSchemeByUriAndVersion(
- source.getCodingSchemeURI(), source.getCodingSchemeVersion());
-
- for (org.LexGrid.concepts.Definition d : source.getEntity()
- .getDefinition()) {
- org.cts2.core.Definition definition = this.baseDozerBeanMapper.map(
- d, org.cts2.core.Definition.class);
-
- // process supported mappings
- if (cs != null) {
- if (definition.getFormat() != null
- && !StringUtils.isEmpty(definition.getFormat()
- .getContent())) {
- SupportedDataType supportedDataType = DaoUtility.getURIMap(
- cs, SupportedDataType.class, definition.getFormat()
- .getContent());
- if (supportedDataType != null)
- definition.getFormat().setMeaning(
- supportedDataType.getUri());
- }
-
- if (definition.getLanguage() != null
- && !StringUtils.isEmpty(definition.getLanguage()
- .getContent())) {
- SupportedLanguage supportedLanguage = DaoUtility.getURIMap(
- cs, SupportedLanguage.class, definition
- .getLanguage().getContent());
- if (supportedLanguage != null)
- definition.getLanguage().setMeaning(
- supportedLanguage.getUri());
- }
-
- ContextReference context = definition.getUsageContext();
- if (context != null
- && !StringUtils.isEmpty(context.getContent())) {
- SupportedContext supportedContext = DaoUtility.getURIMap(
- cs, SupportedContext.class, context.getContent());
- if (supportedContext != null) {
- context.setMeaning(supportedContext.getUri());
- }
- }
- }
- target.addDefinition(definition);
- }
- return target;
- }
-
- public void setCodingSchemeService(CodingSchemeService codingSchemeService) {
- this.codingSchemeService = codingSchemeService;
- }
-
- public CodingSchemeService getCodingSchemeService() {
- return codingSchemeService;
- }
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/NamedEntityDescriptionDesignationListConverter.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/NamedEntityDescriptionDesignationListConverter.java
deleted file mode 100644
index 04d6a03e6b..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/NamedEntityDescriptionDesignationListConverter.java
+++ /dev/null
@@ -1,126 +0,0 @@
-package org.cts2.internal.mapper.converter;
-
-import org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference;
-import org.LexGrid.codingSchemes.CodingScheme;
-import org.LexGrid.naming.SupportedContext;
-import org.LexGrid.naming.SupportedDataType;
-import org.LexGrid.naming.SupportedDegreeOfFidelity;
-import org.LexGrid.naming.SupportedLanguage;
-import org.LexGrid.naming.SupportedProperty;
-import org.apache.commons.lang.StringUtils;
-import org.cts2.core.ContextReference;
-import org.cts2.entity.NamedEntityDescription;
-import org.cts2.internal.mapper.BaseDozerBeanMapper;
-import org.dozer.DozerConverter;
-import org.hsqldb.lib.StringUtil;
-import org.lexevs.dao.database.service.codingscheme.CodingSchemeService;
-import org.lexevs.dao.database.utility.DaoUtility;
-
-public class NamedEntityDescriptionDesignationListConverter extends
- DozerConverter {
-
- private BaseDozerBeanMapper baseDozerBeanMapper;
- private CodingSchemeService codingSchemeService;
-
- public NamedEntityDescriptionDesignationListConverter() {
- super(ResolvedConceptReference.class, NamedEntityDescription.class);
- }
-
- public BaseDozerBeanMapper getBaseDozerBeanMapper() {
- return baseDozerBeanMapper;
- }
-
- public void setBaseDozerBeanMapper(BaseDozerBeanMapper baseDozerBeanMapper) {
- this.baseDozerBeanMapper = baseDozerBeanMapper;
- }
-
- @Override
- public ResolvedConceptReference convertFrom(NamedEntityDescription source,
- ResolvedConceptReference target) {
- return null;
- }
-
- @Override
- public NamedEntityDescription convertTo(ResolvedConceptReference source,
- NamedEntityDescription target) {
- if (StringUtils.isBlank(source.getCode())
- || StringUtils.isBlank(source.getCodeNamespace())) {
- return target;
- }
- CodingScheme cs = codingSchemeService.getCodingSchemeByUriAndVersion(
- source.getCodingSchemeURI(), source.getCodingSchemeVersion());
-
- for (org.LexGrid.concepts.Presentation p : source.getEntity()
- .getPresentation()) {
- org.cts2.entity.Designation designation = this.baseDozerBeanMapper
- .map(p, org.cts2.entity.Designation.class);
-
- // process supported mappings
- if (cs != null) {
- if (designation.getDegreeOfFidelity() != null
- && !StringUtils.isEmpty(designation
- .getDegreeOfFidelity().getContent())) {
- SupportedDegreeOfFidelity supportedDegreeOfFidelity = DaoUtility
- .getURIMap(cs, SupportedDegreeOfFidelity.class,
- designation.getDegreeOfFidelity()
- .getContent());
- if (supportedDegreeOfFidelity != null)
- designation.getDegreeOfFidelity().setMeaning(
- supportedDegreeOfFidelity.getUri());
- }
- if (designation.getDesignationType() != null
- && !StringUtil.isEmpty(designation.getDesignationType()
- .getContent())) {
- SupportedProperty supportedProperty = DaoUtility.getURIMap(
- cs, SupportedProperty.class, designation
- .getDesignationType().getContent());
- if (supportedProperty != null)
- designation.getDesignationType().setMeaning(
- supportedProperty.getUri());
- }
-
- if (designation.getFormat() != null
- && !StringUtils.isEmpty(designation.getFormat()
- .getContent())) {
- SupportedDataType supportedDataType = DaoUtility.getURIMap(
- cs, SupportedDataType.class, designation
- .getFormat().getContent());
- if (supportedDataType != null)
- designation.getFormat().setMeaning(
- supportedDataType.getUri());
- }
-
- if (designation.getLanguage() != null
- && !StringUtils.isEmpty(designation.getLanguage()
- .getContent())) {
- SupportedLanguage supportedLanguage = DaoUtility.getURIMap(
- cs, SupportedLanguage.class, designation
- .getLanguage().getContent());
- if (supportedLanguage != null)
- designation.getLanguage().setMeaning(
- supportedLanguage.getUri());
- }
-
- for (ContextReference context : designation.getUsageContext()) {
- if (!StringUtils.isEmpty(context.getContent())){
- SupportedContext supportedContext = DaoUtility.getURIMap(cs, SupportedContext.class, context.getContent());
- if (supportedContext != null) {
- context.setMeaning(supportedContext.getUri());
- }
- }
- }
- }
- target.addDesignation(designation);
- }
- return target;
- }
-
- public void setCodingSchemeService(CodingSchemeService codingSchemeService) {
- this.codingSchemeService = codingSchemeService;
- }
-
- public CodingSchemeService getCodingSchemeService() {
- return codingSchemeService;
- }
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/NamedEntityDescriptionNoteListConverter.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/NamedEntityDescriptionNoteListConverter.java
deleted file mode 100644
index 65be720f72..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/NamedEntityDescriptionNoteListConverter.java
+++ /dev/null
@@ -1,91 +0,0 @@
-package org.cts2.internal.mapper.converter;
-
-import org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference;
-import org.LexGrid.codingSchemes.CodingScheme;
-import org.LexGrid.naming.SupportedDataType;
-import org.LexGrid.naming.SupportedLanguage;
-import org.apache.commons.lang.StringUtils;
-import org.cts2.entity.NamedEntityDescription;
-import org.cts2.internal.mapper.BaseDozerBeanMapper;
-import org.dozer.DozerConverter;
-import org.lexevs.dao.database.service.codingscheme.CodingSchemeService;
-import org.lexevs.dao.database.utility.DaoUtility;
-
-public class NamedEntityDescriptionNoteListConverter extends
- DozerConverter {
-
- private BaseDozerBeanMapper baseDozerBeanMapper;
- private CodingSchemeService codingSchemeService;
-
- public NamedEntityDescriptionNoteListConverter() {
- super(ResolvedConceptReference.class, NamedEntityDescription.class);
- }
-
- public BaseDozerBeanMapper getBaseDozerBeanMapper() {
- return baseDozerBeanMapper;
- }
-
- public void setBaseDozerBeanMapper(BaseDozerBeanMapper baseDozerBeanMapper) {
- this.baseDozerBeanMapper = baseDozerBeanMapper;
- }
-
- @Override
- public ResolvedConceptReference convertFrom(NamedEntityDescription source,
- ResolvedConceptReference target) {
- return null;
- }
-
- @Override
- public NamedEntityDescription convertTo(ResolvedConceptReference source,
- NamedEntityDescription target) {
- if (StringUtils.isBlank(source.getCode())
- || StringUtils.isBlank(source.getCodeNamespace())) {
- return target;
- }
- CodingScheme cs = codingSchemeService.getCodingSchemeByUriAndVersion(
- source.getCodingSchemeURI(), source.getCodingSchemeVersion());
-
- for (org.LexGrid.concepts.Comment c : source.getEntity()
- .getComment()) {
- org.cts2.core.Comment comment = this.baseDozerBeanMapper.map(
- c, org.cts2.core.Comment.class);
-
- // process supported mappings
- if (cs != null) {
- if (comment.getFormat() != null
- && !StringUtils.isEmpty(comment.getFormat()
- .getContent())) {
- SupportedDataType supportedDataType = DaoUtility.getURIMap(
- cs, SupportedDataType.class, comment.getFormat()
- .getContent());
- if (supportedDataType != null)
- comment.getFormat().setMeaning(
- supportedDataType.getUri());
- }
-
- if (comment.getLanguage() != null
- && !StringUtils.isEmpty(comment.getLanguage()
- .getContent())) {
- SupportedLanguage supportedLanguage = DaoUtility.getURIMap(
- cs, SupportedLanguage.class, comment
- .getLanguage().getContent());
- if (supportedLanguage != null)
- comment.getLanguage().setMeaning(
- supportedLanguage.getUri());
- }
-
- }
- target.addNote(comment);
- }
- return target;
- }
-
- public void setCodingSchemeService(CodingSchemeService codingSchemeService) {
- this.codingSchemeService = codingSchemeService;
- }
-
- public CodingSchemeService getCodingSchemeService() {
- return codingSchemeService;
- }
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/NamedEntityDescriptionPropertyListConverter.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/NamedEntityDescriptionPropertyListConverter.java
deleted file mode 100644
index 7b4773ecef..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/NamedEntityDescriptionPropertyListConverter.java
+++ /dev/null
@@ -1,90 +0,0 @@
-package org.cts2.internal.mapper.converter;
-
-import org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference;
-import org.LexGrid.codingSchemes.CodingScheme;
-import org.LexGrid.naming.SupportedDataType;
-import org.LexGrid.naming.SupportedLanguage;
-import org.apache.commons.lang.StringUtils;
-import org.cts2.core.EntryDescription;
-import org.cts2.entity.NamedEntityDescription;
-import org.cts2.internal.mapper.BaseDozerBeanMapper;
-import org.dozer.DozerConverter;
-import org.lexevs.dao.database.service.codingscheme.CodingSchemeService;
-import org.lexevs.dao.database.utility.DaoUtility;
-
-public class NamedEntityDescriptionPropertyListConverter extends
- DozerConverter {
-
- private BaseDozerBeanMapper baseDozerBeanMapper;
- private CodingSchemeService codingSchemeService;
-
- public NamedEntityDescriptionPropertyListConverter() {
- super(ResolvedConceptReference.class, NamedEntityDescription.class);
- }
-
- public BaseDozerBeanMapper getBaseDozerBeanMapper() {
- return baseDozerBeanMapper;
- }
-
- public void setBaseDozerBeanMapper(BaseDozerBeanMapper baseDozerBeanMapper) {
- this.baseDozerBeanMapper = baseDozerBeanMapper;
- }
-
- @Override
- public ResolvedConceptReference convertFrom(NamedEntityDescription source,
- ResolvedConceptReference target) {
- return null;
- }
-
- @Override
- public NamedEntityDescription convertTo(ResolvedConceptReference source,
- NamedEntityDescription target) {
- if (StringUtils.isBlank(source.getCode())
- || StringUtils.isBlank(source.getCodeNamespace())) {
- return target;
- }
- CodingScheme cs = codingSchemeService.getCodingSchemeByUriAndVersion(
- source.getCodingSchemeURI(), source.getCodingSchemeVersion());
-
- for (org.LexGrid.commonTypes.Property p : source.getEntity()
- .getProperty()) {
- org.cts2.core.Property ctsProp = this.baseDozerBeanMapper.map(p,
- org.cts2.core.Property.class);
-
- EntryDescription enDesc = ctsProp.getValue();
- // process supported mappings
- if (cs != null && enDesc != null) {
- if (enDesc.getFormat() != null
- && StringUtils.isEmpty(enDesc.getFormat().getContent()) == false) {
- SupportedDataType supportedDataType = DaoUtility.getURIMap(
- cs, SupportedDataType.class, enDesc.getFormat()
- .getContent());
- if (supportedDataType != null)
- enDesc.getFormat().setMeaning(
- supportedDataType.getUri());
- }
- if (enDesc.getLanguage() != null
- && StringUtils.isEmpty(enDesc.getLanguage()
- .getContent()) == false) {
- SupportedLanguage supportedLanguage = DaoUtility.getURIMap(
- cs, SupportedLanguage.class, enDesc.getLanguage()
- .getContent());
- if (supportedLanguage != null)
- enDesc.getLanguage().setMeaning(
- supportedLanguage.getUri());
- }
- }
- target.addProperty(ctsProp);
- }
- return target;
- }
-
- public void setCodingSchemeService(CodingSchemeService codingSchemeService) {
- this.codingSchemeService = codingSchemeService;
- }
-
- public CodingSchemeService getCodingSchemeService() {
- return codingSchemeService;
- }
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/PresentationPreferredToDesignationRoleConverter.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/PresentationPreferredToDesignationRoleConverter.java
deleted file mode 100644
index 9e4b6bf03a..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/PresentationPreferredToDesignationRoleConverter.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package org.cts2.internal.mapper.converter;
-
-import org.LexGrid.concepts.Presentation;
-import org.cts2.entity.Designation;
-import org.cts2.internal.lexevs.identity.LexEvsIdentityConverter;
-import org.dozer.DozerConverter;
-
-public class PresentationPreferredToDesignationRoleConverter extends
- DozerConverter {
- private LexEvsIdentityConverter lexEvsIdentityConverter;
-
- public PresentationPreferredToDesignationRoleConverter() {
- super(Presentation.class, Designation.class);
- }
-
- @Override
- public Designation convertTo(Presentation source, Designation destination) {
- boolean b;
- if (source.getIsPreferred() == null)
- b= false;
- else
- b = source.getIsPreferred();
- destination.setDesignationRole(this.lexEvsIdentityConverter
- .preferredtoDestinationRole(b));
- return destination;
- }
-
- @Override
- public Presentation convertFrom(Designation source, Presentation destination) {
- return null;
- }
-
- public void setLexEvsIdentityConverter(
- LexEvsIdentityConverter lexEvsIdentityConverter) {
- this.lexEvsIdentityConverter = lexEvsIdentityConverter;
- }
-
- public LexEvsIdentityConverter getLexEvsIdentityConverter() {
- return lexEvsIdentityConverter;
- }
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/PresentationUsageContextListToContextReferenceListConverter.java b/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/PresentationUsageContextListToContextReferenceListConverter.java
deleted file mode 100644
index e214804328..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/mapper/converter/PresentationUsageContextListToContextReferenceListConverter.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package org.cts2.internal.mapper.converter;
-
-import org.LexGrid.concepts.Presentation;
-import org.cts2.core.ContextReference;
-import org.cts2.entity.Designation;
-import org.dozer.DozerConverter;
-
-public class PresentationUsageContextListToContextReferenceListConverter extends DozerConverter{
-
- public PresentationUsageContextListToContextReferenceListConverter() {
- super(Presentation.class, Designation.class);
- }
-
- @Override
- public Designation convertTo(Presentation source, Designation destination) {
- for (String content: source.getUsageContext()) {
- ContextReference context = new ContextReference();
- context.setContent(content);
- destination.addUsageContext(context);
- }
- return destination;
- }
-
- @Override
- public Presentation convertFrom(Designation source, Presentation destination) {
- return null;
- }
-
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/match/AbstractMatcher.java b/cts2Impl/src/main/java/org/cts2/internal/match/AbstractMatcher.java
deleted file mode 100644
index a5b992cc2b..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/match/AbstractMatcher.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.match;
-
-import org.cts2.internal.match.BaseCompositeMatchAlgorithm.Matcher;
-
-/**
- * The Class AbstractMatcher.
- *
- * @author Kevin Peterson
- */
-public abstract class AbstractMatcher implements Matcher {
-
- /** The case sensitive. */
- private boolean caseSensitive = false;
-
- /** The N o_ match. */
- protected static float NO_MATCH = 0f;
-
- /** The EXAC t_ match. */
- protected static float EXACT_MATCH = 1f;
-
- /* (non-Javadoc)
- * @see org.cts2.internal.match.BaseMatchAlgorithm.Matcher#isMatch(java.lang.String, java.lang.String)
- */
- @Override
- public float matchScore(String matchText, String candidate) {
- //TODO: null check, validation, etc..
- matchText = matchText.trim();
- candidate = candidate.trim();
-
- if(this.caseSensitive){
- return this.doMatchScore(matchText, candidate);
- } else {
- return this.doMatchScore(matchText.toLowerCase(), candidate.toLowerCase());
- }
- }
-
- /**
- * Do is match.
- *
- * @param matchText the match text
- * @param cadidate the cadidate
- * @return true, if successful
- */
- protected abstract float doMatchScore(String matchText, String cadidate);
-
- /**
- * Sets the case sensitive.
- *
- * @param caseSensitive the new case sensitive
- */
- public void setCaseSensitive(boolean caseSensitive) {
- this.caseSensitive = caseSensitive;
- }
-
- /**
- * Checks if is case sensitive.
- *
- * @return true, if is case sensitive
- */
- public boolean isCaseSensitive() {
- return caseSensitive;
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/match/AbstractNonScoringMatcher.java b/cts2Impl/src/main/java/org/cts2/internal/match/AbstractNonScoringMatcher.java
deleted file mode 100644
index e111025d14..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/match/AbstractNonScoringMatcher.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.match;
-
-/**
- * The Class AbstractMatcher.
- *
- * @author Kevin Peterson
- */
-public abstract class AbstractNonScoringMatcher extends AbstractMatcher {
-
- /** The N o_ match. */
- protected static float NO_MATCH = 0f;
-
- /** The EXAC t_ match. */
- protected static float EXACT_MATCH = 1f;
-
- /**
- * Boolean to score.
- *
- * @param isMatch the is match
- * @return the float
- */
- private float booleanToScore(boolean isMatch){
- if(isMatch){
- return EXACT_MATCH;
- } else {
- return NO_MATCH;
- }
- }
-
- /**
- * Do is match.
- *
- * @param matchText the match text
- * @param cadidate the cadidate
- * @return true, if successful
- */
- protected float doMatchScore(String matchText, String cadidate){
- return this.booleanToScore(
- this.isMatch(matchText, cadidate));
- }
-
- /**
- * Checks if is match.
- *
- * @param matchText the match text
- * @param cadidate the cadidate
- * @return true, if is match
- */
- protected abstract boolean isMatch(String matchText, String cadidate);
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/match/AttributeResolver.java b/cts2Impl/src/main/java/org/cts2/internal/match/AttributeResolver.java
deleted file mode 100644
index cafcf32949..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/match/AttributeResolver.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.match;
-
-import java.io.Serializable;
-
-
-/**
- * The Interface AttributeResolver.
- *
- * @param the
- * @author Kevin Peterson
- */
-public interface AttributeResolver extends Serializable {
-
- /**
- * Resolve attribute.
- *
- * @param modelObject the model object
- * @return the string
- */
- public String resolveAttribute(T modelObject);
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/match/BaseCompositeMatchAlgorithm.java b/cts2Impl/src/main/java/org/cts2/internal/match/BaseCompositeMatchAlgorithm.java
deleted file mode 100644
index e03732852a..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/match/BaseCompositeMatchAlgorithm.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.match;
-
-/**
- * The Class AbstractMatchAlgorithm.
- *
- * @author Kevin Peterson
- */
-public class BaseCompositeMatchAlgorithm implements MatchAlgorithm {
-
- /** The name. */
- private String name;
-
- /** The algorithm. */
- private Matcher algorithm;
-
- /**
- * Instantiates a new abstract match algorithm.
- *
- * @param name the name
- * @param algorithm the algorithm
- */
- public BaseCompositeMatchAlgorithm(String name, Matcher algorithm){
- this.name = name;
- this.algorithm = algorithm;
- }
-
- /* (non-Javadoc)
- * @see org.cts2.internal.match.MatchAlgorithm#isMatch(java.lang.String, java.lang.Object)
- */
- @Override
- public float matchScore(String matchText, String compareString) {
- return this.algorithm.matchScore(matchText, compareString);
- }
-
- /* (non-Javadoc)
- * @see org.cts2.internal.match.MatchAlgorithm#getName()
- */
- public String getName(){
- return this.name;
- }
-
- /**
- * The Interface Matcher.
- *
- * @author Kevin Peterson
- */
- public static interface Matcher {
-
- /**
- * Checks if is match.
- *
- * @param matchText the match text
- * @param cadidate the cadidate
- * @return true, if is match
- */
- public float matchScore(String matchText, String cadidate);
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/match/ContainsMatcher.java b/cts2Impl/src/main/java/org/cts2/internal/match/ContainsMatcher.java
deleted file mode 100644
index 3b48d9ba9d..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/match/ContainsMatcher.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.match;
-
-
-/**
- * The Class ContainsMatcher.
- *
- * @author Kevin Peterson
- */
-public class ContainsMatcher extends AbstractNonScoringMatcher {
-
- /* (non-Javadoc)
- * @see org.cts2.internal.match.AbstractMatcher#doIsMatch(java.lang.String, java.lang.String)
- */
- @Override
- protected boolean isMatch(String matchText, String cadidate) {
- return cadidate.contains(matchText);
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/match/ExactMatcher.java b/cts2Impl/src/main/java/org/cts2/internal/match/ExactMatcher.java
deleted file mode 100644
index e44bb10418..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/match/ExactMatcher.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.match;
-
-/**
- * The Class ExactMatcher.
- *
- * @author Kevin Peterson
- */
-public class ExactMatcher extends AbstractNonScoringMatcher {
-
- /* (non-Javadoc)
- * @see org.cts2.internal.match.AbstractMatcher#doIsMatch(java.lang.String, java.lang.String)
- */
- @Override
- protected boolean isMatch(String matchText, String cadidate) {
- return cadidate.equals(matchText);
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/match/LevenshteinDistanceMatcher.java b/cts2Impl/src/main/java/org/cts2/internal/match/LevenshteinDistanceMatcher.java
deleted file mode 100644
index 66a2af4871..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/match/LevenshteinDistanceMatcher.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.match;
-
-import org.apache.commons.lang.StringUtils;
-
-/**
- * The Class LevenshteinDistanceMatcher.
- *
- * @author Kevin Peterson
- */
-public class LevenshteinDistanceMatcher extends AbstractMatcher {
-
- /* (non-Javadoc)
- * @see org.cts2.internal.match.AbstractMatcher#doIsMatch(java.lang.String, java.lang.String)
- */
- @Override
- protected float doMatchScore(String matchText, String cadidate) {
- int longestString =
- Math.max(matchText.length(), cadidate.length());
-
- int score = StringUtils.getLevenshteinDistance(matchText, cadidate);
- return this.normalize(score, longestString);
- }
-
- /**
- * Normalize.
- *
- * @param score the score
- * @param longestString the longest string
- * @return the float
- */
- protected float normalize(float score, int longestString){
- return 1f - (score / longestString);
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/match/MatchAlgorithm.java b/cts2Impl/src/main/java/org/cts2/internal/match/MatchAlgorithm.java
deleted file mode 100644
index 8f3e5604cc..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/match/MatchAlgorithm.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.match;
-
-/**
- * The Interface MatchAlgorithm.
- *
- * @author Kevin Peterson
- */
-public interface MatchAlgorithm {
-
- /**
- * Checks if is match.
- *
- * @param matchText the match text
- * @param compareString the compare string
- * @return true, if is match
- */
- public float matchScore(String matchText, String compareString);
-
- /**
- * Gets the name.
- *
- * @return the name
- */
- public String getName();
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/match/OperationExecutingModelAttributeReference.java b/cts2Impl/src/main/java/org/cts2/internal/match/OperationExecutingModelAttributeReference.java
deleted file mode 100644
index 393db72e8a..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/match/OperationExecutingModelAttributeReference.java
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.match;
-
-import java.io.Serializable;
-
-import org.cts2.core.MatchAlgorithmReference;
-import org.cts2.core.ModelAttributeReference;
-
-/**
- * The Class OperationExecutingModelAttributeReference.
- *
- * @author Kevin Peterson
- */
-public class OperationExecutingModelAttributeReference extends ModelAttributeReference {
-
- /** The Constant serialVersionUID. */
- private static final long serialVersionUID = 5500382462242484409L;
-
- /** The operation. */
- private RestrictionOperation operation;
-
- /**
- * Instantiates a new operation executing model attribute reference.
- *
- * @param operation the operation
- */
- public OperationExecutingModelAttributeReference(RestrictionOperation operation){
- super();
- this.operation = operation;
- }
-
- /**
- * Gets the model attribute value.
- *
- * @param stateObject the state object
- * @param setOperator the set operator
- * @param matchText the match text
- * @param algorithm the algorithm
- * @return the model attribute value
- */
- public T executeOperation(T stateObject, String matchText, MatchAlgorithmReference algorithm){
- return this.operation.restrict(stateObject, matchText, algorithm);
- }
-
- /**
- * The Interface Operation.
- *
- * @param the
- * @author Kevin Peterson
- */
- public static interface RestrictionOperation extends Serializable {
-
- /**
- * Restrict.
- *
- * @param stateObject the state object
- * @param matchText the match text
- * @param algorithm the algorithm
- * @return the t
- */
- public T restrict(T stateObject, String matchText, MatchAlgorithmReference algorithm);
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/match/PropertyResolver.java b/cts2Impl/src/main/java/org/cts2/internal/match/PropertyResolver.java
deleted file mode 100644
index 5059cd2994..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/match/PropertyResolver.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.match;
-
-import java.util.List;
-
-import org.cts2.service.core.NameOrURI;
-
-/**
- * The Interface PropertyResolver.
- *
- * @author Kevin Peterson
- */
-public interface PropertyResolver {
-
- /**
- * Resolve property.
- *
- * @param reference the reference
- * @return the list
- */
- public List resolveProperty(NameOrURI reference);
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/match/RegexMatcher.java b/cts2Impl/src/main/java/org/cts2/internal/match/RegexMatcher.java
deleted file mode 100644
index 850b6c4603..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/match/RegexMatcher.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.match;
-
-import java.util.regex.Pattern;
-
-/**
- * The Class RegexMatcher.
- *
- * @author Kevin Peterson
- */
-public class RegexMatcher extends AbstractNonScoringMatcher {
-
- /* (non-Javadoc)
- * @see org.cts2.internal.match.AbstractNonScoringMatcher#isMatch(java.lang.String, java.lang.String)
- */
- @Override
- protected boolean isMatch(String matchText, String cadidate) {
- return this.regexMatch(matchText, cadidate);
- }
-
- /**
- * Regex match.
- *
- * @param matchText the match text
- * @param cadidate the cadidate
- * @return true, if successful
- */
- protected boolean regexMatch(String matchText, String cadidate){
- Pattern pattern = Pattern.compile(matchText);
- java.util.regex.Matcher matcher = pattern.matcher(cadidate);
-
- return matcher.matches();
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/match/ResolvableModelAttributeReference.java b/cts2Impl/src/main/java/org/cts2/internal/match/ResolvableModelAttributeReference.java
deleted file mode 100644
index adda14e430..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/match/ResolvableModelAttributeReference.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.match;
-
-import org.cts2.core.ModelAttributeReference;
-
-/**
- * The Class ResolvableModelAttributeReference.
- *
- * @param the
- * @author Kevin Peterson
- */
-public class ResolvableModelAttributeReference extends ModelAttributeReference {
-
- /** The Constant serialVersionUID. */
- private static final long serialVersionUID = 5500382462242484409L;
-
- /** The attribute resolver. */
- private AttributeResolver attributeResolver;
-
- /**
- * Instantiates a new resolvable model attribute reference.
- *
- * @param attributeResolver the attribute resolver
- */
- public ResolvableModelAttributeReference(AttributeResolver attributeResolver){
- this.attributeResolver = attributeResolver;
- }
-
- /**
- * Gets the model attribute value.
- *
- * @param modelObject the model object
- * @return the model attribute value
- */
- public String getModelAttributeValue(T modelObject){
- return this.attributeResolver.resolveAttribute(modelObject);
- }
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/match/SoundexMatcher.java b/cts2Impl/src/main/java/org/cts2/internal/match/SoundexMatcher.java
deleted file mode 100644
index 14121ea88a..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/match/SoundexMatcher.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.match;
-
-import org.apache.commons.codec.EncoderException;
-import org.apache.commons.codec.language.RefinedSoundex;
-
-/**
- * The Class SoundexMatcher.
- *
- * @author Kevin Peterson
- */
-public class SoundexMatcher extends AbstractMatcher {
-
- /** The refined soundex. */
- private RefinedSoundex refinedSoundex = new RefinedSoundex();
-
- /* (non-Javadoc)
- * @see org.cts2.internal.match.AbstractMatcher#doIsMatch(java.lang.String, java.lang.String)
- */
- @Override
- protected float doMatchScore(String matchText, String cadidate) {
- float score;
- try {
- score = this.refinedSoundex.difference(matchText, cadidate);
- } catch (EncoderException e) {
- throw new IllegalStateException(e);
- }
-
- int matchTextEncodedLength = this.getEncodedStringLength(matchText);
- int candidateEncodedLength = this.getEncodedStringLength(cadidate);
-
- return this.normalizeScore(score, Math.min(matchTextEncodedLength, candidateEncodedLength));
- }
-
- /**
- * Gets the encoded string length.
- *
- * @param text the text
- * @return the encoded string length
- */
- private int getEncodedStringLength(String text){
- return this.refinedSoundex.encode(text).length();
- }
-
- /**
- * Normalize score.
- *
- * @param score the score
- * @param shortestEncodedLength the shortest encoded length
- * @return the float
- */
- protected float normalizeScore(float score, int shortestEncodedLength){
- return score / shortestEncodedLength;
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/match/StartsWithMatcher.java b/cts2Impl/src/main/java/org/cts2/internal/match/StartsWithMatcher.java
deleted file mode 100644
index dc56aa75ea..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/match/StartsWithMatcher.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.match;
-
-/**
- * The Class StartsWithMatcher.
- *
- * @author Kevin Peterson
- */
-public class StartsWithMatcher extends AbstractNonScoringMatcher {
-
- /* (non-Javadoc)
- * @see org.cts2.internal.match.AbstractMatcher#doIsMatch(java.lang.String, java.lang.String)
- */
- @Override
- protected boolean isMatch(String matchText, String cadidate) {
- return cadidate.startsWith(matchText);
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/match/WildcardMatcher.java b/cts2Impl/src/main/java/org/cts2/internal/match/WildcardMatcher.java
deleted file mode 100644
index f0f3098a03..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/match/WildcardMatcher.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.match;
-
-/**
- * The Class WildcardMatcher.
- *
- * @author Kevin Peterson
- */
-public class WildcardMatcher extends RegexMatcher {
-
- /** The WILDCARD. */
- public static String WILDCARD = "*";
-
- /** The MATC h_ al l_ regex. */
- public static String MATCH_ALL_REGEX = ".*";
-
- /* (non-Javadoc)
- * @see org.cts2.internal.match.RegexMatcher#regexMatch(java.lang.String, java.lang.String)
- */
- @Override
- protected boolean regexMatch(String matchText, String cadidate) {
- matchText = matchText.replace(WILDCARD, MATCH_ALL_REGEX);
-
- return super.regexMatch(matchText, cadidate);
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/model/directory/ListBackedValueSetDirectory.java b/cts2Impl/src/main/java/org/cts2/internal/model/directory/ListBackedValueSetDirectory.java
deleted file mode 100644
index 981703d1e3..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/model/directory/ListBackedValueSetDirectory.java
+++ /dev/null
@@ -1,100 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.model.directory;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.LexGrid.LexBIG.Exceptions.LBException;
-import org.cts2.internal.mapper.BeanMapper;
-import org.cts2.valueset.ValueSetDirectory;
-import org.cts2.valueset.ValueSetDirectoryEntry;
-import org.lexgrid.valuesets.dto.ResolvedValueSetDefinition;
-
-/**
- * The Class ListBackedValueSetDirectory.
- *
- * @author Kevin Peterson
- */
-public class ListBackedValueSetDirectory extends ValueSetDirectory {
-
- /** The Constant serialVersionUID. */
- private static final long serialVersionUID = -235309050016482174L;
-
- /** The cache. */
- private List list;
-
- /**
- * Instantiates a new resolved concept references iterator backed entity directory.
- *
- * @param codedNodeSet the coded node set
- * @param beanMapper the bean mapper
- * @throws LBException the LB exception
- */
- public ListBackedValueSetDirectory(
- List resolvedValueSetDefinitions,
- BeanMapper beanMapper) throws LBException {
- this.list = this.createValueSetDirectoryEntryList(resolvedValueSetDefinitions, beanMapper);
- }
-
- protected List createValueSetDirectoryEntryList(
- List resolvedValueSetDefinitions,
- BeanMapper beanMapper) {
- List returnList = new ArrayList();
- for(ResolvedValueSetDefinition resolvedValueSetDefinition : resolvedValueSetDefinitions) {
- returnList.add(beanMapper.map(resolvedValueSetDefinition, ValueSetDirectoryEntry.class));
- }
-
- return returnList;
- }
-
- /* (non-Javadoc)
- * @see org.cts2.entity.EntityDirectory#getEntry(int)
- */
- @Override
- public ValueSetDirectoryEntry getEntry(int index)
- throws IndexOutOfBoundsException {
- return this.list.get(index);
- }
-
- /* (non-Javadoc)
- * @see org.cts2.entity.EntityDirectory#getEntry()
- */
- @Override
- public ValueSetDirectoryEntry[] getEntry() {
- return this.list.toArray(new ValueSetDirectoryEntry[this.list.size()]);
- }
-
- /* (non-Javadoc)
- * @see org.cts2.entity.EntityDirectory#iterateEntry()
- */
- @Override
- public Iterator extends ValueSetDirectoryEntry> iterateEntry() {
- return this.list.iterator();
- }
-
- /* (non-Javadoc)
- * @see org.cts2.entity.EntityDirectory#getEntryCount()
- */
- @Override
- public int getEntryCount() {
- return this.list.size();
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/model/directory/ResolvedConceptReferencesIteratorBackedAssociationDirectory.java b/cts2Impl/src/main/java/org/cts2/internal/model/directory/ResolvedConceptReferencesIteratorBackedAssociationDirectory.java
deleted file mode 100644
index 9687b93a39..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/model/directory/ResolvedConceptReferencesIteratorBackedAssociationDirectory.java
+++ /dev/null
@@ -1,92 +0,0 @@
-package org.cts2.internal.model.directory;
-
-import java.util.Iterator;
-import java.util.List;
-
-import org.LexGrid.LexBIG.DataModel.Collections.ResolvedConceptReferenceList;
-import org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference;
-import org.LexGrid.LexBIG.Exceptions.LBException;
-import org.LexGrid.LexBIG.Exceptions.LBResourceUnavailableException;
-import org.LexGrid.LexBIG.LexBIGService.CodedNodeGraph;
-import org.cts2.association.AssociationDirectory;
-import org.cts2.association.AssociationDirectoryEntry;
-import org.cts2.internal.model.directory.iterator.DirectoryEntryIterator;
-import org.cts2.internal.mapper.BeanMapper;
-import org.cts2.internal.util.PagingList;
-
-public class ResolvedConceptReferencesIteratorBackedAssociationDirectory extends
- AssociationDirectory {
- /**
- *
- */
- private static final long serialVersionUID = 1L;
- /** The cache. */
- private List cache;
-
- public ResolvedConceptReferencesIteratorBackedAssociationDirectory(
- CodedNodeGraph codedNodeGraph,
- BeanMapper beanMapper) throws LBException {
- this(codedNodeGraph.resolveAsList(null, true, false, 1000, -1, null, null, null, null, -1), beanMapper);
- }
-
- public ResolvedConceptReferencesIteratorBackedAssociationDirectory(
- ResolvedConceptReferenceList list,
- BeanMapper beanMapper){
- try {
- this.cache = this.buildCacheList(list, beanMapper);
- } catch (LBException e) {
- throw new RuntimeException(e);
- }
- }
-
- private List buildCacheList(
- ResolvedConceptReferenceList list, BeanMapper beanMapper) throws LBResourceUnavailableException {
- @SuppressWarnings("unchecked")
- Iterator iterator = (Iterator) list.iterateResolvedConceptReference();
- return new PagingList(
- this.buildDirectoryEntryIterator(iterator, beanMapper),
- list.getResolvedConceptReferenceCount());
- }
-
- private Iterator buildDirectoryEntryIterator(
- Iterator iterator, BeanMapper beanMapper) {
- return new
- DirectoryEntryIterator(
- iterator, AssociationDirectoryEntry.class, beanMapper);
- }
-
- /* (non-Javadoc)
- * @see org.cts2.entity.EntityDirectory#getEntry(int)
- */
- @Override
- public AssociationDirectoryEntry getEntry(int index)
- throws IndexOutOfBoundsException {
- return this.cache.get(index);
- }
-
- /* (non-Javadoc)
- * @see org.cts2.entity.EntityDirectory#getEntry()
- */
- @Override
- public AssociationDirectoryEntry[] getEntry() {
- return this.cache.toArray(new AssociationDirectoryEntry[this.cache.size()]);
- }
-
- /* (non-Javadoc)
- * @see org.cts2.entity.EntityDirectory#iterateEntry()
- */
- @Override
- public Iterator extends AssociationDirectoryEntry> iterateEntry() {
- return this.cache.iterator();
- }
-
- /* (non-Javadoc)
- * @see org.cts2.entity.EntityDirectory#getEntryCount()
- */
- @Override
- public int getEntryCount() {
- return this.cache.size();
- }
-
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/model/directory/ResolvedConceptReferencesIteratorBackedAssociationList.java b/cts2Impl/src/main/java/org/cts2/internal/model/directory/ResolvedConceptReferencesIteratorBackedAssociationList.java
deleted file mode 100644
index f85828d5d6..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/model/directory/ResolvedConceptReferencesIteratorBackedAssociationList.java
+++ /dev/null
@@ -1,152 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.model.directory;
-
-import java.util.Iterator;
-import java.util.List;
-
-import org.LexGrid.LexBIG.DataModel.Collections.ResolvedConceptReferenceList;
-import org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference;
-import org.LexGrid.LexBIG.Exceptions.LBException;
-import org.LexGrid.LexBIG.LexBIGService.CodedNodeGraph;
-import org.cts2.association.AssociationList;
-import org.cts2.association.AssociationListEntry;
-import org.cts2.internal.mapper.BeanMapper;
-import org.cts2.internal.model.directory.iterator.DirectoryEntryIterator;
-import org.cts2.internal.util.PagingList;
-/**
- * @author Scott Bauer
- *
- */
-public class ResolvedConceptReferencesIteratorBackedAssociationList extends
- AssociationList {
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- /** The cache. */
- private List cache;
-
- /**
- * Instantiates a new resolved concept references iterator backed
- * Association directory.
- *
- * @param codedNodeSet
- * the coded node set
- * @param beanMapper
- * the bean mapper
- * @throws LBException
- * the LB exception
- */
- public ResolvedConceptReferencesIteratorBackedAssociationList(
- CodedNodeGraph codedNodeGraph, BeanMapper beanMapper)
- throws LBException {
- this(codedNodeGraph.resolveAsList(null, true, false, 1000, -1, null,
- null, null, null, -1), beanMapper);
- }
-
- /**
- * Instantiates a new resolved concept references list backed
- * Association directory.
- *
- * @param list
- * the iterator
- * @param beanMapper
- * the bean mapper
- */
- public ResolvedConceptReferencesIteratorBackedAssociationList(
- ResolvedConceptReferenceList list, BeanMapper beanMapper) {
- try {
- this.cache = this.buildCacheList(list, beanMapper);
- } catch (LBException e) {
- throw new RuntimeException(e);
- }
- }
-
- protected List buildCacheList(
- ResolvedConceptReferenceList list, BeanMapper beanMapper)
- throws LBException {
- @SuppressWarnings("unchecked")
- Iterator iterator = (Iterator) list
- .iterateResolvedConceptReference();
- return new PagingList(
- this.buildDirectoryEntryIterator(iterator, beanMapper),
- list.getResolvedConceptReferenceCount());
-
- }
-
- /**
- * Builds the List entry iterator.
- *
- * @param iterator
- * the iterator
- * @param beanMapper
- * the bean mapper
- * @return the iterator
- */
- private Iterator buildDirectoryEntryIterator(
- Iterator iterator, BeanMapper beanMapper) {
- return new
- DirectoryEntryIterator(
- iterator, AssociationListEntry.class, beanMapper);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.cts2.association.AssociationList#getEntry(int)
- */
- @Override
- public AssociationListEntry getEntry(int index)
- throws IndexOutOfBoundsException {
- return this.cache.get(index);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.cts2.association.AssociationList#getEntry()
- */
- @Override
- public AssociationListEntry[] getEntry() {
- return this.cache.toArray(new AssociationListEntry[this.cache.size()]);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.cts2.association.AssociationList#iterateEntry()
- */
- @Override
- public Iterator extends AssociationListEntry> iterateEntry() {
- return this.cache.iterator();
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.cts2.association.AssociationList#getEntryCount()
- */
- @Override
- public int getEntryCount() {
- return this.cache.size();
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/model/directory/ResolvedConceptReferencesIteratorBackedEntityDirectory.java b/cts2Impl/src/main/java/org/cts2/internal/model/directory/ResolvedConceptReferencesIteratorBackedEntityDirectory.java
deleted file mode 100644
index 8d0b7c482b..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/model/directory/ResolvedConceptReferencesIteratorBackedEntityDirectory.java
+++ /dev/null
@@ -1,139 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.model.directory;
-
-import java.util.Iterator;
-import java.util.List;
-
-import org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference;
-import org.LexGrid.LexBIG.Exceptions.LBException;
-import org.LexGrid.LexBIG.Impl.helpers.ResolvedConceptReferencesIteratorAdapter;
-import org.LexGrid.LexBIG.LexBIGService.CodedNodeSet;
-import org.LexGrid.LexBIG.Utility.Iterators.ResolvedConceptReferencesIterator;
-import org.cts2.entity.EntityDirectory;
-import org.cts2.entity.EntityDirectoryEntry;
-import org.cts2.internal.mapper.BeanMapper;
-import org.cts2.internal.model.directory.iterator.DirectoryEntryIterator;
-import org.cts2.internal.util.PagingList;
-
-/**
- * The Class ResolvedConceptReferencesIteratorBackedEntityDirectory.
- *
- * @author Kevin Peterson
- */
-public class ResolvedConceptReferencesIteratorBackedEntityDirectory extends EntityDirectory {
-
- /** The Constant serialVersionUID. */
- private static final long serialVersionUID = -235309050016482174L;
-
- /** The cache. */
- private List cache;
-
- /**
- * Instantiates a new resolved concept references iterator backed entity directory.
- *
- * @param codedNodeSet the coded node set
- * @param beanMapper the bean mapper
- * @throws LBException the LB exception
- */
- public ResolvedConceptReferencesIteratorBackedEntityDirectory(
- CodedNodeSet codedNodeSet,
- BeanMapper beanMapper) throws LBException {
- this(codedNodeSet.resolve(null, null, null, null, false), beanMapper);
- }
-
- /**
- * Instantiates a new resolved concept references iterator backed entity directory.
- *
- * @param iterator the iterator
- * @param beanMapper the bean mapper
- */
- public ResolvedConceptReferencesIteratorBackedEntityDirectory(
- ResolvedConceptReferencesIterator iterator,
- BeanMapper beanMapper){
- try {
- this.cache = this.buildCacheList(iterator, beanMapper);
- } catch (LBException e) {
- throw new RuntimeException(e);
- }
- }
-
- /**
- * Builds the cache list.
- *
- * @param iterator the iterator
- * @param beanMapper the bean mapper
- * @return the list
- * @throws LBException the LB exception
- */
- protected List buildCacheList(ResolvedConceptReferencesIterator iterator, BeanMapper beanMapper)
- throws LBException{
- return new PagingList(
- this.buildDirectoryEntryIterator(iterator, beanMapper),
- iterator.numberRemaining());
- }
-
- /**
- * Builds the directory entry iterator.
- *
- * @param iterator the iterator
- * @param beanMapper the bean mapper
- * @return the iterator
- */
- protected Iterator
- buildDirectoryEntryIterator(ResolvedConceptReferencesIterator iterator, BeanMapper beanMapper){
- return new
- DirectoryEntryIterator(
- new ResolvedConceptReferencesIteratorAdapter(iterator), EntityDirectoryEntry.class, beanMapper);
- }
-
-
- /* (non-Javadoc)
- * @see org.cts2.entity.EntityDirectory#getEntry(int)
- */
- @Override
- public EntityDirectoryEntry getEntry(int index)
- throws IndexOutOfBoundsException {
- return this.cache.get(index);
- }
-
- /* (non-Javadoc)
- * @see org.cts2.entity.EntityDirectory#getEntry()
- */
- @Override
- public EntityDirectoryEntry[] getEntry() {
- return this.cache.toArray(new EntityDirectoryEntry[this.cache.size()]);
- }
-
- /* (non-Javadoc)
- * @see org.cts2.entity.EntityDirectory#iterateEntry()
- */
- @Override
- public Iterator extends EntityDirectoryEntry> iterateEntry() {
- return this.cache.iterator();
- }
-
- /* (non-Javadoc)
- * @see org.cts2.entity.EntityDirectory#getEntryCount()
- */
- @Override
- public int getEntryCount() {
- return this.cache.size();
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/model/directory/ResolvedConceptReferencesIteratorBackedEntityList.java b/cts2Impl/src/main/java/org/cts2/internal/model/directory/ResolvedConceptReferencesIteratorBackedEntityList.java
deleted file mode 100644
index 7305573642..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/model/directory/ResolvedConceptReferencesIteratorBackedEntityList.java
+++ /dev/null
@@ -1,139 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.model.directory;
-
-import java.util.Iterator;
-import java.util.List;
-
-import org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference;
-import org.LexGrid.LexBIG.Exceptions.LBException;
-import org.LexGrid.LexBIG.Impl.helpers.ResolvedConceptReferencesIteratorAdapter;
-import org.LexGrid.LexBIG.LexBIGService.CodedNodeSet;
-import org.LexGrid.LexBIG.Utility.Iterators.ResolvedConceptReferencesIterator;
-import org.cts2.entity.EntityList;
-import org.cts2.entity.EntityListEntry;
-import org.cts2.internal.mapper.BeanMapper;
-import org.cts2.internal.model.directory.iterator.DirectoryEntryIterator;
-import org.cts2.internal.util.PagingList;
-
-/**
- * The Class ResolvedConceptReferencesIteratorBackedEntityList.
- *
- * @author Kevin Peterson
- */
-public class ResolvedConceptReferencesIteratorBackedEntityList extends EntityList {
-
- /** The Constant serialVersionUID. */
- private static final long serialVersionUID = -235309050016482174L;
-
- /** The cache. */
- private List cache;
-
- /**
- * Instantiates a new resolved concept references iterator backed entity directory.
- *
- * @param codedNodeSet the coded node set
- * @param beanMapper the bean mapper
- * @throws LBException the LB exception
- */
- public ResolvedConceptReferencesIteratorBackedEntityList(
- CodedNodeSet codedNodeSet,
- BeanMapper beanMapper) throws LBException {
- this(codedNodeSet.resolve(null, null, null, null, false), beanMapper);
- }
-
- /**
- * Instantiates a new resolved concept references iterator backed entity directory.
- *
- * @param iterator the iterator
- * @param beanMapper the bean mapper
- */
- public ResolvedConceptReferencesIteratorBackedEntityList(
- ResolvedConceptReferencesIterator iterator,
- BeanMapper beanMapper){
- try {
- this.cache = this.buildCacheList(iterator, beanMapper);
- } catch (LBException e) {
- throw new RuntimeException(e);
- }
- }
-
- /**
- * Builds the cache list.
- *
- * @param iterator the iterator
- * @param beanMapper the bean mapper
- * @return the list
- * @throws LBException the LB exception
- */
- protected List buildCacheList(ResolvedConceptReferencesIterator iterator, BeanMapper beanMapper)
- throws LBException{
- return new PagingList(
- this.buildDirectoryEntryIterator(iterator, beanMapper),
- iterator.numberRemaining());
- }
-
- /**
- * Builds the directory entry iterator.
- *
- * @param iterator the iterator
- * @param beanMapper the bean mapper
- * @return the iterator
- */
- protected Iterator
- buildDirectoryEntryIterator(ResolvedConceptReferencesIterator iterator, BeanMapper beanMapper){
- return new
- DirectoryEntryIterator(
- new ResolvedConceptReferencesIteratorAdapter(iterator), EntityListEntry.class, beanMapper);
- }
-
-
- /* (non-Javadoc)
- * @see org.cts2.entity.EntityDirectory#getEntry(int)
- */
- @Override
- public EntityListEntry getEntry(int index)
- throws IndexOutOfBoundsException {
- return this.cache.get(index);
- }
-
- /* (non-Javadoc)
- * @see org.cts2.entity.EntityDirectory#getEntry()
- */
- @Override
- public EntityListEntry[] getEntry() {
- return this.cache.toArray(new EntityListEntry[this.cache.size()]);
- }
-
- /* (non-Javadoc)
- * @see org.cts2.entity.EntityDirectory#iterateEntry()
- */
- @Override
- public Iterator extends EntityListEntry> iterateEntry() {
- return this.cache.iterator();
- }
-
- /* (non-Javadoc)
- * @see org.cts2.entity.EntityDirectory#getEntryCount()
- */
- @Override
- public int getEntryCount() {
- return this.cache.size();
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/model/directory/ResolvedConceptReferencesIteratorBackedMapVersionDirectory.java b/cts2Impl/src/main/java/org/cts2/internal/model/directory/ResolvedConceptReferencesIteratorBackedMapVersionDirectory.java
deleted file mode 100644
index e9a7a56eb2..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/model/directory/ResolvedConceptReferencesIteratorBackedMapVersionDirectory.java
+++ /dev/null
@@ -1,80 +0,0 @@
-package org.cts2.internal.model.directory;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.List;
-
-import org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference;
-import org.LexGrid.LexBIG.DataModel.InterfaceElements.CodingSchemeRendering;
-import org.LexGrid.LexBIG.Exceptions.LBException;
-import org.LexGrid.LexBIG.Exceptions.LBResourceUnavailableException;
-import org.LexGrid.LexBIG.Extensions.Generic.MappingExtension.Mapping;
-import org.LexGrid.LexBIG.Impl.helpers.ResolvedConceptReferencesIteratorAdapter;
-import org.LexGrid.LexBIG.Utility.Iterators.ResolvedConceptReferencesIterator;
-import org.cts2.internal.mapper.BeanMapper;
-import org.cts2.internal.model.directory.iterator.DirectoryEntryIterator;
-import org.cts2.internal.util.PagingList;
-import org.cts2.map.MapVersionDirectory;
-import org.cts2.map.MapVersionDirectoryEntry;
-
-import com.google.common.collect.Iterators;
-
-/**
- * The class ResolvedConceptReferencesIteratorBackedMapVersionDirectory
- *
- * @author Zonghui Lian
- *
- */
-public class ResolvedConceptReferencesIteratorBackedMapVersionDirectory extends
- MapVersionDirectory {
-
- private static final long serialVersionUID = -7474745464435213892L;
- private List cache;
-
- public ResolvedConceptReferencesIteratorBackedMapVersionDirectory(
- Iterable csrIterator, BeanMapper beanMapper)
- throws LBException {
-
- this.cache = this.buildCacheList(csrIterator, beanMapper);
- }
-
- private List buildCacheList(
- Iterable csrIterator, BeanMapper beanMapper)
- throws LBResourceUnavailableException {
-
- return new PagingList(
- this.buildMapVersionDirectoryEntryIterator(csrIterator,
- beanMapper), Iterators.size(csrIterator.iterator()));
- }
-
- private Iterator buildMapVersionDirectoryEntryIterator(
- Iterable csrIterator, BeanMapper beanMapper) {
- return new DirectoryEntryIterator(
- csrIterator.iterator(), MapVersionDirectoryEntry.class,
- beanMapper);
- }
-
- @Override
- public MapVersionDirectoryEntry getEntry(int index)
- throws IndexOutOfBoundsException {
- return this.cache.get(index);
- }
-
- @Override
- public MapVersionDirectoryEntry[] getEntry() {
- return this.cache.toArray(new MapVersionDirectoryEntry[this.cache
- .size()]);
- }
-
- @Override
- public Iterator extends MapVersionDirectoryEntry> iterateEntry() {
- return this.cache.iterator();
- }
-
- @Override
- public int getEntryCount() {
- return this.cache.size();
- }
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/model/directory/ResolvedConceptReferencesIteratorBackedMapVersionListDirectory.java b/cts2Impl/src/main/java/org/cts2/internal/model/directory/ResolvedConceptReferencesIteratorBackedMapVersionListDirectory.java
deleted file mode 100644
index 895843f35e..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/model/directory/ResolvedConceptReferencesIteratorBackedMapVersionListDirectory.java
+++ /dev/null
@@ -1,75 +0,0 @@
-package org.cts2.internal.model.directory;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference;
-import org.LexGrid.LexBIG.DataModel.InterfaceElements.CodingSchemeRendering;
-import org.LexGrid.LexBIG.Exceptions.LBException;
-import org.LexGrid.LexBIG.Exceptions.LBResourceUnavailableException;
-import org.LexGrid.LexBIG.Extensions.Generic.MappingExtension.Mapping;
-import org.LexGrid.LexBIG.Impl.helpers.ResolvedConceptReferencesIteratorAdapter;
-import org.LexGrid.LexBIG.Utility.Iterators.ResolvedConceptReferencesIterator;
-import org.cts2.internal.mapper.BeanMapper;
-import org.cts2.internal.model.directory.iterator.DirectoryEntryIterator;
-import org.cts2.internal.util.PagingList;
-import org.cts2.map.MapVersionList;
-import org.cts2.map.MapVersionListEntry;
-
-import com.google.common.collect.Iterators;
-
-/**
- * The class ResolvedConceptReferencesIteratorBackedMapVersionListDirectory
- *
- * @author Zonghui Lian
- *
- */
-public class ResolvedConceptReferencesIteratorBackedMapVersionListDirectory
- extends MapVersionList {
- private static final long serialVersionUID = -68126108480534728L;
-
- /* The cache */
- private List cache;
-
- public ResolvedConceptReferencesIteratorBackedMapVersionListDirectory(
- Iterable csrIterator, BeanMapper beanMapper)
- throws LBException {
- this.cache = this.buildCacheList(csrIterator, beanMapper);
- }
-
- private List buildCacheList(
- Iterable csrIterator, BeanMapper beanMapper)
- throws LBResourceUnavailableException {
- return new PagingList(
- this.buildMapVersionListEntryIterator(csrIterator, beanMapper),
- Iterators.size(csrIterator.iterator()));
- }
-
- private Iterator buildMapVersionListEntryIterator(
- Iterable csrIterator, BeanMapper beanMapper) {
- return new DirectoryEntryIterator(
- csrIterator.iterator(), MapVersionListEntry.class, beanMapper);
- }
-
- @Override
- public MapVersionListEntry getEntry(int index)
- throws IndexOutOfBoundsException {
- return this.cache.get(index);
- }
-
- @Override
- public MapVersionListEntry[] getEntry() {
- return this.cache.toArray(new MapVersionListEntry[this.cache.size()]);
- }
-
- @Override
- public Iterator extends MapVersionListEntry> iterateEntry() {
- return this.cache.iterator();
- }
-
- @Override
- public int getEntryCount() {
- return this.cache.size();
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/model/directory/iterator/DirectoryEntryIterator.java b/cts2Impl/src/main/java/org/cts2/internal/model/directory/iterator/DirectoryEntryIterator.java
deleted file mode 100644
index 5bcb67ddee..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/model/directory/iterator/DirectoryEntryIterator.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.model.directory.iterator;
-
-import java.util.Iterator;
-
-import org.cts2.internal.mapper.BeanMapper;
-
-/**
- * The Class DirectoryEntryIterator.
- *
- * @author Kevin Peterson
- */
-public class DirectoryEntryIterator implements Iterator{
-
- /** The Constant serialVersionUID. */
- private static final long serialVersionUID = -2616653453721025571L;
-
- /** The bean mapper. */
- private BeanMapper beanMapper;
-
- /** The iterator. */
- private Iterator iterator;
-
- /** The output class. */
- private Class outputClass;
-
- /**
- * Instantiates a new directory entry iterator.
- *
- * @param iterator the iterator
- * @param outputClass the output class
- * @param beanMapper the bean mapper
- */
- public DirectoryEntryIterator(Iterator iterator, Class outputClass, BeanMapper beanMapper) {
- super();
- this.iterator = iterator;
- this.outputClass = outputClass;
- this.beanMapper = beanMapper;
- }
-
- /* (non-Javadoc)
- * @see java.util.Iterator#next()
- */
- @Override
- public O next() {
- return this.beanMapper.map(this.iterator.next(), this.outputClass);
- }
-
- /* (non-Javadoc)
- * @see java.util.Iterator#hasNext()
- */
- @Override
- public boolean hasNext() {
- return this.iterator.hasNext();
- }
-
- /* (non-Javadoc)
- * @see java.util.Iterator#remove()
- */
- @Override
- public void remove() {
- throw new UnsupportedOperationException();
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/model/resource/factory/AbstractResourceFactory.java b/cts2Impl/src/main/java/org/cts2/internal/model/resource/factory/AbstractResourceFactory.java
deleted file mode 100644
index 7f50812fc2..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/model/resource/factory/AbstractResourceFactory.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.model.resource.factory;
-
-import java.sql.Timestamp;
-import java.util.Date;
-
-import org.lexevs.dao.database.access.DaoManager;
-import org.lexevs.dao.database.service.daocallback.DaoCallbackService.DaoCallback;
-import org.lexevs.locator.LexEvsServiceLocator;
-
-/**
- * A factory for creating AbstractResource objects.
- */
-public abstract class AbstractResourceFactory {
-
- /** The lex evs service locator. */
- private LexEvsServiceLocator lexEvsServiceLocator;
-
- /**
- * Gets the revision id by date.
- *
- * @param date the date
- * @return the revision id by date
- */
- protected String getRevisionIdByDate(final Date date){
- return this.lexEvsServiceLocator.
- getDatabaseServiceManager().
- getDaoCallbackService().
- executeInDaoLayer(new DaoCallback(){
-
- @Override
- public String execute(DaoManager daoManager) {
- return daoManager.getRevisionDao().getRevisionIdForDate(new Timestamp(date.getTime()));
- }
- });
- }
-
- /**
- * Sets the lex evs service locator.
- *
- * @param lexEvsServiceLocator the new lex evs service locator
- */
- public void setLexEvsServiceLocator(LexEvsServiceLocator lexEvsServiceLocator) {
- this.lexEvsServiceLocator = lexEvsServiceLocator;
- }
-
- /**
- * Gets the lex evs service locator.
- *
- * @return the lex evs service locator
- */
- public LexEvsServiceLocator getLexEvsServiceLocator() {
- return lexEvsServiceLocator;
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/model/resource/factory/AssociationFactory.java b/cts2Impl/src/main/java/org/cts2/internal/model/resource/factory/AssociationFactory.java
deleted file mode 100644
index c4f201c8e1..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/model/resource/factory/AssociationFactory.java
+++ /dev/null
@@ -1,121 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.model.resource.factory;
-
-import org.LexGrid.LexBIG.DataModel.Core.AbsoluteCodingSchemeVersionReference;
-import org.LexGrid.LexBIG.Exceptions.LBException;
-import org.LexGrid.LexBIG.LexBIGService.LexBIGService;
-import org.LexGrid.LexBIG.Utility.Constructors;
-import org.LexGrid.codingSchemes.CodingScheme;
-import org.cts2.association.Association;
-import org.cts2.internal.lexevs.identity.LexEvsIdentityConverter;
-import org.cts2.internal.mapper.BeanMapper;
-import org.cts2.internal.model.uri.factory.DirectoryURIFactory;
-import org.cts2.profile.query.EntityDescriptionQueryService;
-import org.cts2.service.core.NameOrURI;
-import org.cts2.uri.EntityDirectoryURI;
-
-/**
- * A factory for creating Association objects.
- */
-public class AssociationFactory {
-
- /** The bean mapper. */
- private BeanMapper beanMapper;
-
- /** The lex big service. */
- private LexBIGService lexBigService;
-
- /** The lex evs identity converter. */
- private LexEvsIdentityConverter lexEvsIdentityConverter;
-
- /** The entity description query service. */
- private EntityDescriptionQueryService entityDescriptionQueryService;
-
- /** The entity directory uri factory. */
- private DirectoryURIFactory entityDirectoryUriFactory;
-
- /**
- * Gets the Association.
- *
- * @param nameOrUri the name or uri
- * @return the code system version
- */
- public Association getAssociation(NameOrURI nameOrUri ){
- AbsoluteCodingSchemeVersionReference ref = this.lexEvsIdentityConverter.nameOrUriToAbsoluteCodingSchemeVersionReference(nameOrUri);
-
- return new Association();
- }
-
- /**
- * Gets the bean mapper.
- *
- * @return the bean mapper
- */
- public BeanMapper getBeanMapper() {
- return beanMapper;
- }
-
- /**
- * Sets the bean mapper.
- *
- * @param beanMapper the new bean mapper
- */
- public void setBeanMapper(BeanMapper beanMapper) {
- this.beanMapper = beanMapper;
- }
-
- /**
- * Gets the lex big service.
- *
- * @return the lex big service
- */
- public LexBIGService getLexBigService() {
- return lexBigService;
- }
-
- /**
- * Sets the lex big service.
- *
- * @param lexBigService the new lex big service
- */
- public void setLexBigService(LexBIGService lexBigService) {
- this.lexBigService = lexBigService;
- }
-
- /**
- * Gets the lex evs identity converter.
- *
- * @return the lex evs identity converter
- */
- public LexEvsIdentityConverter getLexEvsIdentityConverter() {
- return lexEvsIdentityConverter;
- }
-
- /**
- * Sets the lex evs identity converter.
- *
- * @param lexEvsIdentityConverter the new lex evs identity converter
- */
- public void setLexEvsIdentityConverter(
- LexEvsIdentityConverter lexEvsIdentityConverter) {
- this.lexEvsIdentityConverter = lexEvsIdentityConverter;
- }
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/model/resource/factory/CodeSystemVersionFactory.java b/cts2Impl/src/main/java/org/cts2/internal/model/resource/factory/CodeSystemVersionFactory.java
deleted file mode 100644
index 13eed38cce..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/model/resource/factory/CodeSystemVersionFactory.java
+++ /dev/null
@@ -1,214 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.model.resource.factory;
-
-import java.util.Date;
-
-import org.LexGrid.LexBIG.DataModel.Core.AbsoluteCodingSchemeVersionReference;
-import org.LexGrid.LexBIG.Exceptions.LBException;
-import org.LexGrid.LexBIG.LexBIGService.LexBIGService;
-import org.LexGrid.LexBIG.Utility.Constructors;
-import org.LexGrid.codingSchemes.CodingScheme;
-import org.apache.commons.lang.StringUtils;
-import org.cts2.codesystemversion.CodeSystemVersion;
-import org.cts2.internal.lexevs.identity.LexEvsIdentityConverter;
-import org.cts2.internal.mapper.BeanMapper;
-import org.cts2.internal.model.uri.factory.DirectoryURIFactory;
-import org.cts2.profile.query.EntityDescriptionQueryService;
-import org.cts2.service.core.NameOrURI;
-import org.cts2.uri.EntityDirectoryURI;
-
-/**
- * A factory for creating CodeSystemVersion objects.
- */
-public class CodeSystemVersionFactory extends AbstractResourceFactory {
-
- /** The bean mapper. */
- private BeanMapper beanMapper;
-
- /** The lex big service. */
- private LexBIGService lexBigService;
-
- /** The lex evs identity converter. */
- private LexEvsIdentityConverter lexEvsIdentityConverter;
-
- /** The entity description query service. */
- private EntityDescriptionQueryService entityDescriptionQueryService;
-
- /** The entity directory uri factory. */
- private DirectoryURIFactory entityDirectoryUriFactory;
-
- public CodeSystemVersion getCurrentCodeSystemVersion(NameOrURI nameOrUri){
- return this.getCodeSystemVersionByRevisionId(nameOrUri, null);
- }
-
- public CodeSystemVersion getCodeSystemVersionByDate(NameOrURI nameOrUri, Date date){
- String revisionId;
-
- if(date == null){
- return this.getCurrentCodeSystemVersion(nameOrUri);
- } else {
- revisionId = this.getRevisionIdByDate(date);
- return this.getCodeSystemVersionByRevisionId(nameOrUri, revisionId);
- }
- }
-
- /**
- * Gets the code system version.
- *
- * @param nameOrUri the name or uri
- * @return the code system version
- */
- public CodeSystemVersion getCodeSystemVersionByRevisionId(NameOrURI nameOrUri, String revisionId){
- AbsoluteCodingSchemeVersionReference ref = this.lexEvsIdentityConverter.nameOrUriToAbsoluteCodingSchemeVersionReference(nameOrUri);
-
- CodingScheme codingScheme;
- try {
- if(StringUtils.isBlank(revisionId)){
- codingScheme = getCodingScheme(ref);
- } else {
- codingScheme = getCodingScheme(ref, revisionId);
- }
- } catch (LBException e) {
- throw new RuntimeException(e);
- }
-
- CodeSystemVersion codeSystemVersion = this.beanMapper.map(codingScheme, CodeSystemVersion.class);
-
- EntityDirectoryURI entityDirectoryURI = this.entityDirectoryUriFactory.getDirectoryURI();
-
- this.entityDescriptionQueryService.restrictToCodeSystemVersions(entityDirectoryURI, nameOrUri);
-
- codeSystemVersion.setEntityDescriptions(this.entityDirectoryUriFactory.getDirectoryURI());
-
- return codeSystemVersion;
- }
-
- private CodingScheme getCodingScheme(
- AbsoluteCodingSchemeVersionReference ref) throws LBException {
- CodingScheme codingScheme = this.lexBigService.resolveCodingScheme(
- ref.getCodingSchemeURN(),
- Constructors.createCodingSchemeVersionOrTagFromVersion(ref.getCodingSchemeVersion()));
- return codingScheme;
- }
-
- private CodingScheme getCodingScheme(
- AbsoluteCodingSchemeVersionReference ref, String revisionId) throws LBException {
-
- return this.getLexEvsServiceLocator().
- getDatabaseServiceManager().
- getCodingSchemeService().
- resolveCodingSchemeByRevision(
- ref.getCodingSchemeURN(),
- ref.getCodingSchemeVersion(), revisionId);
- }
-
- /**
- * Gets the bean mapper.
- *
- * @return the bean mapper
- */
- public BeanMapper getBeanMapper() {
- return beanMapper;
- }
-
- /**
- * Sets the bean mapper.
- *
- * @param beanMapper the new bean mapper
- */
- public void setBeanMapper(BeanMapper beanMapper) {
- this.beanMapper = beanMapper;
- }
-
- /**
- * Gets the lex big service.
- *
- * @return the lex big service
- */
- public LexBIGService getLexBigService() {
- return lexBigService;
- }
-
- /**
- * Sets the lex big service.
- *
- * @param lexBigService the new lex big service
- */
- public void setLexBigService(LexBIGService lexBigService) {
- this.lexBigService = lexBigService;
- }
-
- /**
- * Gets the lex evs identity converter.
- *
- * @return the lex evs identity converter
- */
- public LexEvsIdentityConverter getLexEvsIdentityConverter() {
- return lexEvsIdentityConverter;
- }
-
- /**
- * Sets the lex evs identity converter.
- *
- * @param lexEvsIdentityConverter the new lex evs identity converter
- */
- public void setLexEvsIdentityConverter(
- LexEvsIdentityConverter lexEvsIdentityConverter) {
- this.lexEvsIdentityConverter = lexEvsIdentityConverter;
- }
-
- /**
- * Gets the entity description query service.
- *
- * @return the entity description query service
- */
- public EntityDescriptionQueryService getEntityDescriptionQueryService() {
- return entityDescriptionQueryService;
- }
-
- /**
- * Sets the entity description query service.
- *
- * @param entityDescriptionQueryService the new entity description query service
- */
- public void setEntityDescriptionQueryService(
- EntityDescriptionQueryService entityDescriptionQueryService) {
- this.entityDescriptionQueryService = entityDescriptionQueryService;
- }
-
- /**
- * Gets the entity directory uri factory.
- *
- * @return the entity directory uri factory
- */
- public DirectoryURIFactory getEntityDirectoryUriFactory() {
- return entityDirectoryUriFactory;
- }
-
- /**
- * Sets the entity directory uri factory.
- *
- * @param entityDirectoryUriFactory the new entity directory uri factory
- */
- public void setEntityDirectoryUriFactory(
- DirectoryURIFactory entityDirectoryUriFactory) {
- this.entityDirectoryUriFactory = entityDirectoryUriFactory;
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/model/resource/factory/EntityDescriptionFactory.java b/cts2Impl/src/main/java/org/cts2/internal/model/resource/factory/EntityDescriptionFactory.java
deleted file mode 100644
index f4fa652523..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/model/resource/factory/EntityDescriptionFactory.java
+++ /dev/null
@@ -1,293 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.model.resource.factory;
-
-import org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeRenderingList;
-import org.LexGrid.LexBIG.DataModel.Collections.ConceptReferenceList;
-import org.LexGrid.LexBIG.DataModel.Core.AbsoluteCodingSchemeVersionReference;
-import org.LexGrid.LexBIG.DataModel.Core.CodingSchemeSummary;
-import org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference;
-import org.LexGrid.LexBIG.DataModel.InterfaceElements.CodingSchemeRendering;
-import org.LexGrid.LexBIG.Exceptions.LBException;
-import org.LexGrid.LexBIG.Exceptions.LBInvocationException;
-import org.LexGrid.LexBIG.LexBIGService.CodedNodeSet;
-import org.LexGrid.LexBIG.LexBIGService.LexBIGService;
-import org.LexGrid.LexBIG.Utility.Constructors;
-import org.LexGrid.LexBIG.Utility.ConvenienceMethods;
-import org.LexGrid.LexBIG.Utility.Iterators.ResolvedConceptReferencesIterator;
-import org.LexGrid.codingSchemes.CodingScheme;
-import org.LexGrid.commonTypes.types.EntityTypes;
-import org.apache.commons.lang.BooleanUtils;
-import org.cts2.core.CodeSystemVersionReference;
-import org.cts2.core.EntityReference;
-import org.cts2.core.ScopedEntityName;
-import org.cts2.entity.AnonymousEntityDescription;
-import org.cts2.entity.AnonymousIndividualDescription;
-import org.cts2.entity.EntityDescription;
-import org.cts2.entity.EntityDescriptionChoice;
-import org.cts2.entity.EntityList;
-import org.cts2.entity.EntityListEntry;
-import org.cts2.entity.NamedEntityDescription;
-import org.cts2.entity.NamedIndividualDescription;
-import org.cts2.internal.lexevs.identity.LexEvsIdentityConverter;
-import org.cts2.internal.mapper.BeanMapper;
-import org.cts2.service.core.EntityNameOrURI;
-import org.cts2.service.core.NameOrURI;
-import org.lexevs.locator.LexEvsServiceLocator;
-
-/**
- * A factory for creating EntityDescription objects.
- * * @author Kevin Peterson
- * * @author Zonghui Lian
- */
-public class EntityDescriptionFactory {
-
- /** The bean mapper. */
- private BeanMapper beanMapper;
-
- /** The lex big service. */
- private LexBIGService lexBigService;
-
- /** The lexevs identify converter*/
- private LexEvsIdentityConverter lexEvsIdentityConverter;
-
- public EntityDescription getEntityDescription(
- EntityNameOrURI entityDescriptionNameOrUri,
- NameOrURI codeSystemVersionNameOrUri) {
- AbsoluteCodingSchemeVersionReference ref = this.lexEvsIdentityConverter
- .nameOrUriToAbsoluteCodingSchemeVersionReference(codeSystemVersionNameOrUri);
-
- try {
- CodedNodeSet cns = this.lexBigService.getNodeSet(ref
- .getCodingSchemeURN(), Constructors
- .createCodingSchemeVersionOrTagFromVersion(ref
- .getCodingSchemeVersion()), null);
- ConceptReferenceList conceptRefList = ConvenienceMethods
- .createConceptReferenceList(entityDescriptionNameOrUri
- .getEntityName().getName());
- CodedNodeSet restCns = cns.restrictToCodes(conceptRefList);
- ResolvedConceptReferencesIterator iterator = restCns.resolve(null,
- null, null, null, true);
- if (iterator.hasNext()) {
- ResolvedConceptReference conRef = iterator.next();
- return this.ResolvedConceptReferenceToEntityDescription(conRef);
- }
- } catch (LBException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return null;
-
- }
-
- public EntityList getEntityDescriptionList(EntityNameOrURI entityNameOrUri) {
- EntityList list = new EntityList();
- CodingSchemeRenderingList schemeList;
- try {
- schemeList = this.lexBigService.getSupportedCodingSchemes();
- for (CodingSchemeRendering csr : schemeList
- .getCodingSchemeRendering()) {
- CodingSchemeSummary css = csr.getCodingSchemeSummary();
- CodedNodeSet cns = this.lexBigService.getNodeSet(css
- .getCodingSchemeURI(), Constructors
- .createCodingSchemeVersionOrTagFromVersion(css
- .getRepresentsVersion()), null);
- ConceptReferenceList conceptRefList = ConvenienceMethods
- .createConceptReferenceList(entityNameOrUri
- .getEntityName().getName());
- CodedNodeSet restCns = cns.restrictToCodes(conceptRefList);
- ResolvedConceptReferencesIterator iterator = restCns.resolve(
- null, null, null, null, true);
- if (iterator.hasNext()) {
- EntityListEntry entry = new EntityListEntry();
- ResolvedConceptReference conRef = iterator.next();
- entry.setItem(this
- .ResolvedConceptReferenceToEntityDescriptionChoice(conRef));
- list.addEntry(entry);
- }
- }
- } catch (LBInvocationException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- } catch (LBException e) {
- e.printStackTrace();
- }
- return list;
- }
-
- public EntityReference availableDescriptions(EntityNameOrURI entityNameOrURI) {
- EntityReference entityReference = new EntityReference();
- entityReference.setAbout(entityNameOrURI.getUri());
- ScopedEntityName scopedEntityName = entityNameOrURI.getEntityName();
- entityReference.setLocalEntityName(scopedEntityName);
-
- try {
- CodingSchemeRenderingList schemeList = this.lexBigService
- .getSupportedCodingSchemes();
- for (CodingSchemeRendering csr : schemeList
- .getCodingSchemeRendering()) {
- CodeSystemVersionReference codeSystemVersionReference = new CodeSystemVersionReference();
-
- CodingSchemeSummary css = csr.getCodingSchemeSummary();
- CodingScheme cs = LexEvsServiceLocator
- .getInstance()
- .getDatabaseServiceManager()
- .getCodingSchemeService()
- .getCodingSchemeByUriAndVersion(
- css.getCodingSchemeURI(),
- css.getRepresentsVersion());
- CodedNodeSet cns = this.lexBigService.getNodeSet(css
- .getCodingSchemeURI(), Constructors
- .createCodingSchemeVersionOrTagFromVersion(css
- .getRepresentsVersion()), null);
- ConceptReferenceList conceptRefList = ConvenienceMethods
- .createConceptReferenceList(entityNameOrURI
- .getEntityName().getName());
- CodedNodeSet restCns = cns.restrictToCodes(conceptRefList);
- ResolvedConceptReferencesIterator iterator = restCns.resolve(
- null, null, null, null, true);
- if (iterator.hasNext()) {
- codeSystemVersionReference
- .setContent(this.lexEvsIdentityConverter
- .codingSchemeSummaryToCodeSystemVersionName(css));
- codeSystemVersionReference
- .setMeaning(this.lexEvsIdentityConverter
- .codingSchemeToCodeSystemVersionDocumentUri(cs));
- // codeSystemVersionReference.setCodeSystem(codeSystem) TODO
- entityReference
- .addDescribingCodeSystemVersion(codeSystemVersionReference);
- }
- }
- } catch (LBInvocationException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (LBException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- return entityReference;
- }
-
- /**
- * Gets the bean mapper.
- *
- * @return the bean mapper
- */
- public BeanMapper getBeanMapper() {
- return beanMapper;
- }
-
- /**
- * Sets the bean mapper.
- *
- * @param beanMapper
- * the new bean mapper
- */
- public void setBeanMapper(BeanMapper beanMapper) {
- this.beanMapper = beanMapper;
- }
-
- /**
- * Gets the lex big service.
- *
- * @return the lex big service
- */
- public LexBIGService getLexBigService() {
- return lexBigService;
- }
-
- /**
- * Sets the lex big service.
- *
- * @param lexBigService
- * the new lex big service
- */
- public void setLexBigService(LexBIGService lexBigService) {
- this.lexBigService = lexBigService;
- }
-
- /**
- * Gets the lex evs identity converter.
- *
- * @return the lex evs identity converter
- */
- public LexEvsIdentityConverter getLexEvsIdentityConverter() {
- return lexEvsIdentityConverter;
- }
-
- /**
- * Sets the lex evs identity converter.
- *
- * @param lexEvsIdentityConverter
- * the new lex evs identity converter
- */
- public void setLexEvsIdentityConverter(
- LexEvsIdentityConverter lexEvsIdentityConverter) {
- this.lexEvsIdentityConverter = lexEvsIdentityConverter;
- }
-
- private EntityDescription ResolvedConceptReferenceToEntityDescription(
- ResolvedConceptReference conRef) {
- if (conRef.getEntityType(0).equalsIgnoreCase(
- EntityTypes.CONCEPT.toString())) {
- if (!BooleanUtils.toBoolean(conRef.getEntity().isIsAnonymous())) {
- return this.beanMapper
- .map(conRef, NamedEntityDescription.class);
- } else {
- return this.beanMapper.map(conRef,
- AnonymousEntityDescription.class);
- }
- } else if (conRef.getEntityType(0).equalsIgnoreCase(
- EntityTypes.INSTANCE.toString())) {
- if (!BooleanUtils.toBoolean(conRef.getEntity().isIsAnonymous())) {
- return this.beanMapper.map(conRef,
- NamedIndividualDescription.class);
- } else {
- return this.beanMapper.map(conRef,
- AnonymousIndividualDescription.class);
- }
- } else {
- // TODO entity type is ASSOCIATION, map to?
- return null;
- }
- }
-
- private EntityDescriptionChoice ResolvedConceptReferenceToEntityDescriptionChoice(
- ResolvedConceptReference conRef) {
- EntityDescriptionChoice entityDescriptionChoice = new EntityDescriptionChoice();
- EntityDescription ed = this
- .ResolvedConceptReferenceToEntityDescription(conRef);
- if (ed instanceof NamedIndividualDescription)
- entityDescriptionChoice
- .setNamedIndividual((NamedIndividualDescription) ed);
- else if (ed instanceof AnonymousIndividualDescription)
- entityDescriptionChoice
- .setAnonymousIndividual((AnonymousIndividualDescription) ed);
- else if (ed instanceof NamedEntityDescription)
- entityDescriptionChoice.setNamedEntity((NamedEntityDescription) ed);
- else if (ed instanceof AnonymousEntityDescription)
- entityDescriptionChoice
- .setAnonymousEntity((AnonymousEntityDescription) ed);
- else {
- // TODO ClassDescription and PredicateDescription
- }
-
- return entityDescriptionChoice;
- }
-}
\ No newline at end of file
diff --git a/cts2Impl/src/main/java/org/cts2/internal/model/resource/factory/ValueSetDefinitionFactory.java b/cts2Impl/src/main/java/org/cts2/internal/model/resource/factory/ValueSetDefinitionFactory.java
deleted file mode 100644
index 8233e9218d..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/model/resource/factory/ValueSetDefinitionFactory.java
+++ /dev/null
@@ -1,160 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.model.resource.factory;
-
-import java.net.URI;
-import java.net.URISyntaxException;
-import java.util.List;
-
-import org.LexGrid.LexBIG.Exceptions.LBException;
-import org.LexGrid.LexBIG.Exceptions.LBParameterException;
-import org.cts2.core.NameOrURI;
-import org.cts2.internal.mapper.BeanMapper;
-import org.cts2.valueset.ValueSetDefinition;
-import org.lexgrid.valuesets.LexEVSValueSetDefinitionServices;
-
-/**
- * A factory for creating ValueSetDefinition objects.
- */
-public class ValueSetDefinitionFactory {
-
- /** The bean mapper. */
- private BeanMapper beanMapper;
-
- /** The lexEVSValueSetDefinition service. */
- private LexEVSValueSetDefinitionServices lexEVSValueSetDefinitionService;
-
- /**
- * Gets the value set definition for a URI.
- *
- * @param valueSetDefinitionURI the URI of value set definition
- * @return the value set definition
- */
- public ValueSetDefinition getValueSetDefinition(URI valueSetDefinitionURI){
-
- org.LexGrid.valueSets.ValueSetDefinition vsd = null;
- try {
- vsd = this.lexEVSValueSetDefinitionService.getValueSetDefinition(valueSetDefinitionURI, null);
- } catch (LBException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- if (vsd != null)
- {
- return this.beanMapper.map(vsd, ValueSetDefinition.class);
- }
-
- return null;
- }
-
- /**
- * Gets the value set definition for a name.
- *
- * @param valueSetDefinitionName the name of Value Set Definition
- * @return the value set definition
- * @throws LBParameterException
- * @throws LBException
- */
- public ValueSetDefinition getValueSetDefinition(String valueSetDefinitionName) throws LBParameterException {
-
- org.LexGrid.valueSets.ValueSetDefinition vsd = null;
- List vsds = null;
- try {
- vsds = this.lexEVSValueSetDefinitionService.listValueSetDefinitions(valueSetDefinitionName);
- } catch (LBException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- if (vsds.isEmpty())
- return null;
-
- if (vsds.size() > 1)
- throw new LBParameterException("More than 1 Value Set Definition found for name : " + valueSetDefinitionName);
-
- try {
- vsd = this.getLexEVSValueSetDefinitionService().getValueSetDefinition(new URI(vsds.get(0)), null);
- } catch (LBException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (URISyntaxException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- if (vsd != null)
- {
- return this.beanMapper.map(vsd, ValueSetDefinition.class);
- }
-
- return null;
- }
-
- /**
- * Gets the value set definition for a name or URI.
- *
- * @param valueSetDefinitionNameOrURI the name or URI of Value Set Definition
- * @return the value set definition
- * @throws LBParameterException
- * @throws LBException
- */
- public ValueSetDefinition getValueSetDefinition(NameOrURI valueSetDefinitionNameOrURI) throws LBParameterException {
-
- if (valueSetDefinitionNameOrURI.getUri() != null)
- return this.getValueSetDefinition(valueSetDefinitionNameOrURI.getUri());
- else
- return this.getValueSetDefinition(valueSetDefinitionNameOrURI.getName());
- }
-
- /**
- * Gets the bean mapper.
- *
- * @return the bean mapper
- */
- public BeanMapper getBeanMapper() {
- return beanMapper;
- }
-
- /**
- * Sets the bean mapper.
- *
- * @param beanMapper the new bean mapper
- */
- public void setBeanMapper(BeanMapper beanMapper) {
- this.beanMapper = beanMapper;
- }
-
- /**
- * @return the lexEVSValueSetDefinitionService
- */
- public LexEVSValueSetDefinitionServices getLexEVSValueSetDefinitionService() {
- return lexEVSValueSetDefinitionService;
- }
-
- /**
- * @param lexEVSValueSetDefinitionService the lexEVSValueSetDefinitionService to set
- */
- public void setLexEVSValueSetDefinitionService(
- LexEVSValueSetDefinitionServices lexEVSValueSetDefinitionService) {
- this.lexEVSValueSetDefinitionService = lexEVSValueSetDefinitionService;
- }
-
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/model/uri/AbstractDirectoryURI.java b/cts2Impl/src/main/java/org/cts2/internal/model/uri/AbstractDirectoryURI.java
deleted file mode 100644
index a27f219f08..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/model/uri/AbstractDirectoryURI.java
+++ /dev/null
@@ -1,68 +0,0 @@
-package org.cts2.internal.model.uri;
-
-import org.cts2.core.Filter;
-import org.cts2.core.types.SetOperator;
-import org.cts2.service.core.QueryControl;
-import org.cts2.service.core.ReadContext;
-import org.cts2.uri.DirectoryURI;
-import org.cts2.uri.SetOperable;
-
-public abstract class AbstractDirectoryURI implements DirectoryURI, SetOperable {
-
- protected abstract int doCount(ReadContext readContext);
-
- @Override
- public int count(ReadContext readContext) {
- return this.doCount(readContext);
- }
-
- //TODO: throw some sort of validation exception
- /**
- * Validate query control.
- *
- * @param queryControl the query control
- * @return the query control
- */
- protected QueryControl validateQueryControl(QueryControl queryControl){
- if(queryControl == null){
- return new QueryControl();
- } else {
- return queryControl;
- }
- }
-
- /* (non-Javadoc)
- * @see org.cts2.internal.model.uri.AbstractDirectoryURI#restrict(org.cts2.core.Filter)
- */
- @Override
- public T restrict(Filter filter) {
- this.getRestrictionState().getFilters().add(filter);
-
- return clone();
- }
-
- protected abstract T createSetOperatedDirectoryURI(SetOperator setOperator, T directoryUri1, T directoryUri2);
-
- public T union(T directoryUri) {
- return this.createSetOperatedDirectoryURI(SetOperator.UNION, this.clone() , directoryUri);
- }
-
- public T intersect(T directoryUri) {
- return this.createSetOperatedDirectoryURI(SetOperator.INTERSECT, this.clone() , directoryUri);
- }
-
- public T difference(T directoryUri) {
- return this.createSetOperatedDirectoryURI(SetOperator.SUBTRACT, this.clone(), directoryUri);
- }
-
- @Override
- public String marshall() {
- //TODO: Context based marshalling
- return this.toString();
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#clone()
- */
- protected abstract T clone();
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/model/uri/AbstractIterableLexEvsBackedResolvingDirectoryURI.java b/cts2Impl/src/main/java/org/cts2/internal/model/uri/AbstractIterableLexEvsBackedResolvingDirectoryURI.java
deleted file mode 100644
index 758770c7c7..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/model/uri/AbstractIterableLexEvsBackedResolvingDirectoryURI.java
+++ /dev/null
@@ -1,96 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.model.uri;
-
-import org.cts2.core.Directory;
-import org.cts2.internal.model.uri.restrict.IterableBasedResolvingRestrictionHandler;
-import org.cts2.internal.model.uri.restrict.IterableRestriction;
-import org.cts2.service.core.QueryControl;
-import org.cts2.service.core.ReadContext;
-import org.cts2.uri.DirectoryURI;
-
-import com.google.common.collect.Iterables;
-import com.google.common.collect.Iterators;
-
-/**
- * The Class AbstractIterableLexEvsBackedResolvingDirectoryURI.
- *
- * @author Kevin Peterson
- */
-public abstract class AbstractIterableLexEvsBackedResolvingDirectoryURI extends AbstractResolvingDirectoryURI {
-
- /** The restriction handler. */
- private IterableBasedResolvingRestrictionHandler restrictionHandler;
-
- /**
- * Instantiates a new abstract iterable lex evs backed resolving directory uri.
- *
- * @param restrictionHandler the restriction handler
- * @param restrictionState
- */
- protected AbstractIterableLexEvsBackedResolvingDirectoryURI(IterableBasedResolvingRestrictionHandler restrictionHandler){
- this.restrictionHandler = restrictionHandler;
- }
-
- /**
- * Gets the original state.
- *
- * @return the original state
- */
- protected abstract Iterable getOriginalState();
-
- /**
- * Transform.
- *
- * @param the
- * @param lexevsObject the lexevs object
- * @param clazz the clazz
- * @return the o
- */
- protected abstract O transform(Iterable lexevsObject, Class clazz);
-
- @Override
- protected int doCount(ReadContext readContext) {
- IterableRestriction restriction = this.restrictionHandler.compile( this.clone() );
-
- return Iterators.size(this.restrictionHandler.apply(restriction, this.getOriginalState()).iterator());
- }
-
- /* (non-Javadoc)
- * @see org.cts2.internal.model.uri.AbstractResolvingDirectoryURI#doGet(org.cts2.service.core.QueryControl, org.cts2.service.core.ReadContext, java.lang.Class)
- */
- @Override
- protected > D doGet(
- QueryControl queryControl,
- final ReadContext readContext,
- final Class resolveClass) {
-
- Iterable originalState = Iterables.unmodifiableIterable(this.getOriginalState());
-
- IterableRestriction restriction = this.restrictionHandler.compile( this.clone() );
-
- Iterable restrictedState = this.restrictionHandler.apply(restriction, originalState);
-
- return this.transform(restrictedState, resolveClass);
- }
-
- protected IterableBasedResolvingRestrictionHandler getRestrictionHandler() {
- return restrictionHandler;
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/model/uri/AbstractNonIterableLexEvsBackedResolvingDirectoryURI.java b/cts2Impl/src/main/java/org/cts2/internal/model/uri/AbstractNonIterableLexEvsBackedResolvingDirectoryURI.java
deleted file mode 100644
index a6e3056b44..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/model/uri/AbstractNonIterableLexEvsBackedResolvingDirectoryURI.java
+++ /dev/null
@@ -1,122 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.model.uri;
-
-import org.cts2.core.Directory;
-import org.cts2.internal.model.uri.restrict.NonIterableBasedResolvingRestrictionHandler;
-import org.cts2.internal.model.uri.restrict.OriginalStateProvider;
-import org.cts2.internal.model.uri.restrict.Restriction;
-import org.cts2.service.core.QueryControl;
-import org.cts2.service.core.ReadContext;
-import org.cts2.uri.DirectoryURI;
-
-/**
- * The Class AbstractResolvingDirectoryURI.
- *
- * @author Kevin Peterson
- */
-public abstract class AbstractNonIterableLexEvsBackedResolvingDirectoryURI extends AbstractResolvingDirectoryURI {
-
- /** The restriction handler. */
- private NonIterableBasedResolvingRestrictionHandler restrictionHandler;
-
- /**
- * Instantiates a new abstract non iterable lex evs backed resolving directory uri.
- *
- * @param restrictionHandler the restriction handler
- */
- protected AbstractNonIterableLexEvsBackedResolvingDirectoryURI(NonIterableBasedResolvingRestrictionHandler restrictionHandler){
- this.restrictionHandler = restrictionHandler;
- }
-
- /**
- * Gets the original state.
- *
- * @return the original state
- */
- protected abstract T getOriginalState();
-
- protected OriginalStateProvider getOriginalStateProvider(){
- return new OriginalStateProvider(){
-
- @Override
- public T getOriginalState() {
- return AbstractNonIterableLexEvsBackedResolvingDirectoryURI.this.getOriginalState();
- }
- };
- }
-
- /**
- * Transform.
- *
- * @param the
- * @param lexevsObject the lexevs object
- * @param clazz the clazz
- * @return the o
- */
- protected abstract O transform(T lexevsObject, Class clazz);
-
- /* (non-Javadoc)
- * @see org.cts2.internal.model.uri.AbstractResolvingDirectoryURI#doGet(org.cts2.service.core.QueryControl, org.cts2.service.core.ReadContext, java.lang.Class)
- */
- @Override
- protected > D doGet(
- QueryControl queryControl,
- final ReadContext readContext,
- final Class resolveClass) {
-
- T originalState = makeOriginalStateUnmodifiable(this.getOriginalState());
-
- Restriction restriction = this.restrictionHandler.compile(this.getThis(), new OriginalStateProvider(){
-
- @Override
- public T getOriginalState() {
- return AbstractNonIterableLexEvsBackedResolvingDirectoryURI.this.getOriginalState();
- }
- });
-
- T restrictedState = this.restrictionHandler.apply(restriction, originalState);
-
- return this.transform(restrictedState, resolveClass);
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#clone()
- */
- protected abstract L clone();
-
- /**
- * Make original state unmodifiable.
- *
- * @param originalState the original state
- * @return the l
- */
- protected T makeOriginalStateUnmodifiable(T originalState){
- return originalState;
- }
-
- /**
- * Gets the restriction handler.
- *
- * @return the restriction handler
- */
- protected NonIterableBasedResolvingRestrictionHandler getRestrictionHandler(){
- return this.restrictionHandler;
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/model/uri/AbstractResolvingDirectoryURI.java b/cts2Impl/src/main/java/org/cts2/internal/model/uri/AbstractResolvingDirectoryURI.java
deleted file mode 100644
index 9c43bb5d9f..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/model/uri/AbstractResolvingDirectoryURI.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.model.uri;
-
-import java.util.concurrent.Callable;
-
-import org.cts2.core.Directory;
-import org.cts2.service.core.QueryControl;
-import org.cts2.service.core.ReadContext;
-import org.cts2.uri.DirectoryURI;
-import org.cts2.utility.ExecutionUtils;
-
-/**
- * The Class AbstractResolvingDirectoryURI.
- *
- * @param the
- * @author Kevin Peterson
- */
-public abstract class AbstractResolvingDirectoryURI extends AbstractDirectoryURI {
-
- /* (non-Javadoc)
- * @see org.cts2.uri.DirectoryURI#get(org.cts2.service.core.QueryControl, org.cts2.service.core.ReadContext, java.lang.Class)
- */
- public > D get(final QueryControl queryControl, final ReadContext readContext, final Class content){
- final QueryControl validatedQueryControl = validateQueryControl(queryControl);
- return ExecutionUtils.callWithTimeout(new Callable(){
-
- @Override
- public D call() {
- return doGet(validatedQueryControl, readContext, content);
- }
-
- }, queryControl);
- }
-
- @SuppressWarnings("unchecked")
- protected T getThis(){
- return (T) this;
- }
-
- /**
- * Do resolve.
- *
- * @param the
- * @param format the format
- * @param queryControl the query control
- * @param readContext the read context
- * @param resolveClass the resolve class
- * @return the d
- */
- protected abstract > D doGet(
- QueryControl queryControl,
- ReadContext readContext,
- Class resolveClass);
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/model/uri/DefaultAssociationDirectoryURI.java b/cts2Impl/src/main/java/org/cts2/internal/model/uri/DefaultAssociationDirectoryURI.java
deleted file mode 100644
index 9c04e83c60..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/model/uri/DefaultAssociationDirectoryURI.java
+++ /dev/null
@@ -1,230 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.model.uri;
-
-import org.LexGrid.LexBIG.Exceptions.LBException;
-import org.LexGrid.LexBIG.LexBIGService.CodedNodeGraph;
-import org.LexGrid.LexBIG.LexBIGService.LexBIGService;
-import org.cts2.association.AssociationDirectory;
-import org.cts2.association.AssociationList;
-import org.cts2.core.TargetExpression;
-import org.cts2.core.types.SetOperator;
-import org.cts2.internal.mapper.BeanMapper;
-import org.cts2.internal.model.directory.ResolvedConceptReferencesIteratorBackedAssociationDirectory;
-import org.cts2.internal.model.directory.ResolvedConceptReferencesIteratorBackedAssociationList;
-import org.cts2.internal.model.uri.restrict.NonIterableBasedResolvingRestrictionHandler;
-import org.cts2.internal.profile.ProfileUtils;
-import org.cts2.service.core.EntityNameOrURI;
-import org.cts2.service.core.NameOrURI;
-import org.cts2.service.core.QueryControl;
-import org.cts2.service.core.ReadContext;
-import org.cts2.uri.AssociationDirectoryURI;
-import org.cts2.uri.EntityDirectoryURI;
-import org.cts2.uri.restriction.AssociationDirectoryRestrictionState;
-import org.cts2.uri.restriction.SetComposite;
-import org.cts2.uri.restriction.AssociationDirectoryRestrictionState.RestrictToCodeSystemVersionRestriction;
-import org.cts2.uri.restriction.AssociationDirectoryRestrictionState.RestrictToPredicateRestriction;
-import org.cts2.uri.restriction.AssociationDirectoryRestrictionState.RestrictToSourceEntityRestriction;
-import org.cts2.uri.restriction.AssociationDirectoryRestrictionState.RestrictToSourceOrTargetEntityRestriction;
-import org.cts2.uri.restriction.AssociationDirectoryRestrictionState.RestrictToTargetEntityRestriction;
-import org.cts2.uri.restriction.AssociationDirectoryRestrictionState.RestrictToTargetExpressionRestriction;
-import org.cts2.uri.restriction.AssociationDirectoryRestrictionState.RestrictToTargetLiteralRestriction;
-/**
- * @author Scott Bauer
- *
- */
-public class DefaultAssociationDirectoryURI
- extends AbstractNonIterableLexEvsBackedResolvingDirectoryURI implements AssociationDirectoryURI {
-
- /**
- * The common LexBIGService.
- */
- private LexBIGService lexBigService;
- /**
- * The beanmapper for this class.
- */
- private BeanMapper beanMapper;
- /**
- * a restriction state for the associations
- */
- private AssociationDirectoryRestrictionState restrictionState = new AssociationDirectoryRestrictionState();
-
- public DefaultAssociationDirectoryURI(
- LexBIGService lexBigService,
- NonIterableBasedResolvingRestrictionHandler restrictionHandler,
- BeanMapper beanMapper){
- super(restrictionHandler);
- this.beanMapper = beanMapper;
- this.lexBigService = lexBigService;
- }
-
- @SuppressWarnings("unchecked")
- @Override
- protected O transform(
- CodedNodeGraph lexevsObject, Class clazz) {
- try {
- if(clazz.equals(AssociationDirectory.class)){
- return (O) new ResolvedConceptReferencesIteratorBackedAssociationDirectory(lexevsObject, this.beanMapper);
- }
- if(clazz.equals(AssociationList.class)){
- return (O) new ResolvedConceptReferencesIteratorBackedAssociationList(lexevsObject, this.beanMapper);
- }
- } catch (LBException e) {
- //TODO: real cts2 exception here
- throw new IllegalStateException();
- }
-
- //TODO: real cts2 exception here
- throw new IllegalStateException();
- }
- @Override
- protected int doCount(ReadContext readContext) {
- return 0;
- }
-
- public EntityDirectoryURI getAllSourceAndTargetEntities(
- EntityDirectoryURI directory, QueryControl queryControl,
- ReadContext context) {
- // TODO Auto-generated method stub
- return null;
- }
-
-
- public EntityDirectoryURI getPredicates(QueryControl queryControl, ReadContext context) {
- // TODO Auto-generated method stub
- return null;
- }
-
-
- public EntityDirectoryURI getSourceEntities(QueryControl queryControl,
- ReadContext context) {
- // TODO Auto-generated method stub
- return null;
- }
-
-
- public EntityDirectoryURI getTargetEntities(
- AssociationDirectoryURI directory, QueryControl queryControl,
- ReadContext context) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
- public EntityDirectoryURI getTargetEntities(QueryControl queryControl,
- ReadContext context) {
- // TODO Auto-generated method stub
- return null;
- }
-
- public AssociationDirectoryURI restrictToCodeSystemVersion(
- NameOrURI codeSystemVersions) {
- RestrictToCodeSystemVersionRestriction restriction = new RestrictToCodeSystemVersionRestriction();
- restriction.setCodeSystemVersion(codeSystemVersions);
- this.getRestrictionState().getRestrictToCodeSystemVersionRestrictions()
- .add(restriction);
-
- return this.clone();
- }
-
- public AssociationDirectoryURI restrictToPredicate(EntityNameOrURI predicate) {
- RestrictToPredicateRestriction restriction = new RestrictToPredicateRestriction();
- restriction.setPredicate(predicate);
- this.getRestrictionState().getRestrictToPredicateRestrictions();
- return this.clone();
- }
-
-
- public AssociationDirectoryURI restrictToSourceEntity(EntityNameOrURI sourceEntity) {
- RestrictToSourceEntityRestriction restriction = new RestrictToSourceEntityRestriction();
- restriction.setSourceEntity(sourceEntity);
- this.getRestrictionState().getRestrictToPredicateRestrictions();
- return this.clone();
- }
-
-
- public AssociationDirectoryURI restrictToSourceOrTargetEntity(EntityNameOrURI entity) {
- RestrictToSourceOrTargetEntityRestriction restriction = new RestrictToSourceOrTargetEntityRestriction();
- restriction.setEntity(entity);
- this.getRestrictionState().getRestrictToSourceEntityRestrictions();
- return this.clone();
- }
-
-
- public AssociationDirectoryURI restrictToTargetEntity(EntityNameOrURI target) {
- RestrictToTargetEntityRestriction restriction = new RestrictToTargetEntityRestriction();
- restriction.setTarget(target);
- this.getRestrictionState().getRestrictToTargetEntityRestrictions();
- return this.clone();
- }
-
-
- public AssociationDirectoryURI restrictToTargetExpression(TargetExpression target) {
- RestrictToTargetExpressionRestriction restriction = new RestrictToTargetExpressionRestriction();
- restriction.setTarget(target);
- this.getRestrictionState().getRestrictToTargetExpressionRestrictions();
- return this.clone();
- }
-
-
- public AssociationDirectoryURI restrictToTargetLiteral(String target) {
- RestrictToTargetLiteralRestriction restriction = new RestrictToTargetLiteralRestriction();
- restriction.setTarget(target);
- this.getRestrictionState().getRestrictToTargetLiteralRestriction();
- return this.clone();
- }
-
- @Override
- protected CodedNodeGraph getOriginalState() {
- try {
- return ProfileUtils.unionAllGraphs(this.lexBigService);
- } catch (LBException e) {
- //TODO: real cts2 exception here
- throw new IllegalStateException();
- }
- }
-
- @Override
- protected AssociationDirectoryURI clone() {
- return this;
- }
-
- @Override
- public AssociationDirectoryRestrictionState getRestrictionState() {
- return this.restrictionState;
- }
-
- @Override
- protected AssociationDirectoryURI createSetOperatedDirectoryURI(
- SetOperator setOperator, AssociationDirectoryURI directoryUri1,
- AssociationDirectoryURI directoryUri2) {
- DefaultAssociationDirectoryURI uri = new DefaultAssociationDirectoryURI(
- this.lexBigService,
- this.getRestrictionHandler(),
- this.beanMapper);
-
- uri.getRestrictionState().setSetComposite(new SetComposite());
- uri.getRestrictionState().getSetComposite().setSetOperator(setOperator);
- uri.getRestrictionState().getSetComposite().setDirectoryUri1(directoryUri1);
- uri.getRestrictionState().getSetComposite().setDirectoryUri2(directoryUri2);
-
- return uri;
- }
-
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/model/uri/DefaultCodeSystemVersionDirectoryURI.java b/cts2Impl/src/main/java/org/cts2/internal/model/uri/DefaultCodeSystemVersionDirectoryURI.java
deleted file mode 100644
index c4fd6e3c95..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/model/uri/DefaultCodeSystemVersionDirectoryURI.java
+++ /dev/null
@@ -1,189 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.model.uri;
-
-import java.util.List;
-
-import org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeRenderingList;
-import org.LexGrid.LexBIG.DataModel.Core.types.CodingSchemeVersionStatus;
-import org.LexGrid.LexBIG.DataModel.InterfaceElements.CodingSchemeRendering;
-import org.LexGrid.LexBIG.LexBIGService.LexBIGService;
-import org.cts2.core.EntityReference;
-import org.cts2.core.types.SetOperator;
-import org.cts2.internal.mapper.BeanMapper;
-import org.cts2.internal.model.uri.restrict.IterableBasedResolvingRestrictionHandler;
-import org.cts2.service.core.types.ActiveOrAll;
-import org.cts2.service.core.types.RestrictionType;
-import org.cts2.uri.CodeSystemVersionDirectoryURI;
-import org.cts2.uri.restriction.CodeSystemVersionRestrictionState;
-import org.cts2.uri.restriction.CodeSystemVersionRestrictionState.RestrictToEntitiesRestriction;
-import org.cts2.uri.restriction.SetComposite;
-
-import scala.actors.threadpool.Arrays;
-
-import com.google.common.collect.Iterables;
-
-/**
- * The Class DefaultCodeSystemVersionDirectoryURI.
- *
- * @author Kevin Peterson
- */
-public class DefaultCodeSystemVersionDirectoryURI extends
- AbstractIterableLexEvsBackedResolvingDirectoryURI
- implements CodeSystemVersionDirectoryURI{
-
- /** The coding scheme rendering list. */
- private CodingSchemeRenderingList codingSchemeRenderingList;
-
- /** The bean mapper. */
- private BeanMapper beanMapper;
-
- private LexBIGService lexBigService;
-
- private CodeSystemVersionRestrictionState restrictionState = new CodeSystemVersionRestrictionState();
-
- /**
- * Instantiates a new default code system version directory uri.
- *
- * @param codingSchemeRenderingList the coding scheme rendering list
- * @param restrictionHandler the restriction handler
- * @param beanMapper the bean mapper
- */
- public DefaultCodeSystemVersionDirectoryURI(
- LexBIGService lexBigService,
- CodingSchemeRenderingList codingSchemeRenderingList,
- IterableBasedResolvingRestrictionHandler restrictionHandler,
- BeanMapper beanMapper) {
- super(restrictionHandler);
- this.lexBigService = lexBigService;
- this.codingSchemeRenderingList = codingSchemeRenderingList;
- this.beanMapper = beanMapper;
- }
-
- /* (non-Javadoc)
- * @see org.cts2.uri.CodeSystemVersionDirectoryURI#restrictToEntities(java.util.List, org.cts2.service.core.types.RestrictionType, org.cts2.service.core.types.ActiveOrAll)
- */
- @Override
- public CodeSystemVersionRestrictionState getRestrictionState() {
- return this.restrictionState;
- }
-
- @Override
- public CodeSystemVersionDirectoryURI restrictToEntities(
- final List entities,
- final RestrictionType allOrSome,
- final ActiveOrAll active) {
-
- RestrictToEntitiesRestriction restrictToEntities = new RestrictToEntitiesRestriction();
-
- restrictToEntities.setActive(active);
- restrictToEntities.setAllOrSome(allOrSome);
- restrictToEntities.setEntities(entities);
-
- this.getRestrictionState().getRestrictToEntitiesRestrictions().add(restrictToEntities);
-
- return clone();
- }
-
- /**
- * Restrict to active or all.
- *
- * @param csrl the csrl
- * @param activeOrAll the active or all
- * @return the coding scheme rendering list
- */
- protected CodingSchemeRenderingList restrictToActiveOrAll(CodingSchemeRenderingList csrl, ActiveOrAll activeOrAll){
- if(activeOrAll == null){
- return csrl;
- }
-
- CodingSchemeRenderingList returnList = new CodingSchemeRenderingList();
-
- for (CodingSchemeRendering csr : csrl.getCodingSchemeRendering()) {
- boolean active =
- csr.getRenderingDetail().getVersionStatus().equals(CodingSchemeVersionStatus.ACTIVE);
-
- switch (activeOrAll) {
- case ACTIVE_ONLY : {
- if(!active){
- break;
- }
- }
- default : {
- returnList.addCodingSchemeRendering(csr);
- }
- }
- }
-
- return returnList;
- }
-
- /* (non-Javadoc)
- * @see org.cts2.internal.model.uri.AbstractIterableLexEvsBackedResolvingDirectoryURI#getOriginalState()
- */
- @SuppressWarnings("unchecked")
- @Override
- protected Iterable getOriginalState() {
- return Arrays.asList(this.codingSchemeRenderingList.getCodingSchemeRendering());
- }
-
- /* (non-Javadoc)
- * @see org.cts2.internal.model.uri.AbstractIterableLexEvsBackedResolvingDirectoryURI#transform(java.lang.Iterable, java.lang.Class)
- */
- @Override
- protected O transform(
- Iterable lexevsObject,
- Class clazz) {
- CodingSchemeRenderingList csrl = new CodingSchemeRenderingList();
- csrl.setCodingSchemeRendering(Iterables.toArray(lexevsObject,CodingSchemeRendering.class));
-
- return this.beanMapper.map(csrl, clazz);
- }
-
- /* (non-Javadoc)
- * @see org.cts2.internal.model.uri.AbstractIterableLexEvsBackedResolvingDirectoryURI#clone()
- */
- @Override
- protected CodeSystemVersionDirectoryURI clone() {
- //TODO: implement no-destructive clone
- return this;
- }
-
-
- @Override
- protected CodeSystemVersionDirectoryURI createSetOperatedDirectoryURI(
- SetOperator setOperator,
- CodeSystemVersionDirectoryURI directoryUri1,
- CodeSystemVersionDirectoryURI directoryUri2) {
- DefaultCodeSystemVersionDirectoryURI newUri =
- new DefaultCodeSystemVersionDirectoryURI(
- this.lexBigService,
- this.codingSchemeRenderingList,
- this.getRestrictionHandler(),
- this.beanMapper);
-
- newUri.getRestrictionState().setSetComposite(new SetComposite());
- newUri.getRestrictionState().getSetComposite().setDirectoryUri1(directoryUri1);
- newUri.getRestrictionState().getSetComposite().setDirectoryUri2(directoryUri2);
-
- newUri.getRestrictionState().getSetComposite().setSetOperator(setOperator);
-
- return newUri;
- }
-}
diff --git a/cts2Impl/src/main/java/org/cts2/internal/model/uri/DefaultEntityDirectoryURI.java b/cts2Impl/src/main/java/org/cts2/internal/model/uri/DefaultEntityDirectoryURI.java
deleted file mode 100644
index 2ad342097e..0000000000
--- a/cts2Impl/src/main/java/org/cts2/internal/model/uri/DefaultEntityDirectoryURI.java
+++ /dev/null
@@ -1,187 +0,0 @@
-/*
- * Copyright: (c) 2004-2011 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.
- *
- * Except as contained in the copyright notice above, or as used to identify
- * MFMER as the author of this software, the trade names, trademarks, service
- * marks, or product names of the copyright holder shall not be used in
- * advertising, promotion or otherwise in connection with this software without
- * prior written authorization of the copyright holder.
- *
- * Licensed under the Eclipse Public License, Version 1.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- */
-package org.cts2.internal.model.uri;
-
-import org.LexGrid.LexBIG.Exceptions.LBException;
-import org.LexGrid.LexBIG.LexBIGService.CodedNodeSet;
-import org.LexGrid.LexBIG.LexBIGService.LexBIGService;
-import org.cts2.core.VersionTagReference;
-import org.cts2.core.types.SetOperator;
-import org.cts2.entity.EntityDirectory;
-import org.cts2.entity.EntityList;
-import org.cts2.internal.mapper.BeanMapper;
-import org.cts2.internal.model.directory.ResolvedConceptReferencesIteratorBackedEntityDirectory;
-import org.cts2.internal.model.directory.ResolvedConceptReferencesIteratorBackedEntityList;
-import org.cts2.internal.model.uri.restrict.NonIterableBasedResolvingRestrictionHandler;
-import org.cts2.internal.model.uri.restrict.Restriction;
-import org.cts2.internal.profile.ProfileUtils;
-import org.cts2.service.core.NameOrURI;
-import org.cts2.service.core.NameOrURIList;
-import org.cts2.service.core.ReadContext;
-import org.cts2.uri.EntityDirectoryURI;
-import org.cts2.uri.restriction.EntityDirectoryRestrictionState;
-import org.cts2.uri.restriction.EntityDirectoryRestrictionState.RestrictToCodeSystemVersionsRestriction;
-import org.cts2.uri.restriction.SetComposite;
-
-/**
- * The Class DefaultEntityDirectoryURI.
- *
- * @author Kevin Peterson
- */
-public class DefaultEntityDirectoryURI extends AbstractNonIterableLexEvsBackedResolvingDirectoryURI implements EntityDirectoryURI {
-
- /** The coded node set. */
- //private CodedNodeSet codedNodeSet;
-
- /** The bean mapper. */
- private BeanMapper beanMapper;
-
- private LexBIGService lexBigService;
-
- private EntityDirectoryRestrictionState entityDirectoryRestrictionState = new EntityDirectoryRestrictionState();
-
- /**
- * Instantiates a new default code system version directory uri.
- *
- * @param codedNodeSet the coded node set
- * @param restrictionHandler the restriction handler
- * @param beanMapper the bean mapper
- */
- public DefaultEntityDirectoryURI(
- LexBIGService lexBigService,
- NonIterableBasedResolvingRestrictionHandler restrictionHandler,
- BeanMapper beanMapper) {
- super(restrictionHandler);
- this.lexBigService = lexBigService;
- this.beanMapper = beanMapper;
- }
-
- /* (non-Javadoc)
- * @see org.cts2.internal.model.uri.AbstractDirectoryURI#doCount(org.cts2.service.core.ReadContext)
- */
- @Override
- protected int doCount(ReadContext readContext) {
- try {
- Restriction restriction =
- this.getRestrictionHandler().compile(this.getThis(), this.getOriginalStateProvider());
-
- return this.getRestrictionHandler().apply( restriction, getOriginalState()).resolve(null, null, null, null).numberRemaining();
- } catch (LBException e) {
- //TODO: real cts2 exception here
- throw new IllegalStateException();
- }
- }
-
- /* (non-Javadoc)
- * @see org.cts2.internal.model.uri.AbstractNonIterableLexEvsBackedResolvingDirectoryURI#getOriginalState()
- */
- @Override
- protected CodedNodeSet getOriginalState() {
- try {
- return ProfileUtils.unionAll(this.lexBigService);
- } catch (LBException e) {
- //TODO: real cts2 exception here
- throw new IllegalStateException();
- }
- }
-
- /* (non-Javadoc)
- * @see org.cts2.internal.model.uri.AbstractNonIterableLexEvsBackedResolvingDirectoryURI#transform(java.lang.Object, java.lang.Class)
- */
- @SuppressWarnings("unchecked")
- @Override
- protected O transform(
- CodedNodeSet lexevsObject, Class clazz) {
- try {
- if(clazz.equals(EntityDirectory.class)){
- return (O) new ResolvedConceptReferencesIteratorBackedEntityDirectory(lexevsObject, this.beanMapper);
- }
- if(clazz.equals(EntityList.class)){
- return (O) new ResolvedConceptReferencesIteratorBackedEntityList(lexevsObject, this.beanMapper);
- }
- } catch (LBException e) {
- //TODO: real cts2 exception here
- throw new IllegalStateException();
- }
-
- //TODO: real cts2 exception here
- throw new IllegalStateException();
- }
-
-
-
- /* (non-Javadoc)
- * @see org.cts2.uri.EntityDirectoryURI#restrictToCodeSystems(org.cts2.service.core.NameOrURI, org.cts2.core.VersionTagReference)
- */
- @Override
- public EntityDirectoryURI restrictToCodeSystems(
- NameOrURI codeSystems,
- VersionTagReference tag) {
- //this.entityDirectoryRestrictionState.add...
- return clone();
- }
-
- /* (non-Javadoc)
- * @see org.cts2.uri.EntityDirectoryURI#restrictToCodeSystemVersions(org.cts2.service.core.NameOrURI)
- */
- @Override
- public EntityDirectoryURI restrictToCodeSystemVersions(
- NameOrURI codeSystemVersions) {
- RestrictToCodeSystemVersionsRestriction restriction = new RestrictToCodeSystemVersionsRestriction();
- NameOrURIList list = new NameOrURIList();
- list.addEntry(codeSystemVersions);
-
- restriction.setCodeSystemVersions(list);
-
- this.getThis().getRestrictionState().getRestrictToCodeSystemVersionsRestrictions().add(restriction);
-
- return clone();
- }
-
- /* (non-Javadoc)
- * @see org.cts2.internal.model.uri.AbstractNonIterableLexEvsBackedResolvingDirectoryURI#clone()
- */
- @Override
- protected EntityDirectoryURI clone() {
- return this;
- }
-
- @Override
- public EntityDirectoryRestrictionState getRestrictionState() {
- return this.entityDirectoryRestrictionState;
- }
-
- @Override
- protected EntityDirectoryURI createSetOperatedDirectoryURI(
- SetOperator setOperator,
- EntityDirectoryURI directoryUri1,
- EntityDirectoryURI directoryUri2) {
- DefaultEntityDirectoryURI uri = new DefaultEntityDirectoryURI(
- this.lexBigService,
- this.getRestrictionHandler(),
- this.beanMapper);
-
- uri.getRestrictionState().setSetComposite(new SetComposite