edu.mit.jmwe.data
Class RootMWEDesc.Part

java.lang.Object
  extended by edu.mit.jmwe.data.AbstractMWEDesc.AbstractPart
      extended by edu.mit.jmwe.data.RootMWEDesc.Part
All Implemented Interfaces:
IHasForm, IMWEDesc.IPart, IRootMWEDesc.IRootPart, Comparable<IMWEDesc.IPart>
Enclosing class:
RootMWEDesc

protected class RootMWEDesc.Part
extends AbstractMWEDesc.AbstractPart
implements IRootMWEDesc.IRootPart

Default implementation of IRootMWEDesc.IRootPart.

Since:
jMWE 1.0.0
Version:
$Id: RootMWEDesc.java 620 2011-05-08 21:13:58Z markaf $
Author:
M.A. Finlayson

Constructor Summary
RootMWEDesc.Part(String form, int index)
          Constructs the part from its text and index in the MWE.
 
Method Summary
 IRootMWEDesc getParent()
          Returns the MWE description of which this part is a part.
 
Methods inherited from class edu.mit.jmwe.data.AbstractMWEDesc.AbstractPart
compareTo, equals, getForm, getIndex, hashCode, isStopWord, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.mit.jmwe.data.IMWEDesc.IPart
getIndex, isStopWord
 
Methods inherited from interface edu.mit.jmwe.data.IHasForm
getForm
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

RootMWEDesc.Part

public RootMWEDesc.Part(String form,
                        int index)
Constructs the part from its text and index in the MWE.

Parameters:
form - the text of the part
index - the position of this part in the MWE
Since:
jMWE 1.0.0
Method Detail

getParent

public IRootMWEDesc getParent()
Description copied from interface: IMWEDesc.IPart
Returns the MWE description of which this part is a part. Will never return null.

Specified by:
getParent in interface IMWEDesc.IPart
Specified by:
getParent in interface IRootMWEDesc.IRootPart
Overrides:
getParent in class AbstractMWEDesc.AbstractPart
Returns:
the MWE description that contains this part.


Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.