public final class ConfigFactory extends Object
Constructor and Description |
---|
ConfigFactory() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.Copyright © 2006–2014 The Apache Software Foundation. All rights reserved.