org.textmining.extraction.word.model
Class PropertyNode

java.lang.Object
  extended by org.textmining.extraction.word.model.PropertyNode
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable
Direct Known Subclasses:
CHPX, GenericPropertyNode, TextPiece

public abstract class PropertyNode
extends java.lang.Object
implements java.lang.Comparable, java.lang.Cloneable

Represents a lightweight node in the Trees used to store content properties.

Author:
Ryan Ackley

Method Summary
 void adjustForDelete(int start, int length)
          Adjust for a deletion that can span multiple PropertyNodes.
 java.lang.Object clone()
           
 int compareTo(java.lang.Object o)
          Used for sorting in collections.
 boolean equals(java.lang.Object o)
           
 int getEnd()
           
 int getStart()
           
 void setEnd(int end)
           
 void setStart(int start)
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

adjustForDelete

public void adjustForDelete(int start,
                            int length)
Adjust for a deletion that can span multiple PropertyNodes.

Parameters:
start -
length -

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

compareTo

public int compareTo(java.lang.Object o)
Used for sorting in collections.

Specified by:
compareTo in interface java.lang.Comparable

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getEnd

public int getEnd()
Returns:
The offset of the end of this property's text.

getStart

public int getStart()
Returns:
The offset of this property's text.

setEnd

public void setEnd(int end)

setStart

public void setStart(int start)