org.apache.uima.simpleserver.config.impl
Class TypeMapImpl

java.lang.Object
  extended by org.apache.uima.simpleserver.config.impl.TypeMapImpl
All Implemented Interfaces:
TypeMap

public class TypeMapImpl
extends java.lang.Object
implements TypeMap


Constructor Summary
TypeMapImpl(java.lang.String typeName, Filter filter, java.lang.String outputTag, boolean outputCoveredText, boolean outputAll, java.lang.String shortDescription, java.lang.String longDescription)
           
 
Method Summary
 void addOutput(Output output)
          Add an output spec.
 Filter getFilter()
          Get the filter for this map.
 java.lang.String getLongDescription()
           
 boolean getOutputAll()
          Get the "output all" switch.
 java.util.List<Output> getOutputs()
          Get list of output specs.
 java.lang.String getOutputTag()
          Get the output tag that the type name is mapped to.
 java.lang.String getShortDescription()
           
 java.lang.String getTypeName()
          Get the type name.
 boolean isOutputCoveredText()
          Get the switch for covered text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeMapImpl

public TypeMapImpl(java.lang.String typeName,
                   Filter filter,
                   java.lang.String outputTag,
                   boolean outputCoveredText,
                   boolean outputAll,
                   java.lang.String shortDescription,
                   java.lang.String longDescription)
Method Detail

getFilter

public Filter getFilter()
Description copied from interface: TypeMap
Get the filter for this map.

Specified by:
getFilter in interface TypeMap
Returns:
This map's filter; may be null.

getOutputs

public java.util.List<Output> getOutputs()
Description copied from interface: TypeMap
Get list of output specs.

Specified by:
getOutputs in interface TypeMap
Returns:
This map's output specs.

getOutputTag

public java.lang.String getOutputTag()
Description copied from interface: TypeMap
Get the output tag that the type name is mapped to.

Specified by:
getOutputTag in interface TypeMap
Returns:
This type map's output tag.

getTypeName

public java.lang.String getTypeName()
Description copied from interface: TypeMap
Get the type name.

Specified by:
getTypeName in interface TypeMap
Returns:
This map's type name; objects of this type will be considered for output.

isOutputCoveredText

public boolean isOutputCoveredText()
Description copied from interface: TypeMap
Get the switch for covered text.

Specified by:
isOutputCoveredText in interface TypeMap
Returns:
Whether this map outputs the covered text for each annotation.

getLongDescription

public java.lang.String getLongDescription()
Specified by:
getLongDescription in interface TypeMap
Returns:
The long description of this map; may be null.

getShortDescription

public java.lang.String getShortDescription()
Specified by:
getShortDescription in interface TypeMap
Returns:
The short description (one line) of this map; may be null.

addOutput

public void addOutput(Output output)
Description copied from interface: TypeMap
Add an output spec.

Specified by:
addOutput in interface TypeMap

getOutputAll

public boolean getOutputAll()
Description copied from interface: TypeMap
Get the "output all" switch. If this is set to true, output all simple-valued features of the given type. Defaults to false.

Specified by:
getOutputAll in interface TypeMap
Returns:
The "output all" switch.


Copyright © 2011. All Rights Reserved.