org.apache.poi.hwpf.model
Class PropertyNode
java.lang.Object
org.apache.poi.hwpf.model.PropertyNode
- All Implemented Interfaces:
- java.lang.Cloneable, java.lang.Comparable
- Direct Known Subclasses:
- BytePropertyNode, CachedPropertyNode, 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.
This only ever works in characters. For the few odd cases when
the start and end aren't in characters (eg PAPX and CHPX), use
BytePropertyNode
between you and this.
- Author:
- Ryan Ackley
Field Summary |
protected java.lang.Object |
_buf
|
Constructor Summary |
protected |
PropertyNode(int fcStart,
int fcEnd,
java.lang.Object buf)
|
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_buf
protected java.lang.Object _buf
PropertyNode
protected PropertyNode(int fcStart,
int fcEnd,
java.lang.Object buf)
- Parameters:
fcStart
- The start of the text for this property, in characters.fcEnd
- The end of the text for this property, in characters.buf
- FIXME: Old documentation is: "grpprl The property description in compressed form."
getStart
public int getStart()
- Returns:
- The start offset of this property's text.
setStart
public void setStart(int start)
getEnd
public int getEnd()
- Returns:
- The offset of the end of this property's text.
setEnd
public void setEnd(int end)
adjustForDelete
public void adjustForDelete(int start,
int length)
- Adjust for a deletion that can span multiple PropertyNodes.
- Parameters:
start
- length
-
limitsAreEqual
protected boolean limitsAreEqual(java.lang.Object o)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
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
Copyright 2010 The Apache Software Foundation or
its licensors, as applicable.