abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1371965 - /abdera/java/branches/axiom-upgrade/parser/src/main/java/org/apache/abdera/parser/stax/FOMBuilder.java
Date Sat, 11 Aug 2012 14:49:03 GMT
Author: veithen
Date: Sat Aug 11 14:49:03 2012
New Revision: 1371965

URL: http://svn.apache.org/viewvc?rev=1371965&view=rev
Log:
No need to override createOMElement. The method in the base class now calls constructNode
and we override that method.

Modified:
    abdera/java/branches/axiom-upgrade/parser/src/main/java/org/apache/abdera/parser/stax/FOMBuilder.java

Modified: abdera/java/branches/axiom-upgrade/parser/src/main/java/org/apache/abdera/parser/stax/FOMBuilder.java
URL: http://svn.apache.org/viewvc/abdera/java/branches/axiom-upgrade/parser/src/main/java/org/apache/abdera/parser/stax/FOMBuilder.java?rev=1371965&r1=1371964&r2=1371965&view=diff
==============================================================================
--- abdera/java/branches/axiom-upgrade/parser/src/main/java/org/apache/abdera/parser/stax/FOMBuilder.java
(original)
+++ abdera/java/branches/axiom-upgrade/parser/src/main/java/org/apache/abdera/parser/stax/FOMBuilder.java
Sat Aug 11 14:49:03 2012
@@ -79,26 +79,6 @@ public class FOMBuilder extends StAXOMBu
         return parserOptions;
     }
 
-    @Override
-    protected OMNode createOMElement() throws OMException {
-        OMElement node;
-        String elementName = parser.getLocalName();
-        if (lastNode == null) {
-            node = constructNode(null, elementName);
-        } else if (lastNode.isComplete()) {
-            node = constructNode((OMContainer)lastNode.getParent(), elementName);
-            ((OMNodeEx)lastNode).setNextOMSibling(node);
-            ((OMNodeEx)node).setPreviousOMSibling(lastNode);
-        } else {
-            OMElement e = (OMElement)lastNode;
-            node = constructNode((OMElement)lastNode, elementName);
-            ((OMContainerEx)e).setFirstChild(node);
-        }
-        this.processNamespaceData(node);
-        processAttributes(node);
-        return node;
-    }
-
     protected Text.Type getTextType() {
         Text.Type ttype = Text.Type.TEXT;
         String type = parser.getAttributeValue(null, LN_TYPE);
@@ -251,6 +231,7 @@ public class FOMBuilder extends StAXOMBu
         return alias != null ? alias : qname;
     }
 
+    @Override
     protected OMElement constructNode(OMContainer parent, String name) {
         OMElement element = null;
         if (!indoc) {



Mime
View raw message