Skip to content

Commit

Permalink
Issue #390: Merge uimaFIT modules into UIMAJ repository
Browse files Browse the repository at this point in the history
- Minor cleanup
  • Loading branch information
reckart committed Sep 26, 2024
1 parent 0b9d4c2 commit 60e9847
Show file tree
Hide file tree
Showing 18 changed files with 3 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

/**
* Base class for CAS annotators which initializes itself based on annotations.
*
*/
public abstract class CasAnnotator_ImplBase
extends org.apache.uima.analysis_component.CasAnnotator_ImplBase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

/**
* Base class for CAS collection readers which initializes itself based on annotations.
*
*/
@OperationalProperties(outputsNewCases = true)
public abstract class CasCollectionReader_ImplBase extends CollectionReader_ImplBase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
* Base class for CAS consumers (actually a
* {@link org.apache.uima.analysis_component.CasAnnotator_ImplBase}) which initializes itself based
* on annotations.
*
*/
@OperationalProperties(multipleDeploymentAllowed = false)
public abstract class CasConsumer_ImplBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
* Dumps CAS content to a text file. This is useful when setting up test cases which contain a
* reference output to which an actually produced CAS is compared. The format produced by this
* component is more easily comparable than a XCAS or XMI format.
*
*/
public class CasDumpWriter extends CasConsumer_ImplBase {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
import org.apache.uima.flow.FlowControllerContext;
import org.apache.uima.resource.ResourceInitializationException;

/**
*/

public abstract class CasFlowController_ImplBase
extends org.apache.uima.flow.CasFlowController_ImplBase {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

/**
* Base class for a CAS multiplier which initializes itself based on annotations.
*
*/
@OperationalProperties(outputsNewCases = true)
public abstract class CasMultiplier_ImplBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

/**
* Base class for JCas annotators which initializes itself based on annotations.
*
*/
public abstract class JCasAnnotator_ImplBase
extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@

/**
* Base class for JCas collection readers which initializes itself based on annotations.
*
*/
@OperationalProperties(outputsNewCases = true)
public abstract class JCasCollectionReader_ImplBase extends CollectionReader_ImplBase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
* Base class for JCas consumers (actually a
* {@link org.apache.uima.analysis_component.JCasAnnotator_ImplBase}) which initializes itself based
* on annotations.
*
*/
@OperationalProperties(multipleDeploymentAllowed = false)
public abstract class JCasConsumer_ImplBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
import org.apache.uima.flow.FlowControllerContext;
import org.apache.uima.resource.ResourceInitializationException;

/**
*/

public abstract class JCasFlowController_ImplBase
extends org.apache.uima.flow.JCasFlowController_ImplBase {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

/**
* Base class for a JCas multiplier which initializes itself based on annotations.
*
*/
@OperationalProperties(outputsNewCases = true)
public abstract class JCasMultiplier_ImplBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

/**
* No-operation annotator. This annotator performs no operation whatsoever.
*
*/
public class NoOpAnnotator extends CasAnnotator_ImplBase {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

/**
* Base class for external resources which initializes itself based on annotations.
*
*/
public abstract class Resource_ImplBase extends org.apache.uima.resource.Resource_ImplBase
implements ExternalResourceAware {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
* - but if you have mapped the default view to some other view, then the view provided to your
* annotator (when it asks for the default view) will not be created unless you have explicitly
* created it.
*
*
*/
public class ViewCreatorAnnotator extends JCasAnnotator_ImplBase {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@
* the end you can compare the annotations in the system view with those in the gold view. It is
* convenient to have an annotator that simply copies the text from the gold view to the system view
* before running a pipeline on the system view.
*
*
*/

public class ViewTextCopierAnnotator extends JCasAnnotator_ImplBase {

/**
Expand Down Expand Up @@ -67,5 +64,4 @@ public void process(final JCas jCas) throws AnalysisEngineProcessException {
throw new AnalysisEngineProcessException(e);
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/

/**
* uimaFIT-enhanced base classes for UIMA components and some simple components.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ public class TypeSystemDescriptionProviderForTesting implements TypeSystemDescri

@Override
public List<TypeSystemDescription> listTypeSystemDescriptions() {
TypeSystemDescription tsd = UIMAFramework.getResourceSpecifierFactory()
.createTypeSystemDescription();
var tsd = UIMAFramework.getResourceSpecifierFactory().createTypeSystemDescription();
tsd.addType(TEST_TYPE_A, "", CAS.TYPE_NAME_ANNOTATION);
return asList(tsd);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ public synchronized void resolveImports(ResourceManager aResourceManager)
@Override
public synchronized void resolveImports(Collection<String> aAlreadyImportedTypeSystemURLs,
ResourceManager aResourceManager) throws InvalidXMLException {
ImportResolver<TypeSystemDescription, TypeDescription> resolver = new ImportResolver<>(
TypeSystemDescriptionImportResolverAdapter::new);
var resolver = new ImportResolver<>(TypeSystemDescriptionImportResolverAdapter::new);
resolver.resolveImports(this, aAlreadyImportedTypeSystemURLs, aResourceManager);
}

Expand Down

0 comments on commit 60e9847

Please sign in to comment.