SheetTDUtil.java 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /**
  2. * @(#)file SheetTDUtil.java
  3. * @(#)author [개발자명]
  4. * @(#)version 1.0
  5. * @(#)date May 10, 2007
  6. * @(#)since JDK 1.4.2
  7. *
  8. * Copyright (c) www.hwenc.co.kr, Inc.
  9. * All rights reserved.
  10. * This software is the proprietary information of Hanwha E&C, Inc.
  11. */
  12. package kr.co.udapsoft.common.sheet;
  13. import kr.co.udapsoft.common.sheet.SheetTD;
  14. public class SheetTDUtil {
  15. private SheetTDUtil() {
  16. }
  17. /**
  18. * SheetTD.isBlankValue 값을 Array 구간으로 세팅
  19. * @param sheetTDs
  20. * @param isBlankValue
  21. * @param startIndex
  22. * @param endIndex
  23. */
  24. public static void setIsBlankValue(SheetTD[] sheetTDs, boolean isBlankValue, int startIndex, int endIndex) {
  25. for( int i = startIndex ; i < endIndex ; i++ ) {
  26. sheetTDs[i].isBlankValue = isBlankValue;
  27. }
  28. }
  29. /**
  30. * SheetTD.rowSetColumnIndex 값을 Array 구간으로 세팅
  31. * @param sheetTDs
  32. * @param startColumnIndex
  33. * @param startIndex
  34. * @param endIndex
  35. */
  36. public static void setRowSetColumnIndex(SheetTD[] sheetTDs, int startColumnIndex, int startIndex, int endIndex) {
  37. for( int i = startIndex ; i < endIndex ; i++ ) {
  38. sheetTDs[i].rowSetColumnIndex = startColumnIndex++;
  39. }
  40. }
  41. /**
  42. * SheetTD.rowSetKey 값을 Array 구간으로 세팅
  43. * @param sheetTDs
  44. * @param rowSetKey
  45. * @param startIndex
  46. * @param endIndex
  47. */
  48. public static void setRowSetKey(SheetTD[] sheetTDs, String rowSetKey, int startIndex, int endIndex) {
  49. for( int i = startIndex ; i < endIndex ; i++ ) {
  50. sheetTDs[i].rowSetKey = rowSetKey;
  51. }
  52. }
  53. /**
  54. * SheetTD.Attribute 값을 Array 구간으로 세팅
  55. * @param sheetTDs
  56. * @param key
  57. * @param value
  58. * @param startIndex
  59. * @param endIndex
  60. */
  61. public static void setAttribute(SheetTD[] sheetTDs, String key, String value, int startIndex, int endIndex) {
  62. for( int i = startIndex ; i < endIndex ; i++ ) {
  63. sheetTDs[i].setAttribute(key, value);
  64. }
  65. }
  66. }