org.apache.ctakes.typesystem.type.syntax
Class TopTreebankNode

java.lang.Object
  extended by org.apache.uima.cas.impl.FeatureStructureImpl
      extended by org.apache.uima.jcas.cas.TOP
          extended by org.apache.uima.jcas.cas.AnnotationBase
              extended by org.apache.uima.jcas.tcas.Annotation
                  extended by org.apache.ctakes.typesystem.type.syntax.TreebankNode
                      extended by org.apache.ctakes.typesystem.type.syntax.TopTreebankNode
All Implemented Interfaces:
Cloneable, org.apache.uima.cas.AnnotationBaseFS, org.apache.uima.cas.FeatureStructure, org.apache.uima.cas.text.AnnotationFS

public class TopTreebankNode
extends TreebankNode

A Penn Treebank Node; as the top node, this stores the whole subsumed sentence's parse tree as a string. It also stores all the terminals, allowing for traversal of the tree bottom-up (top-down is implied through the TreebankNode's 'children' attribute). Updated by JCasGen Thu Nov 28 10:34:46 CST 2013 XML source: C:/build-Apache-cTAKES/ctakes-3.1.1/rc2/checkout/ctakes/target/checkout/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/types/TypeSystem.xml


Field Summary
static int type
           
static int typeIndexID
           
 
Fields inherited from class org.apache.uima.jcas.cas.TOP
addr, jcasType
 
Constructor Summary
protected TopTreebankNode()
          Never called.
  TopTreebankNode(int addr, org.apache.uima.jcas.cas.TOP_Type type)
          Internal - constructor used by generator
  TopTreebankNode(org.apache.uima.jcas.JCas jcas)
           
  TopTreebankNode(org.apache.uima.jcas.JCas jcas, int begin, int end)
           
 
Method Summary
 org.apache.uima.jcas.cas.FSArray getTerminals()
          getter for terminals - gets Stores the terminal nodes of the parse tree.
 TerminalTreebankNode getTerminals(int i)
          indexed getter for terminals - gets an indexed value - Stores the terminal nodes of the parse tree.
 String getTreebankParse()
          getter for treebankParse - gets A bracketed sentence string representing the parse tree.
 int getTypeIndexID()
           
 void setTerminals(org.apache.uima.jcas.cas.FSArray v)
          setter for terminals - sets Stores the terminal nodes of the parse tree.
 void setTerminals(int i, TerminalTreebankNode v)
          indexed setter for terminals - sets an indexed value - Stores the terminal nodes of the parse tree.
 void setTreebankParse(String v)
          setter for treebankParse - sets A bracketed sentence string representing the parse tree.
 
Methods inherited from class org.apache.ctakes.typesystem.type.syntax.TreebankNode
getChildren, getChildren, getHeadIndex, getLeaf, getNodeTags, getNodeTags, getNodeType, getNodeValue, getParent, setChildren, setChildren, setHeadIndex, setLeaf, setNodeTags, setNodeTags, setNodeType, setNodeValue, setParent
 
Methods inherited from class org.apache.uima.jcas.tcas.Annotation
getBegin, getCoveredText, getEnd, getStart, setBegin, setEnd
 
Methods inherited from class org.apache.uima.jcas.cas.AnnotationBase
getSofa, getView
 
Methods inherited from class org.apache.uima.jcas.cas.TOP
addToIndexes, addToIndexes, equals, getAddress, getCAS, getCASImpl, getLowLevelCas, hashCode, removeFromIndexes, removeFromIndexes
 
Methods inherited from class org.apache.uima.cas.impl.FeatureStructureImpl
clone, getBooleanValue, getByteValue, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getShortValue, getStringValue, getType, prettyPrint, prettyPrint, prettyPrint, setBooleanValue, setByteValue, setDoubleValue, setFeatureValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, toString, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.uima.cas.AnnotationBaseFS
getView
 
Methods inherited from interface org.apache.uima.cas.FeatureStructure
clone, equals, getBooleanValue, getByteValue, getCAS, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getShortValue, getStringValue, getType, hashCode, setBooleanValue, setByteValue, setDoubleValue, setFeatureValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue
 

Field Detail

typeIndexID

public static final int typeIndexID

type

public static final int type
Constructor Detail

TopTreebankNode

protected TopTreebankNode()
Never called. Disable default constructor


TopTreebankNode

public TopTreebankNode(int addr,
                       org.apache.uima.jcas.cas.TOP_Type type)
Internal - constructor used by generator


TopTreebankNode

public TopTreebankNode(org.apache.uima.jcas.JCas jcas)

TopTreebankNode

public TopTreebankNode(org.apache.uima.jcas.JCas jcas,
                       int begin,
                       int end)
Method Detail

getTypeIndexID

public int getTypeIndexID()
Overrides:
getTypeIndexID in class TreebankNode

getTreebankParse

public String getTreebankParse()
getter for treebankParse - gets A bracketed sentence string representing the parse tree.


setTreebankParse

public void setTreebankParse(String v)
setter for treebankParse - sets A bracketed sentence string representing the parse tree.


getTerminals

public org.apache.uima.jcas.cas.FSArray getTerminals()
getter for terminals - gets Stores the terminal nodes of the parse tree. This allows for bottom-up traversal of a tree.


setTerminals

public void setTerminals(org.apache.uima.jcas.cas.FSArray v)
setter for terminals - sets Stores the terminal nodes of the parse tree. This allows for bottom-up traversal of a tree.


getTerminals

public TerminalTreebankNode getTerminals(int i)
indexed getter for terminals - gets an indexed value - Stores the terminal nodes of the parse tree. This allows for bottom-up traversal of a tree.


setTerminals

public void setTerminals(int i,
                         TerminalTreebankNode v)
indexed setter for terminals - sets an indexed value - Stores the terminal nodes of the parse tree. This allows for bottom-up traversal of a tree.



Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.