salsa.corpora.elements
Class CorpusId

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

public class CorpusId
extends java.lang.Object

Represents the 'corpus_id' section in a SalsaXML corpus.

Author:
Fabian Shirokov

Constructor Summary
CorpusId()
          Zero-argumented default constructor.
 
Method Summary
 java.lang.String getId()
          Returns the id (PCDATA in XML).
static java.lang.String getXmltag()
          Returns the name of the XML element of CorpusId, i. e.
 void setId(java.lang.String id)
          Sets the id (PCDATA in XML).
 java.lang.String toString()
          Returns a recursively created XML representation of CorpusId.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CorpusId

public CorpusId()
Zero-argumented default constructor.

Parameters:
id -
Method Detail

getId

public java.lang.String getId()
Returns the id (PCDATA in XML).

Returns:
the id

getXmltag

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

Returns:
the xmltag

setId

public void setId(java.lang.String id)
Sets the id (PCDATA in XML).

Parameters:
id - the id to set

toString

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

Overrides:
toString in class java.lang.Object