]> source.dussan.org Git - poi.git/commitdiff
latest updates
authorSaid Ryan Ackley <sackley@apache.org>
Wed, 9 Jul 2003 01:01:27 +0000 (01:01 +0000)
committerSaid Ryan Ackley <sackley@apache.org>
Wed, 9 Jul 2003 01:01:27 +0000 (01:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353197 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SEPX.java
src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SectionDescriptor.java
src/scratchpad/src/org/apache/poi/hwpf/model/hdftypes/SectionTable.java

index 97951e3801ae9038b25492898ff3f4147c33809a..8547a5a1f9480595e297b8dec3ff94124aae0f00 100644 (file)
@@ -78,4 +78,13 @@ public class SEPX extends PropertyNode
     return _sed;
   }
 
+  public boolean equals(Object o)
+  {
+    SEPX sepx = (SEPX)o;
+    if (super.equals(o))
+    {
+      return sepx._sed.equals(_sed);
+    }
+    return false;
+  }
 }
index 5c2d4a0ae90448d63dc1d3956935c3fff4623c2f..8e4bf21eec363f50086fd1141ba2ab9bf10086d1 100644 (file)
@@ -91,6 +91,12 @@ public class SectionDescriptor
     this.fc = fc;
   }
 
+  public boolean equals(Object o)
+  {
+    SectionDescriptor sed = (SectionDescriptor)o;
+    return sed.fn == fn && sed.fnMpr == fnMpr;
+  }
+
   public byte[] toByteArray()
   {
     int offset = 0;
index 9ea31573040b83756e764542c4decfe06ef9f916..85962f7ced350b30f6af32351c53e47851302ad1 100644 (file)
@@ -100,6 +100,11 @@ public class SectionTable
     }
   }
 
+  public ArrayList getSections()
+  {
+    return _sections;
+  }
+
   public void writeTo(HWPFFileSystem sys, int fcMin)
     throws IOException
   {