edu.mit.jmwe.data
Class InfMWEDesc.InfPart

java.lang.Object
  extended by edu.mit.jmwe.data.AbstractMWEDesc.AbstractPart
      extended by edu.mit.jmwe.data.InfMWEDesc.InfPart
All Implemented Interfaces:
IHasForm, IInfMWEDesc.IInfPart, IMWEDesc.IPart, Comparable<IMWEDesc.IPart>
Enclosing class:
InfMWEDesc

protected class InfMWEDesc.InfPart
extends AbstractMWEDesc.AbstractPart
implements IInfMWEDesc.IInfPart

Default implementation of the IInfMWEDesc.IInfPart interface.

Since:
jMWE 1.0.0
Version:
$Id: InfMWEDesc.java 595 2011-05-06 01:58:29Z markaf $
Author:
M.A. Finlayson

Constructor Summary
InfMWEDesc.InfPart(String form, int index)
          Constructs the part from its text and index in the MWE.
 
Method Summary
 IInfMWEDesc 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

InfMWEDesc.InfPart

public InfMWEDesc.InfPart(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 IInfMWEDesc 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 IInfMWEDesc.IInfPart
Specified by:
getParent in interface IMWEDesc.IPart
Overrides:
getParent in class AbstractMWEDesc.AbstractPart
Returns:
the MWE description that contains this part.


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