|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsalsa.corpora.elements.Feature
public class Feature
Represents a 'feature' in a SalsaXML corpus.
Constructor Summary | |
---|---|
Feature(java.lang.String domain,
java.lang.String name)
Default constructor that takes the domain and the name of this Feature . |
Method Summary | |
---|---|
void |
addValue(Value newValue)
Adds a new Value to this Feature . |
java.lang.String |
getDomain()
Returns the domain of this Feature . |
java.lang.String |
getName()
Returns the name of this Feature . |
java.util.ArrayList<Value> |
getValues()
Returns the list of Value elements of this
Feature . |
static java.lang.String |
getXmltag()
Return the name of the XML element of Feature , i. e. |
void |
setDomain(java.lang.String domain)
Sets the domain. |
void |
setName(java.lang.String name)
Sets the name of this Feature . |
java.lang.String |
toString()
Returns a recursively created XML representation of Feature . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Feature(java.lang.String domain, java.lang.String name)
Feature
.
domain
- name
- Method Detail |
---|
public void addValue(Value newValue)
Value
to this Feature
.
newValue
- public java.lang.String getDomain()
Feature
.
public java.lang.String getName()
Feature
.
public java.util.ArrayList<Value> getValues()
Value
elements of this
Feature
.
public static java.lang.String getXmltag()
Feature
, i. e.
'feature'.
public void setDomain(java.lang.String domain)
domain
- the domain to setpublic void setName(java.lang.String name)
Feature
.
name
- the name to setpublic java.lang.String toString()
Feature
.
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |