edu.upenn.cis.pdtb
Interface PDTBSelection

All Known Implementing Classes:
PDTBSelectionImpl

public interface PDTBSelection

A (possibly discontinuous) selection of text.

Author:
nikhild

Field Summary
static java.lang.String RawTextAttributeQName
          QName of the attribute whose value corresponds to the raw text selected.
 
Method Summary
 GornAddressList getAddresses()
          A list of Gorn addresses corresponding to the selection.
 PDTBNode getPDTBNode()
          Get the associated PDTBNode.
 java.util.Enumeration getPTBNodes()
          Get the 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 setPDTBNode(PDTBNode node)
          Set the associated node.
 void updateAttributesOnNode()
          Set the attributes on ownerNode.
 

Field Detail

RawTextAttributeQName

public static final java.lang.String RawTextAttributeQName
QName of the attribute whose value corresponds to the raw text selected.

See Also:
Constant Field Values
Method Detail

getSpans

public SpanList getSpans()
A list of spans corresponding to the selection.


getAddresses

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


getPDTBNode

public PDTBNode getPDTBNode()
Get the associated PDTBNode.


setPDTBNode

public void setPDTBNode(PDTBNode node)
Set the associated node.


getRawText

public java.lang.String getRawText()
Get the raw text denoted by the span list.


getPTBNodes

public java.util.Enumeration getPTBNodes()
Get the tree nodes denoted by the Gorn address list.


updateAttributesOnNode

public void updateAttributesOnNode()
Set the attributes on ownerNode.