|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsalsa.corpora.elements.Corpus
public class Corpus
Represents a corpus in the SalsaXML format.
Constructor Summary | |
---|---|
Corpus(java.lang.String corpusname,
java.lang.String target)
Default constructor that takes the name of the corpus and its target as arguments. |
Method Summary | |
---|---|
Body |
getBody()
Returns the Body of this Corpus . |
java.lang.String |
getCorpusname()
Returns the name of this Corpus , e. g. |
Head |
getHead()
Returns the Head of this Corpus . |
java.lang.String |
getTarget()
Returns the target of this Corpus , e. g. |
static java.lang.String |
getXmltag()
Returns the name of the XML element of the Corpus class,
i. e. |
void |
setBody(Body body)
Sets the Body of this Corpus . |
void |
setCorpusname(java.lang.String corpusname)
Sets the name of the Corpus . |
void |
setHead(Head head)
Sets the Head of this Corpus . |
void |
setTarget(java.lang.String target)
Sets the target of this Corpus . |
java.lang.String |
toString()
Returns a recursively created XML representation of a SALSA corpus, including the header <? |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Corpus(java.lang.String corpusname, java.lang.String target)
corpusname
- target
- Method Detail |
---|
public Body getBody()
Body
of this Corpus
. null
is returned if no Body
has been set.
public java.lang.String getCorpusname()
Corpus
, e. g.
'TIGER-Gesamt-Juli03'
public Head getHead()
Head
of this Corpus
. null
is returned if no Head
has been set.
public java.lang.String getTarget()
Corpus
, e. g. 'gehen'.
public static java.lang.String getXmltag()
Corpus
class,
i. e. 'corpus'.
public void setBody(Body body)
Body
of this Corpus
.
body
- the body to setpublic void setCorpusname(java.lang.String corpusname)
Corpus
.
corpusname
- the corpusname to setpublic void setHead(Head head)
Head
of this Corpus
.
head
- the head to setpublic void setTarget(java.lang.String target)
Corpus
.
target
- the target to setpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |