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 12 package org.openbravo.xmlEngine; 13 14 import org.xml.sax.Attributes ; 15 16 class CharacterComponent implements XmlComponentTemplate, XmlComponentValue { 17 protected String character; 18 19 public CharacterComponent() {} 20 21 public CharacterComponent(String character) { 22 this.character = character; 23 } 24 25 public CharacterComponent(String name, Attributes amap) { 26 character = new String ("<" + name); 27 for (int i = 0; i < amap.getLength(); i++) { 28 String attname = amap.getQName(i); 29 String value = amap.getValue(i); 30 character = character + " " + attname + "=\"" + value +"\""; 31 } 32 character = character + ">"; 33 } 34 35 public String print() { 36 return character; 37 } 38 public String printPrevious() { 39 return character; 40 } 41 42 public String printSimple() { 43 return character; 44 } 45 46 public String printPreviousSimple() { 47 return character; 48 } 49 50 public XmlComponentValue createXmlComponentValue(XmlDocument xmlDocument) { 51 return this; } 53 54 } 55
| Popular Tags
|