edu.upenn.cis.pdtb
Class PDTBSelectionImpl

java.lang.Object
  extended byedu.upenn.cis.pdtb.PDTBSelectionImpl
All Implemented Interfaces:
PDTBSelection

public class PDTBSelectionImpl
extends java.lang.Object
implements PDTBSelection

Author:
nikhild

Field Summary
protected static java.util.Stack PDTBSelectionPool
           
 
Fields inherited from interface edu.upenn.cis.pdtb.PDTBSelection
RawTextAttributeQName
 
Constructor Summary
PDTBSelectionImpl(SpanList spanList, GornAddressList gal, java.lang.String rawText, java.util.Enumeration treeNodes)
          Creates a new instance of PDTBSelectionImpl
 
Method Summary
 GornAddressList getAddresses()
          A list of Gorn addresses corresponding to the selection.
 PDTBNode getPDTBNode()
          Get the associated PDTBNode.
 java.util.Enumeration getPTBNodes()
          Get hte tree nodes denoted by the Gorn address list.
 java.lang.String getRawText()
          Get the raw text denoted by the span list.
 SpanList getSpans()
          A list of spans corresponding to the selection.
 void save(java.io.Writer writer)
           
 void setPDTBNode(PDTBNode node)
          Set the associated node.
 void updateAttributesOnNode()
          Set the attributes on ownerNode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PDTBSelectionPool

protected static final java.util.Stack PDTBSelectionPool
Constructor Detail

PDTBSelectionImpl

public PDTBSelectionImpl(SpanList spanList,
                         GornAddressList gal,
                         java.lang.String rawText,
                         java.util.Enumeration treeNodes)
Creates a new instance of PDTBSelectionImpl

Method Detail

getAddresses

public GornAddressList getAddresses()
Description copied from interface: PDTBSelection
A list of Gorn addresses corresponding to the selection. See the release documentation for details on how these are computed from spans.

Specified by:
getAddresses in interface PDTBSelection

getPDTBNode

public PDTBNode getPDTBNode()
Description copied from interface: PDTBSelection
Get the associated PDTBNode.

Specified by:
getPDTBNode in interface PDTBSelection

getPTBNodes

public java.util.Enumeration getPTBNodes()
Description copied from interface: PDTBSelection
Get hte tree nodes denoted by the Gorn address list.

Specified by:
getPTBNodes in interface PDTBSelection

getRawText

public java.lang.String getRawText()
Description copied from interface: PDTBSelection
Get the raw text denoted by the span list.

Specified by:
getRawText in interface PDTBSelection

getSpans

public SpanList getSpans()
Description copied from interface: PDTBSelection
A list of spans corresponding to the selection.

Specified by:
getSpans in interface PDTBSelection

setPDTBNode

public void setPDTBNode(PDTBNode node)
Description copied from interface: PDTBSelection
Set the associated node.

Specified by:
setPDTBNode in interface PDTBSelection

updateAttributesOnNode

public void updateAttributesOnNode()
Description copied from interface: PDTBSelection
Set the attributes on ownerNode.

Specified by:
updateAttributesOnNode in interface PDTBSelection

save

public void save(java.io.Writer writer)
          throws java.io.IOException
Throws:
java.io.IOException