salsa.corpora.elements
Class Recipient

java.lang.Object
  extended by salsa.corpora.elements.Recipient

public class Recipient
extends java.lang.Object

Represents the 'recipient' section in a SalsaXML corpus.

Author:
Fabian Shirokov

Constructor Summary
Recipient(java.lang.String id)
           
 
Method Summary
 java.lang.String getId()
          Returns the user id (from the 'id' attribute).
 java.lang.String getText()
          Returns the recipient's name (PCDATA in XML), e. g.
static java.lang.String getXmltag()
          Returns the XML element name of Recipient, i. e.
 void setId(java.lang.String id)
          Sets the user id.
 void setText(java.lang.String text)
          Sets the recipient's name.
 java.lang.String toString()
          Returns a recursively created XML representation of this Recipient.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Recipient

public Recipient(java.lang.String id)
Method Detail

getId

public java.lang.String getId()
Returns the user id (from the 'id' attribute).

Returns:
the id

getText

public java.lang.String getText()
Returns the recipient's name (PCDATA in XML), e. g. 'fabians'.

Returns:
the text

getXmltag

public static java.lang.String getXmltag()
Returns the XML element name of Recipient, i. e. 'recipient'

Returns:
the xmltag

setId

public void setId(java.lang.String id)
Sets the user id.

Parameters:
id - the id to set

setText

public void setText(java.lang.String text)
Sets the recipient's name.

Parameters:
text - the text to set

toString

public java.lang.String toString()
Returns a recursively created XML representation of this Recipient.

Overrides:
toString in class java.lang.Object