|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsalsa.corpora.elements.Frame
public class Frame
Represents a 'frame' section in a SalsaXML corpus.
Constructor Summary | |
---|---|
Frame(java.lang.String name)
This constructor is used for frames in the 'head' section. |
|
Frame(java.lang.String name,
Id id)
This constructor is used for frames in the 'body' section. |
Method Summary | |
---|---|
void |
addElement(Element newElement)
Adds a Element to this Frame . |
void |
addFe(FrameElement newFe)
Adds a new FrameElement to this Frame . |
void |
addFlag(Flag newFlag)
Adds a new Flag to this Frame . |
java.util.ArrayList<Element> |
getElements()
Returns the list of the Element elements of this Frame . |
java.util.ArrayList<FrameElement> |
getFes()
Returns the list of the FrameElement elements of this Frame . |
java.util.ArrayList<Flag> |
getFlags()
Returns the list of the Flag elements of this Frame . |
Id |
getId()
Returns the Id . |
java.lang.String |
getName()
Returns the name of the this Frame , e. g. |
java.lang.String |
getSource()
Returns the value of the 'source' attribute, e. g. '1'. |
Target |
getTarget()
Returns the Target of this Frame . |
java.lang.String |
getUsp()
Returns the value of the 'usp' attribute. |
static java.lang.String |
getXmltag()
Returns the name of the XML element of Frame , i. e. |
void |
setId(Id id)
Sets the Id . |
void |
setName(java.lang.String name)
Sets the name of this frame. |
void |
setSource(java.lang.String source)
Sets the value of the 'source' attribute. |
void |
setTarget(Target target)
Sets the Target . |
void |
setUsp(java.lang.String usp)
Sets the value of the 'usp' attribute. |
java.lang.String |
toString()
Returns a recursively created XML representation of this Frame . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Frame(java.lang.String name)
name
- public Frame(java.lang.String name, Id id)
Id
as an argument.
name
- Method Detail |
---|
public void addElement(Element newElement)
Element
to this Frame
.
public void addFe(FrameElement newFe)
FrameElement
to this Frame
.
public void addFlag(Flag newFlag)
Flag
to this Frame
.
public java.util.ArrayList<Element> getElements()
Element
elements of this Frame
.
public java.util.ArrayList<FrameElement> getFes()
FrameElement
elements of this Frame
.
public java.util.ArrayList<Flag> getFlags()
Flag
elements of this Frame
.
public Id getId()
Id
.
public java.lang.String getName()
Frame
, e. g. 'Weather'.
public java.lang.String getSource()
public Target getTarget()
Target
of this Frame
.
public java.lang.String getUsp()
public static java.lang.String getXmltag()
Frame
, i. e. 'frame'.
public void setId(Id id)
Id
.
id
- the id to setpublic void setName(java.lang.String name)
name
- the name to setpublic void setSource(java.lang.String source)
source
- the source to setpublic void setTarget(Target target)
Target
.
target
- the target to setpublic void setUsp(java.lang.String usp)
usp
- public java.lang.String toString()
Frame
.
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |