org.eml.MMAX2.discourse
Class MMAX2DiscourseElement

java.lang.Object
  extended by org.eml.MMAX2.discourse.MMAX2DiscourseElement
All Implemented Interfaces:
DiscourseElementAPI

public class MMAX2DiscourseElement
extends java.lang.Object
implements DiscourseElementAPI

Author:
mueller

Constructor Summary
MMAX2DiscourseElement(java.lang.String _string, java.lang.String _id, int _discPos, java.util.HashMap _attributes)
          Creates a new instance of MMAX2DiscourseElement
 
Method Summary
 java.util.HashMap getAttributes()
           
 java.lang.String getAttributeValue(java.lang.String name, java.lang.String valIfNone)
           
 int getDiscoursePosition()
          (API) Returns the discourse position of this DiscourseElement.
 java.lang.String getID()
          (API) Returns the ID of this DiscourseElement.
 void setAttributeValue(java.lang.String name, java.lang.String value, MMAX2Discourse disc)
           
 java.lang.String toString()
          (API) Returns the text string of this DiscourseElement.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MMAX2DiscourseElement

public MMAX2DiscourseElement(java.lang.String _string,
                             java.lang.String _id,
                             int _discPos,
                             java.util.HashMap _attributes)
Creates a new instance of MMAX2DiscourseElement

Method Detail

toString

public final java.lang.String toString()
Description copied from interface: DiscourseElementAPI
(API) Returns the text string of this DiscourseElement.

Specified by:
toString in interface DiscourseElementAPI
Overrides:
toString in class java.lang.Object
Returns:
The text string of this DiscourseElement.

getID

public final java.lang.String getID()
Description copied from interface: DiscourseElementAPI
(API) Returns the ID of this DiscourseElement.

Specified by:
getID in interface DiscourseElementAPI
Returns:
The ID of this DiscourseElement (e.g. 'word_4').

getDiscoursePosition

public final int getDiscoursePosition()
Description copied from interface: DiscourseElementAPI
(API) Returns the discourse position of this DiscourseElement.

Specified by:
getDiscoursePosition in interface DiscourseElementAPI
Returns:
The numerical discourse position of this DiscourseElement. This is normally the base data element's position in the base data file.

getAttributeValue

public final java.lang.String getAttributeValue(java.lang.String name,
                                                java.lang.String valIfNone)

setAttributeValue

public final void setAttributeValue(java.lang.String name,
                                    java.lang.String value,
                                    MMAX2Discourse disc)

getAttributes

public final java.util.HashMap getAttributes()