public class TypeTemplate extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<Integer,String> |
additionalData |
protected boolean |
externalParser |
protected List<FeatureTemplate> |
features |
protected String |
fullClassName |
protected boolean |
inlineAnnotation |
protected boolean |
multipleInstances |
protected TypeParser |
parser |
protected List<Integer> |
partOfDocuments |
protected List<String> |
xPaths |
| Constructor and Description |
|---|
TypeTemplate()
Creates a new instance of a TypeTemplate
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAdditionalData(String value,
int index) |
void |
addFeature(FeatureTemplate feature)
adds a FeatureTemplate to the List
|
void |
addPartOfDocumentText(int partOfDocumentId) |
void |
addXPath(String xpath) |
protected TypeTemplate |
clone() |
String[] |
getAdditionalData() |
List<FeatureTemplate> |
getFeatures() |
String |
getFullClassName() |
int[] |
getOffsetPartIDs()
returns the first and the last of partOfDocument ids that should be covered by this annotation; that is, the begin of this annotation should be at the begin of the first returned part and the end should be the end of the second returned part.
|
TypeParser |
getParser() |
List<String> |
getXPaths() |
boolean |
isInlineAnnotation() |
boolean |
isMultipleInstances() |
void |
setFeatures(List<FeatureTemplate> features) |
void |
setFullClassName(String fullClassName) |
void |
setInlineAnnotation(boolean inlineAnnotation) |
void |
setMultipleInstances(boolean b) |
void |
setParser(String trim)
Overrides the parser and sets an external parser
|
String |
toString() |
protected String fullClassName
protected List<FeatureTemplate> features
protected TypeParser parser
protected boolean externalParser
protected boolean multipleInstances
protected boolean inlineAnnotation
public void addFeature(FeatureTemplate feature)
feature - public List<FeatureTemplate> getFeatures()
public void setFeatures(List<FeatureTemplate> features)
features - the features to setpublic String getFullClassName()
public void setFullClassName(String fullClassName)
fullClassName - the fullClassName to setpublic void setParser(String trim) throws org.apache.uima.collection.CollectionException
trim - a String containing the full qualified Classname of the parserorg.apache.uima.collection.CollectionExceptionpublic TypeParser getParser()
public void addAdditionalData(String value, int index)
public String[] getAdditionalData()
public void addPartOfDocumentText(int partOfDocumentId)
public int[] getOffsetPartIDs()
public void addXPath(String xpath)
protected TypeTemplate clone()
public boolean isMultipleInstances()
public boolean isInlineAnnotation()
public void setMultipleInstances(boolean b)
public void setInlineAnnotation(boolean inlineAnnotation)
Copyright © 2016 JULIE Lab Jena, Germany. All rights reserved.