Annotation Interface TypeCapability


@Retention(RUNTIME) @Target(TYPE) public @interface TypeCapability
A typical use of this annotation might look something like:
 
 @TypeCapability(
   inputs="org.apache.uima.fit.type.Token", 
   outputs="org.apache.uima.fit.type.Token:pos")
 
 
or
 
 @TypeCapability(
   inputs={"org.apache.uima.fit.type.Token","org.apache.uima.fit.type.Sentence"}, 
   outputs={"org.apache.uima.fit.type.Token:pos", "org.apache.uima.tutorial.RoomNumber"})
 
 
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    inputs can be type names or feature names.
    outputs can be type names or feature names.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Provides the default value for the inputs and the outputs that tells the CapabilityFactory that no value has been given to the inputs or outputs elements.
  • Field Details

    • NO_DEFAULT_VALUE

      static final String NO_DEFAULT_VALUE
      Provides the default value for the inputs and the outputs that tells the CapabilityFactory that no value has been given to the inputs or outputs elements.
      See Also:
  • Element Details

    • inputs

      String[] inputs
      inputs can be type names or feature names. A feature name typically looks like a type name followed by a colon (':') followed by the feature name. A valid feature name from the uimaFIT test type system is "org.apache.uima.fit.type.Token:pos"
      Returns:
      the input types
      Default:
      {"org.apache.uima.fit.descriptor.TypeCapability.NO_DEFAULT_VALUE"}
    • outputs

      String[] outputs
      outputs can be type names or feature names. A feature name typically looks like a type name followed by a colon (':') followed by the feature name. A valid feature name from the uimaFIT test type system is "org.apache.uima.fit.type.Token:pos"
      Returns:
      the output types
      Default:
      {"org.apache.uima.fit.descriptor.TypeCapability.NO_DEFAULT_VALUE"}