1 16 package org.apache.cocoon.components.search; 17 18 import org.xml.sax.Attributes ; 19 20 26 class IndexHelperField 27 { 28 String localFieldName; 29 String qualifiedFieldName; 30 StringBuffer text; 31 Attributes attributes; 32 33 34 42 IndexHelperField(String lfn, String qfn, Attributes atts) { 43 this.localFieldName = lfn; 44 this.qualifiedFieldName = qfn; 45 this.attributes = atts; 46 this.text = new StringBuffer (); 47 } 48 49 50 56 public String getLocalFieldName() { 57 return localFieldName; 58 } 59 60 61 67 public String getQualifiedFieldName() { 68 return qualifiedFieldName; 69 } 70 71 72 78 public Attributes getAttributes() { 79 return attributes; 80 } 81 82 83 89 public StringBuffer getText() { 90 return text; 91 } 92 93 94 100 public void appendText(String text) { 101 this.text.append(text); 102 } 103 104 105 113 public void appendText(char[] str, int offset, int length) { 114 this.text.append(str, offset, length); 115 } 116 } 117 118 | Popular Tags |