|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.uima.simpleserver.config.ConfigFactory
public final class ConfigFactory
Creates config objects. This class is used internally when reading in config files. Similarly, it may be used to create config objects programmatically.
| Constructor Summary | |
|---|---|
ConfigFactory()
|
|
| Method Summary | |
|---|---|
static AndFilter |
newAndFilter()
Create a new filter conjunction. |
static Condition |
newCondition(FilterOp type)
Create new Condition with null value. |
static Condition |
newCondition(FilterOp type,
String value)
Create new Condition. |
static OrFilter |
newOrFilter()
Create a new filter disjunction. |
static Output |
newOutput(List<String> path,
String attribute,
String shortDescription,
String longDescription)
Create a new output mapping. |
static ServerSpec |
newServerSpec(String shortDescription,
String longDescription,
boolean doOutputAll)
Create a new server specification. |
static SimpleFilter |
newSimpleFilter(List<String> featurePath,
Condition condition)
Create a new Filter. |
static TypeMap |
newTypeMap(String typeName,
Filter filter,
String outputTag,
boolean coveredText)
Create a new type map. |
static TypeMap |
newTypeMap(String typeName,
Filter filter,
String outputTag,
boolean coveredText,
boolean outputAll,
String shortDescription,
String longDescription)
Create a new type map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigFactory()
| Method Detail |
|---|
public static ServerSpec newServerSpec(String shortDescription,
String longDescription,
boolean doOutputAll)
shortDescription - Short description of service.longDescription - Verbose description of service.doOutputAll - Output all types, regardless of individual type maps.
public static TypeMap newTypeMap(String typeName,
Filter filter,
String outputTag,
boolean coveredText)
typeName - The UIMA type name (input).outputTag - A XML tag name (output).coveredText - Output covered text, yes or no.
public static TypeMap newTypeMap(String typeName,
Filter filter,
String outputTag,
boolean coveredText,
boolean outputAll,
String shortDescription,
String longDescription)
typeName - The UIMA type name (input).outputTag - A XML tag name (output).coveredText - Output covered text, yes or no.shortDescription - Short description of map.longDescription - Verbose description of map.
public static Output newOutput(List<String> path,
String attribute,
String shortDescription,
String longDescription)
path - Feature path whose value will be output.attribute - XML attribute that will contain the output.shortDescription - A short description of the output mapping.longDescription - A verbose description of the output mapping.
public static SimpleFilter newSimpleFilter(List<String> featurePath,
Condition condition)
featurePath - Feature path whose value the filter operates on. Must not be null.condition - The condition the path's value must satisfy.
public static AndFilter newAndFilter()
public static OrFilter newOrFilter()
public static Condition newCondition(FilterOp type,
String value)
type - The condition's type (not null, equals etc.).value - Value for equality constraints.
public static Condition newCondition(FilterOp type)
type - The condition's type (not null, etc.).
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||