|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xces.graf.uima.CASFactory
public class CASFactory
This class can be used to create a CAS given a graph, a type system and an index description.
| Nested Class Summary | |
|---|---|
static class |
CASFactory.EdgeType
|
static class |
CASFactory.NeighborType
|
| Field Summary | |
|---|---|
protected org.xces.graf.uima.TypeSystemFactory.IAnnotationLabelMaker |
aLabelMaker
Derives the type name for an annotation based on the (possible nested annotation set name and the annotation name. |
protected Map<String,List<org.apache.uima.cas.text.AnnotationFS>> |
annotationMap
Map used to associate a node with a list of UIMA annotation feature structures. |
protected String |
annType
|
protected org.xces.graf.uima.TypeSystemFactory.IAnnotationSpaceLabelMaker |
asLabelMaker
Derives type names based on the annotation set name. |
protected CASFactory.EdgeType |
edgeType
|
protected org.slf4j.Logger |
logger
|
protected org.xces.graf.api.IAnchor |
ORIGIN
|
protected Map<String,Object> |
userObjectMap
Map used to preserve any previously assigned user object's in the graph. |
| Constructor Summary | |
|---|---|
CASFactory()
|
|
| Method Summary | |
|---|---|
protected void |
addAnnotations(org.apache.uima.cas.CAS theCas,
org.xces.graf.api.INode theNode)
given the cas and the node, places annotations, made from node, to the cas |
protected void |
addFeatures(String label,
org.xces.graf.api.IFeature src,
org.apache.uima.cas.Type aType,
org.apache.uima.cas.text.AnnotationFS annotation)
adds uimaStringValues to feature src |
org.apache.uima.cas.CAS |
createCas(org.xces.graf.api.IGraph graph,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystemDesc,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
org.apache.uima.resource.metadata.FsIndexDescription[] index,
org.xces.graf.util.NameMap nameMap)
|
protected org.xces.graf.api.IAnnotationSpace |
getAnnSpace(org.xces.graf.api.IGraph graph)
For a given graph, returns the annotation spaces. |
protected List<org.xces.graf.api.INode> |
getNeighbors(org.xces.graf.api.INode node,
CASFactory.NeighborType type)
given a node returns a list of either children or ancestors |
void |
useExplicitEdges()
|
void |
useImplicitEdges()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.slf4j.Logger logger
protected org.xces.graf.uima.TypeSystemFactory.IAnnotationSpaceLabelMaker asLabelMaker
type field in the annotation label maker.
protected org.xces.graf.uima.TypeSystemFactory.IAnnotationLabelMaker aLabelMaker
protected Map<String,List<org.apache.uima.cas.text.AnnotationFS>> annotationMap
protected Map<String,Object> userObjectMap
protected org.xces.graf.api.IAnchor ORIGIN
protected CASFactory.EdgeType edgeType
protected String annType
| Constructor Detail |
|---|
public CASFactory()
| Method Detail |
|---|
public void useImplicitEdges()
public void useExplicitEdges()
public org.apache.uima.cas.CAS createCas(org.xces.graf.api.IGraph graph,
org.apache.uima.resource.metadata.TypeSystemDescription typeSystemDesc,
org.apache.uima.resource.metadata.TypePriorities typePriorities,
org.apache.uima.resource.metadata.FsIndexDescription[] index,
org.xces.graf.util.NameMap nameMap)
throws org.apache.uima.resource.ResourceInitializationException,
org.apache.uima.cas.CASException,
org.xces.graf.api.GrafException
org.apache.uima.resource.ResourceInitializationException
org.apache.uima.cas.CASException
org.xces.graf.api.GrafException
protected List<org.xces.graf.api.INode> getNeighbors(org.xces.graf.api.INode node,
CASFactory.NeighborType type)
node - type -
protected void addAnnotations(org.apache.uima.cas.CAS theCas,
org.xces.graf.api.INode theNode)
throws org.apache.uima.cas.CASException,
org.xces.graf.api.GrafException
theCas - theNode -
org.apache.uima.cas.CASException
org.xces.graf.api.GrafException
protected void addFeatures(String label,
org.xces.graf.api.IFeature src,
org.apache.uima.cas.Type aType,
org.apache.uima.cas.text.AnnotationFS annotation)
throws TypeSystemException
label - src - aType - annotation -
TypeSystemExceptionprotected org.xces.graf.api.IAnnotationSpace getAnnSpace(org.xces.graf.api.IGraph graph)
node -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||