Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 16 19 package org.apache.xalan.templates; 20 21 import java.text.DecimalFormatSymbols ; 22 23 import org.apache.xml.utils.QName; 24 25 46 public class DecimalFormatProperties extends ElemTemplateElement 47 { 48 49 51 DecimalFormatSymbols m_dfs; 52 53 57 public DecimalFormatProperties(int docOrderNumber) 58 { 59 60 m_dfs = new java.text.DecimalFormatSymbols (); 61 62 m_dfs.setInfinity(Constants.ATTRVAL_INFINITY); 64 m_dfs.setNaN(Constants.ATTRVAL_NAN); 65 66 m_docOrderNumber = docOrderNumber; 67 } 68 69 88 public DecimalFormatSymbols getDecimalFormatSymbols() 89 { 90 return m_dfs; 91 } 92 93 98 private QName m_qname = null; 99 100 107 public void setName(QName qname) 108 { 109 m_qname = qname; 110 } 111 112 119 public QName getName() 120 { 121 122 if (m_qname == null) 123 return new QName(""); 124 else 125 return m_qname; 126 } 127 128 135 public void setDecimalSeparator(char ds) 136 { 137 m_dfs.setDecimalSeparator(ds); 138 } 139 140 147 public char getDecimalSeparator() 148 { 149 return m_dfs.getDecimalSeparator(); 150 } 151 152 159 public void setGroupingSeparator(char gs) 160 { 161 m_dfs.setGroupingSeparator(gs); 162 } 163 164 171 public char getGroupingSeparator() 172 { 173 return m_dfs.getGroupingSeparator(); 174 } 175 176 183 public void setInfinity(String inf) 184 { 185 m_dfs.setInfinity(inf); 186 } 187 188 195 public String getInfinity() 196 { 197 return m_dfs.getInfinity(); 198 } 199 200 207 public void setMinusSign(char v) 208 { 209 m_dfs.setMinusSign(v); 210 } 211 212 219 public char getMinusSign() 220 { 221 return m_dfs.getMinusSign(); 222 } 223 224 231 public void setNaN(String v) 232 { 233 m_dfs.setNaN(v); 234 } 235 236 243 public String getNaN() 244 { 245 return m_dfs.getNaN(); 246 } 247 248 253 public String getNodeName() 254 { 255 return Constants.ELEMNAME_DECIMALFORMAT_STRING; 256 } 257 258 265 public void setPercent(char v) 266 { 267 m_dfs.setPercent(v); 268 } 269 270 277 public char getPercent() 278 { 279 return m_dfs.getPercent(); 280 } 281 282 289 public void setPerMille(char v) 290 { 291 m_dfs.setPerMill(v); 292 } 293 294 301 public char getPerMille() 302 { 303 return m_dfs.getPerMill(); 304 } 305 306 312 public int getXSLToken() 313 { 314 return Constants.ELEMNAME_DECIMALFORMAT; 315 } 316 317 324 public void setZeroDigit(char v) 325 { 326 m_dfs.setZeroDigit(v); 327 } 328 329 336 public char getZeroDigit() 337 { 338 return m_dfs.getZeroDigit(); 339 } 340 341 348 public void setDigit(char v) 349 { 350 m_dfs.setDigit(v); 351 } 352 353 360 public char getDigit() 361 { 362 return m_dfs.getDigit(); 363 } 364 365 373 public void setPatternSeparator(char v) 374 { 375 m_dfs.setPatternSeparator(v); 376 } 377 378 386 public char getPatternSeparator() 387 { 388 return m_dfs.getPatternSeparator(); 389 } 390 391 396 public void recompose(StylesheetRoot root) 397 { 398 root.recomposeDecimalFormats(this); 399 } 400 401 } 402
| Popular Tags
|