Author: ajith
Date: Sun Jun 18 21:04:40 2006
New Revision: 415237

URL: http://svn.apache.org/viewvc?rev=415237&view=rev
Log:
1.Added a new constructor to the OMSourcedElementImpl.java for convenient.Now 
an OMSourcedElementImpl.java can be constructed using the QName 

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

Modified: 
webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java?rev=415237&r1=415236&r2=415237&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/src/org/apache/axiom/om/impl/llom/OMSourcedElementImpl.java
 Sun Jun 18 21:04:40 2006
@@ -80,6 +80,24 @@
         dataSource = source;
         definedNamespace = ns;
     }
+
+    /**
+     * Constructor that takes a QName instead of the
+     * local name and the namespace seperately
+     *
+     * @param QName
+     * @param factory
+     * @param source
+     */
+    public OMSourcedElementImpl(QName qName, OMFactory factory, OMDataSource 
source) {
+        //create a namespace
+        this(qName.getLocalPart(),
+            factory.createOMNamespace(qName.getNamespaceURI(),
+                                      qName.getPrefix()),
+            factory,
+            source);
+
+    }
     
     /**
      * Generate element name for output.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to