1 2 17 18 19 20 package org.apache.poi.hdf.extractor.util; 21 22 27 28 public class PropertyNode implements Comparable 29 { 30 private byte[] _grpprl; 31 private int _fcStart; 32 private int _fcEnd; 33 34 public PropertyNode(int fcStart, int fcEnd, byte[] grpprl) 35 { 36 _fcStart = fcStart; 37 _fcEnd = fcEnd; 38 _grpprl = grpprl; 39 } 40 public int getStart() 41 { 42 return _fcStart; 43 } 44 public int getEnd() 45 { 46 return _fcEnd; 47 } 48 protected byte[] getGrpprl() 49 { 50 return _grpprl; 51 } 52 public int compareTo(Object o) 53 { 54 int fcStart = ((PropertyNode)o).getStart(); 55 if(_fcStart == fcStart) 56 { 57 return 0; 58 } 59 else if(_fcStart < fcStart) 60 { 61 return -1; 62 } 63 else 64 { 65 return 1; 66 } 67 } 68 } 69 | Popular Tags |