1 19 20 package jxl.read.biff; 21 22 import common.Assert; 23 24 28 public class DataValidation 29 { 30 33 private DataValidityListRecord validityList; 34 35 38 private DataValiditySettingsRecord[] validitySettings; 39 40 43 private int pos; 44 45 48 DataValidation(DataValidityListRecord dvlr) 49 { 50 validityList = dvlr; 51 validitySettings = 52 new DataValiditySettingsRecord[validityList.getNumberOfSettings()]; 53 pos = 0; 54 } 55 56 59 void add(DataValiditySettingsRecord dvsr) 60 { 61 Assert.verify(pos < validitySettings.length); 62 63 validitySettings[pos] = dvsr; 64 pos++; 65 } 66 67 70 public DataValidityListRecord getDataValidityList() 71 { 72 return validityList; 73 } 74 75 78 public DataValiditySettingsRecord[] getDataValiditySettings() 79 { 80 return validitySettings; 81 } 82 83 } 84 | Popular Tags |