de.tuebingen.uni.sfs.germanet.api
Class Example

java.lang.Object
  extended by de.tuebingen.uni.sfs.germanet.api.Example

public class Example
extends java.lang.Object

An Example consists of a text String and an optional Frame.


Constructor Summary
protected Example()
          Constructs a new Example with empty text and no Frame.
protected Example(java.lang.String text)
          Constructs a new Example with the specified text and no Frame.
 
Method Summary
 java.lang.String getFrame()
          Return the Frame as String of this Example.
 java.lang.String getText()
          Return this Example's text.
protected  void setFrame(Frame frame)
          Set the specified Frame to this Example.
protected  void setText(java.lang.String text)
          Replaces the text with the specified text.
 java.lang.String toString()
          Return a String representation of this Example.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Example

protected Example()
Constructs a new Example with empty text and no Frame.


Example

protected Example(java.lang.String text)
Constructs a new Example with the specified text and no Frame.

Parameters:
text - the text for this Example
Method Detail

setText

protected void setText(java.lang.String text)
Replaces the text with the specified text.

Parameters:
text - the new text

setFrame

protected void setFrame(Frame frame)
Set the specified Frame to this Example.

Parameters:
frame - the Frame to set for this Example

getText

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

Returns:
this Example's text.

getFrame

public java.lang.String getFrame()
Return the Frame as String of this Example.

Returns:
the Frame as String 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.