germanet
Class Example

java.lang.Object
  extended by germanet.Example

public class Example
extends java.lang.Object

An Example consists of a text String and a (possibly empty) list of verb Frames.

Version:
1.0
Author:
Marie Hinrichs (meh at sfs.uni-tuebingen.de)

Method Summary
 Frame getFrame(int i)
          Return the ith Frame of this Example.
 java.util.List<Frame> getFrames()
          Return a List containing this Example's Frames.
 java.lang.String getText()
          Return this Example's text.
 int numFrames()
          Returns the number of Frames in this Example.
 java.lang.String toString()
          Return a String representation of this Example.
 java.lang.String xmlString()
          Return an xml String representation of this Example.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

numFrames

public int numFrames()
Returns the number of Frames in this Example. This is an empty List if no Frames are available for this Example.

Returns:
the number of Frames in this Example.

getText

public java.lang.String getText()
Return this Example's text.

Returns:
this Example's text.

getFrame

public Frame getFrame(int i)
Return the ith Frame of this Example.

Parameters:
i -
Returns:
the ith Frame of this Example.

getFrames

public java.util.List<Frame> getFrames()
Return a List containing this Example's Frames.

Returns:
a List containing this Example's Frames.

xmlString

public java.lang.String xmlString()
Return an xml String representation of this Example.

Returns:
an xml String representation of this Example.

toString

public java.lang.String toString()
Return a String representation of this Example.

Overrides:
toString in class java.lang.Object
Returns:
a String representation of this Example.