|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsalsa.corpora.elements.FrameElement
public class FrameElement
Represents a frame element 'fe' in a SalsaXML corpus.
Constructor Summary | |
---|---|
FrameElement(Id id,
java.lang.String name)
Default constructor that takes the Id and the name of the
FrameElement as arguments. |
|
FrameElement(Id id,
java.lang.String name,
java.lang.String usp)
Constructor that takes the Id , the name and the 'usp'
value of the FrameElement as arguments. |
Method Summary | |
---|---|
void |
addFenode(Fenode newFenode)
Adds a new Fenode to this FrameElement . |
void |
addFlag(Flag newFlag)
Adds a new Flag to this FrameElement . |
java.util.ArrayList<Fenode> |
getFenodes()
Returns the list of Fenode elements of this
FrameElement . |
java.util.ArrayList<Flag> |
getFlags()
Returns the list of Flag elements of this
FrameElement . |
Id |
getId()
Returns the Id of this FrameElement . |
java.lang.String |
getName()
Returns the name of this FrameElement , e. g. |
java.lang.String |
getSource()
Returns the source of this FrameElement . |
java.lang.String |
getUsp()
Returns the 'usp' value of this FrameElement , e. g. |
static java.lang.String |
getXmltag()
Returns the name of the XML element of FrameElement , i. |
void |
setId(Id id)
Sets the Id of this FrameElement . |
void |
setName(java.lang.String name)
Sets the name of this FrameElement . |
void |
setSource(java.lang.String source)
Sets the source of this FrameElement . |
void |
setUsp(java.lang.String usp)
Sets the 'usp' value of this FrameElement . |
java.lang.String |
toString()
Returns a recursively created XML representation of FrameElement . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FrameElement(Id id, java.lang.String name)
Id
and the name of the
FrameElement
as arguments.
id
- name
- public FrameElement(Id id, java.lang.String name, java.lang.String usp)
Id
, the name and the 'usp'
value of the FrameElement
as arguments.
id
- name
- usp
- Method Detail |
---|
public void addFenode(Fenode newFenode)
Fenode
to this FrameElement
.
public void addFlag(Flag newFlag)
Flag
to this FrameElement
.
public java.util.ArrayList<Fenode> getFenodes()
Fenode
elements of this
FrameElement
.
public java.util.ArrayList<Flag> getFlags()
Flag
elements of this
FrameElement
.
public Id getId()
Id
of this FrameElement
.
public java.lang.String getName()
FrameElement
, e. g. 'Agent'.
public java.lang.String getSource()
FrameElement
.
public java.lang.String getUsp()
FrameElement
, e. g.
'yes'.
public static java.lang.String getXmltag()
FrameElement
, i.
e. 'fe'.
public void setId(Id id)
Id
of this FrameElement
.
id
- the id to setpublic void setName(java.lang.String name)
FrameElement
.
name
- the name to setpublic void setSource(java.lang.String source)
FrameElement
.
source
- the source to setpublic void setUsp(java.lang.String usp)
FrameElement
.
usp
- the usp to setpublic java.lang.String toString()
FrameElement
.
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |