You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by ch...@apache.org on 2006/09/06 20:33:33 UTC

svn commit: r440823 - /webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java

Author: chinthaka
Date: Wed Sep  6 11:33:33 2006
New Revision: 440823

URL: http://svn.apache.org/viewvc?view=rev&rev=440823
Log:
Reverting the changes done to OMSourceElementImpl as there is a funny test which tests whether it had overriden all the methods from the super class. Passing the ball to Dennis on this thru the mailing list

Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java?view=diff&rev=440823&r1=440822&r2=440823
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java Wed Sep  6 11:33:33 2006
@@ -386,6 +386,21 @@
         return super.getTextAsQName();
     }
 
+    /* (non-Javadoc)
+     * @see org.apache.axiom.om.OMElement#getLocalName()
+     */
+    public String getLocalName() {
+        // no need to set the parser, just call base method directly
+        return super.getLocalName();
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.axiom.om.OMElement#setLocalName(java.lang.String)
+     */
+    public void setLocalName(String localName) {
+        // no need to expand the tree, just call base method directly
+        super.setLocalName(localName);
+    }
 
     /* (non-Javadoc)
      * @see org.apache.axiom.om.OMElement#getNamespace()
@@ -419,7 +434,7 @@
         } else if (definedNamespace != null) {
             // always ignore prefix on name from sourced element
             return new QName(definedNamespace.getNamespaceURI(), getLocalName());
-            
+
         } else {
             return new QName(getLocalName());
         }
@@ -451,6 +466,22 @@
     }
 
     /* (non-Javadoc)
+     * @see org.apache.axiom.om.OMElement#setLineNumber(int)
+     */
+    public void setLineNumber(int lineNumber) {
+        // no need to expand the tree, just call base method directly
+        super.setLineNumber(lineNumber);
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.axiom.om.OMElement#getLineNumber()
+     */
+    public int getLineNumber() {
+        // no need to expand the tree, just call base method directly
+        return super.getLineNumber();
+    }
+
+    /* (non-Javadoc)
      * @see org.apache.axiom.om.OMNode#discard()
      */
     public void discard() throws OMException {
@@ -460,6 +491,14 @@
     }
 
     /* (non-Javadoc)
+     * @see org.apache.axiom.om.OMNode#getType()
+     */
+    public int getType() {
+        // no need to expand the tree, just call base method directly
+        return super.getType();
+    }
+
+    /* (non-Javadoc)
      * @see org.apache.axiom.om.OMNode#internalSerialize(javax.xml.stream.XMLStreamWriter)
      */
     public void internalSerialize(javax.xml.stream.XMLStreamWriter writer) throws XMLStreamException {
@@ -625,6 +664,14 @@
         OMNode result = super.detach();
         setComplete(complete);
         return result;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.axiom.om.impl.llom.OMElementImpl#getNextOMSibling()
+     */
+    public OMNode getNextOMSibling() throws OMException {
+        // no need to expand the tree, just call base method directly
+        return super.getNextOMSibling();
     }
 
     /* (non-Javadoc)



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org