]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Added XMLEvent(int,String,XMLNamespaces) constructor.
authorPeter Bernard West <pbwest@apache.org>
Thu, 24 Oct 2002 14:34:31 +0000 (14:34 +0000)
committerPeter Bernard West <pbwest@apache.org>
Thu, 24 Oct 2002 14:34:31 +0000 (14:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@195354 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/xml/XMLEvent.java

index 2fb35e134ce340e8b372ee5028eca94eb5603d91..4b1963c2715a2fa8bb7f48522112d5deb08b679f 100644 (file)
@@ -107,6 +107,12 @@ public class XMLEvent {
         namespaces = ev.namespaces;
     }
 
+    public XMLEvent(int type, String chars, XMLNamespaces namespaces) {
+        this.type = type;
+        this.chars = chars;
+        this.namespaces = namespaces;
+    }
+
     public int getType() { return type; }
     public void setType(int type) {
         if (type < MIN_XML_EV_TYPE || type > MAX_XML_EV_TYPE) {
@@ -117,9 +123,11 @@ public class XMLEvent {
     }
 
     public String getChars() { return chars; }
+
     public void setChars(String chars) {
         this.chars = chars;
     }
+
     public void setChars(char[] ch, int start, int length) {
         chars = new String(ch, start, length);
     }