1 58 package org.apache.ecs; 59 60 import java.io.OutputStream ; 61 import java.io.PrintWriter ; 62 63 70 public interface Element extends ElementRegistry 71 { 72 75 public static final int UPPERCASE = 1; 76 77 80 public static final int LOWERCASE = 2; 81 82 85 public static final int MIXEDCASE = 3; 86 87 91 public static final int CENTER = 4; 92 93 96 public static final int LEFT = 5; 97 98 101 public static final int RIGHT = 6; 102 103 106 public void setCase(int type); 107 108 111 public int getCase(); 112 113 116 public String getVersion(); 117 118 121 public void setElementType(String element_type); 122 123 126 public String getElementType(); 127 128 131 public void setNeedClosingTag(boolean close_tag); 132 133 136 public boolean getNeedClosingTag(); 137 138 141 public boolean getNeedLineBreak(); 142 143 146 public void setTagPosition(int position); 147 148 151 public int getTagPosition(); 152 153 156 public void setStartTagChar(char start_tag); 157 158 161 public char getStartTagChar(); 162 163 166 public void setEndTagChar(char end_tag); 167 168 171 public char getEndTagChar(); 172 173 176 public Element setBeginStartModifier(char start_modifier); 177 178 181 public char getBeginStartModifier(); 182 183 186 public Element setBeginEndModifier(char start_modifier); 187 188 191 public char getBeginEndModifier(); 192 193 196 public Element setEndStartModifier(char start_modifier); 197 198 201 public char getEndStartModifier(); 202 203 206 public Element setEndEndModifier(char start_modifier); 207 208 211 public char getEndEndModifier(); 212 213 216 public Element setFilterState(boolean state); 217 218 221 public boolean getFilterState(); 222 223 226 public Element setPrettyPrint(boolean pretty_print); 227 228 231 public boolean getPrettyPrint(); 232 233 236 public void setTabLevel(int tabLevel); 237 238 241 242 public int getTabLevel(); 243 244 247 public void output(OutputStream out); 248 249 252 public void output(PrintWriter out); 253 254 } 255 | Popular Tags |