Changeset 1852 for MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/internal/Cache.java
- Timestamp:
- 04/04/12 08:38:32 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MDService2/branches/MDService_simple3/src/eu/clarin/cmdi/mdservice/internal/Cache.java
r1654 r1852 150 150 } 151 151 if (key_array.length > 2){ 152 e.setAttribute("collection", key_array[2]); 152 e.setAttribute("operation", key_array[2]); 153 }else{ 154 e.setAttribute("operation", ""); 155 } 156 if (key_array.length > 3){ 157 e.setAttribute("collection", key_array[3]); 153 158 }else{ 154 159 e.setAttribute("collection", ""); 155 160 } 156 if (key_array.length > 3){157 e.setAttribute("startItem", key_array[ 3]);161 if (key_array.length > 4){ 162 e.setAttribute("startItem", key_array[4]); 158 163 }else{ 159 164 e.setAttribute("startItem", ""); 160 165 } 161 if (key_array.length > 4){162 e.setAttribute("maximumItems", key_array[ 4]);166 if (key_array.length > 5){ 167 e.setAttribute("maximumItems", key_array[5]); 163 168 }else{ 164 169 e.setAttribute("maximumItems", ""); 165 170 } 166 171 167 if (key_array.length > 5){168 e.setAttribute("repository", key_array[ 5]);172 if (key_array.length > 6){ 173 e.setAttribute("repository", key_array[6]); 169 174 }else{ 170 175 e.setAttribute("repository", ""); 171 176 } 172 if (key_array.length > 6){173 e.setAttribute("maxDepth", key_array[ 6]);177 if (key_array.length > 7){ 178 e.setAttribute("maxDepth", key_array[7]); 174 179 }else{ 175 180 e.setAttribute("maxDepth", ""); 176 181 } 177 if (key_array.length > 7){178 e.setAttribute("lang", key_array[ 7]);182 if (key_array.length > 8){ 183 e.setAttribute("lang", key_array[8]); 179 184 }else{ 180 185 e.setAttribute("lang", ""); 181 186 } 182 if (key_array.length > 8){183 e.setAttribute("duration", key_array[ 8]);187 if (key_array.length > 9){ 188 e.setAttribute("duration", key_array[9]); 184 189 }else{ 185 190 e.setAttribute("duration", ""); … … 270 275 271 276 if (key_array.length > 2){ 272 xpath_expr = xpath_expr + "and @collection='"+key_array[2]+"'"; 277 xpath_expr = xpath_expr + "and @operation='"+key_array[2]+"'"; 278 }else{ 279 xpath_expr = xpath_expr + " and @operation=''"; 280 } 281 282 if (key_array.length > 3){ 283 xpath_expr = xpath_expr + "and @collection='"+key_array[3]+"'"; 273 284 }else{ 274 285 xpath_expr = xpath_expr + " and @collection=''"; 275 286 } 276 if (key_array.length > 3){277 xpath_expr = xpath_expr + "and @startItem='"+key_array[ 3]+"'";287 if (key_array.length > 4){ 288 xpath_expr = xpath_expr + "and @startItem='"+key_array[4]+"'"; 278 289 }else{ 279 290 xpath_expr = xpath_expr + " and @startItem=''"; 280 291 } 281 if (key_array.length > 4){282 xpath_expr = xpath_expr + "and @maximumItems='"+key_array[ 4]+"'";292 if (key_array.length > 5){ 293 xpath_expr = xpath_expr + "and @maximumItems='"+key_array[5]+"'"; 283 294 }else{ 284 295 xpath_expr = xpath_expr + " and @maximumItems=''"; 285 296 } 286 297 287 if (key_array.length > 5){288 xpath_expr = xpath_expr + "and @repository='"+key_array[ 5]+"'";298 if (key_array.length > 6){ 299 xpath_expr = xpath_expr + "and @repository='"+key_array[6]+"'"; 289 300 }else{ 290 301 xpath_expr = xpath_expr + " and @repository=''"; 291 302 } 292 if (key_array.length > 6){293 xpath_expr = xpath_expr + "and @maxDepth='"+key_array[ 6]+"'";303 if (key_array.length > 7){ 304 xpath_expr = xpath_expr + "and @maxDepth='"+key_array[7]+"'"; 294 305 }else{ 295 306 xpath_expr = xpath_expr + " and @maxDepth=''"; 296 307 } 297 if (key_array.length > 7){298 xpath_expr = xpath_expr + "and @lang='"+key_array[ 7]+"']";308 if (key_array.length > 8){ 309 xpath_expr = xpath_expr + "and @lang='"+key_array[8]+"']"; 299 310 }else{ 300 311 xpath_expr = xpath_expr + " and @lang='']";
Note: See TracChangeset
for help on using the changeset viewer.