edu.upenn.cis.propbank_shen
Class Example

java.lang.Object
  extended by edu.upenn.cis.propbank_shen.Example

public class Example
extends Object

This class represents an example in the lexical guidelines. An example consists of some text together with an optional name and a list of arguments for the verb described in the frameset file of which this example is a part.

Author:
Scott Cotton

Field Summary
protected  List arguments
           
protected  String name
           
protected  Node node
           
protected  String text
           
 
Constructor Summary
Example(Node n)
          construct an Example object from a dom example Node in the frameset.dtd
 
Method Summary
 String getName()
          get the name of this example, or return null if there is no name
 String getText()
          return the example text as a string.
 boolean hasName()
          return truee iff this example has a name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node

protected Node node

name

protected String name

text

protected String text

arguments

protected List arguments
Constructor Detail

Example

public Example(Node n)
construct an Example object from a dom example Node in the frameset.dtd

Method Detail

hasName

public boolean hasName()
return truee iff this example has a name


getName

public String getName()
get the name of this example, or return null if there is no name


getText

public String getText()
return the example text as a string.