1 17 18 19 20 package org.apache.lenya.lucene; 21 22 import java.util.StringTokenizer ; 23 24 27 public class Publication { 28 public String id = null; 29 public String name = null; 30 public String indexDir = null; 31 public String searchFields = null; 32 public String excerptDir = null; 33 public String prefix = null; 34 35 38 public String [] getFields() { 39 String [] fields = null; 40 if (searchFields != null) { 41 StringTokenizer st = new StringTokenizer (searchFields, ","); 42 int length = st.countTokens(); 43 fields = new String [length]; 44 for (int i = 0; i < length; i++) { 45 fields[i] = st.nextToken(); 46 } 47 } 48 return fields; 49 } 50 } 51 | Popular Tags |