|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsalsa.corpora.elements.Variable
public class Variable
Represents the 'variable' section in a SalsaXML corpus.
Constructor Summary | |
---|---|
Variable(java.lang.String name,
Id id)
Default constructor that takes the value of the 'name' attribute and the Id (value of the 'idref' attribute) as arguments. |
Method Summary | |
---|---|
Id |
getId()
Returns the Id (value of the 'idref' attribute). |
java.lang.String |
getName()
Returns the value of the 'name' attribute. |
java.lang.String |
getText()
Returns the text (PCDATA in XML). |
static java.lang.String |
getXmltag()
Returns the XML element name of Variable , i. e. |
void |
setId(Id id)
Sets the Id (value of the 'idref' attribute). |
void |
setName(java.lang.String name)
Sets the value of the 'name' attribute. |
void |
setText(java.lang.String text)
Sets the text (PCDATA in XML). |
java.lang.String |
toString()
Returns a recursively created XML representation of this Variable . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Variable(java.lang.String name, Id id)
Id
(value of the 'idref' attribute) as arguments.
name
- id
- Method Detail |
---|
public Id getId()
Id
(value of the 'idref' attribute).
public java.lang.String getName()
public java.lang.String getText()
public static java.lang.String getXmltag()
Variable
, i. e.
'variable'.
public void setId(Id id)
Id
(value of the 'idref' attribute).
id
- the id to setpublic void setName(java.lang.String name)
name
- the name to setpublic void setText(java.lang.String text)
text
- the text to setpublic java.lang.String toString()
Variable
.
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |