|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsalsa.corpora.elements.Flag
public class Flag
Represents a 'flag' section in a SalsaXML corpus.
Constructor Summary | |
---|---|
Flag(java.lang.String name)
Default constructor that takes the value of the 'name' attribute as an argument. |
|
Flag(java.lang.String name,
java.lang.String forWhat)
Constructor that takes the values of the 'for' and the 'name' attribute as arguments. |
Method Summary | |
---|---|
java.lang.String |
getForWhat()
Returns the value of the 'for' attribute, e. g. |
java.lang.String |
getName()
Returns the name of the flag, e. g. |
java.lang.String |
getSource()
Returns the source, e. g. '1' |
java.lang.String |
getText()
Returns the text. |
static java.lang.String |
getXmltag()
Returns the name of the XML element of Flag . |
void |
setForWhat(java.lang.String forWhat)
Sets the value of the 'for' attribute. |
void |
setName(java.lang.String name)
Sets the name of this Flag . |
void |
setSource(java.lang.String source)
Sets the source. |
void |
setText(java.lang.String text)
Sets the text. |
java.lang.String |
toString()
Returns a recursively created XML representation of a Flag . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Flag(java.lang.String name)
name
- public Flag(java.lang.String name, java.lang.String forWhat)
name
- forWhat
- value of the 'for' attributeMethod Detail |
---|
public java.lang.String getForWhat()
public java.lang.String getName()
public java.lang.String getSource()
public java.lang.String getText()
public static java.lang.String getXmltag()
Flag
.
public void setForWhat(java.lang.String forWhat)
forWhat
- public void setName(java.lang.String name)
Flag
.
name
- the name to setpublic void setSource(java.lang.String source)
source
- the source to setpublic void setText(java.lang.String text)
text
- the text to setpublic java.lang.String toString()
Flag
.
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |