1 22 23 package org.xquark.mapper.storage; 24 25 import java.util.ArrayList ; 26 import java.util.List ; 27 28 import org.xquark.util.NamespaceContextStack; 29 30 34 public class VarBuildInfoSet implements VarInfoSet 35 { 36 private static final String RCSRevision = "$Revision: 1.1 $"; 37 private static final String RCSName = "$Name: $"; 38 private String tableName; 39 private String rankColumn; 40 private String firstColumn; 41 private String lastColumn; 42 private String pathColumn; 43 44 47 private ArrayList collapseColumnList = new ArrayList (1); 48 49 52 private ArrayList expandedPathList = new ArrayList (2); 53 54 55 public VarBuildInfoSet ( 56 String tableName, String rankColumn, 57 String firstColumn, String lastColumn, 58 String pathColumn 59 ) 60 { 61 this.tableName = tableName; 62 this.rankColumn = rankColumn; 63 this.firstColumn = firstColumn; 64 this.lastColumn = lastColumn; 65 this.pathColumn = pathColumn; 66 } 67 68 public String getTableName() {return tableName;} 69 public String getRankColumnName() {return rankColumn;} 70 public String getFirstColumnName() {return firstColumn;} 71 public String getLastColumnName() {return lastColumn;} 72 public String getPathColumnName() {return pathColumn;} 73 74 public String getPrefix(String namespaceURI) 75 { 76 return null; 77 } 78 79 public NamespaceContextStack getNamespaceContextStack() 80 { 81 return null; 82 } 83 84 public void setCollapse(boolean collapse) 85 { 86 if (collapse) 87 addCollapseColumn(firstColumn); 88 else 89 collapseColumnList.clear(); 90 } 91 92 public void addCollapseColumn(String columnName) 93 { 94 collapseColumnList.add(columnName); 95 } 96 97 public List getCollapseColumns() 98 { 99 return collapseColumnList; 100 } 101 102 public void addExpandedVar(ExpandedPathInfoSet rangeInfo) 103 { 104 expandedPathList.add(rangeInfo); 105 } 106 107 public List getExpandedPathList() 108 { 109 return expandedPathList; 110 } 111 112 } 113 | Popular Tags |