edu.upenn.cis.ptb
Class PTBLabelImpl

java.lang.Object
  extended byedu.upenn.cis.ptb.PTBLabelImpl
All Implemented Interfaces:
PTBLabel
Direct Known Subclasses:
SPTBLabelImpl

public class PTBLabelImpl
extends java.lang.Object
implements PTBLabel

Author:
nikhild

Constructor Summary
PTBLabelImpl(java.lang.String type, java.lang.String rolesStr, int gapIndex, int movementIndex, java.lang.String raw)
          Creates a new instance of PTBLabelImpl
 
Method Summary
 int getGapIndex()
           
 int getMovementIndex()
           
 PTBTreeNode getOwnerNode()
           
 java.lang.String getRaw()
           
 java.lang.String getRoles()
           
 java.lang.String getType()
           
 boolean hasGapIndex()
           
 boolean hasMovementIndex()
           
 boolean hasRole(java.lang.String role)
           
 void save(java.io.Writer writer)
           
 void setOwnerNode(PTBTreeNode owner)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PTBLabelImpl

public PTBLabelImpl(java.lang.String type,
                    java.lang.String rolesStr,
                    int gapIndex,
                    int movementIndex,
                    java.lang.String raw)
Creates a new instance of PTBLabelImpl

Method Detail

getRaw

public java.lang.String getRaw()
Specified by:
getRaw in interface PTBLabel

getRoles

public java.lang.String getRoles()
Specified by:
getRoles in interface PTBLabel

getMovementIndex

public int getMovementIndex()
Specified by:
getMovementIndex in interface PTBLabel

getType

public java.lang.String getType()
Specified by:
getType in interface PTBLabel

hasRole

public boolean hasRole(java.lang.String role)
Specified by:
hasRole in interface PTBLabel

hasMovementIndex

public boolean hasMovementIndex()
Specified by:
hasMovementIndex in interface PTBLabel

toString

public java.lang.String toString()

getOwnerNode

public PTBTreeNode getOwnerNode()
Specified by:
getOwnerNode in interface PTBLabel

getGapIndex

public int getGapIndex()
Specified by:
getGapIndex in interface PTBLabel

hasGapIndex

public boolean hasGapIndex()
Specified by:
hasGapIndex in interface PTBLabel

setOwnerNode

public void setOwnerNode(PTBTreeNode owner)
Specified by:
setOwnerNode in interface PTBLabel

save

public void save(java.io.Writer writer)
          throws java.io.IOException
Specified by:
save in interface PTBLabel
Throws:
java.io.IOException