edu.mit.jmwe.data
Class RootMWEDesc.Part
java.lang.Object
edu.mit.jmwe.data.AbstractMWEDesc.AbstractPart
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. |
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 partindex
- the position of this part in the MWE- Since:
- jMWE 1.0.0
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.