1 16 17 package org.apache.taglibs.scrape; 18 19 import java.util.*; 20 21 31 public class ScrapeData { 32 33 36 private boolean stripflag = false; 37 41 private boolean anchorsflag = false; 42 45 private String begin = new String (); 46 49 private String end = new String (); 50 53 private StringBuffer result = new StringBuffer (""); 54 55 59 public ScrapeData() {} 60 61 67 public final boolean getstripFlag() { 68 return stripflag; 69 } 70 71 77 public final void setstripFlag(String notags) { 78 if (notags.equalsIgnoreCase("true")) 79 stripflag = true; 80 else 81 stripflag = false; 82 } 83 84 90 public final boolean getanchorsFlag() { 91 return anchorsflag; 92 } 93 94 100 public final void setanchorsFlag(String markers) { 101 if (markers.equalsIgnoreCase("true")) 102 anchorsflag = true; 103 else 104 anchorsflag = false; 105 } 106 107 113 public final void setBegin(String begin) { 114 this.begin = begin; 115 } 116 117 123 public final String getBegin() { 124 return begin; 125 } 126 127 132 public final void setEnd(String end) { 133 this.end = end; 134 } 135 136 142 public final String getEnd() { 143 return end; 144 } 145 146 152 public final void setResult(String result) { 153 this.result.setLength(0); this.result.append(result); 155 } 156 157 163 public final String getResult() { 164 return result.toString(); 165 } 166 } 167 | Popular Tags |