[ 
http://issues.apache.org/jira/browse/WSCOMMONS-90?page=comments#action_12433866 
] 
            
Ruchith Udayanga Fernando commented on WSCOMMONS-90:
----------------------------------------------------

Looking at the DOM interfaces we have an importNode() method in the DOM 
Document where each impl can traverse the given node using the DOM interfaces 
and create the new node of that particular Document. That's why I originally 
suggested providing the method in the interface for each AXIOM impl to 
implement sicking to the same paradigm.

But ... I certainly like the approach you suggested and it certainly can be 
*generic across all AXIOM impls* where simply use the pull parser from one node 
and use the new factory to create the element with the StAXOMBuilder. Therefore 
it certainly can be included as a utility method.

So where can we put this method? :-)

Thanks,
Ruchith





> Add importNode(OMNode) method into OMFactory
> --------------------------------------------
>
>                 Key: WSCOMMONS-90
>                 URL: http://issues.apache.org/jira/browse/WSCOMMONS-90
>             Project: WS-Commons
>          Issue Type: Improvement
>          Components: AXIOM
>            Reporter: Ruchith Udayanga Fernando
>            Priority: Blocker
>
> We need to be able to import a node from one OM implementation to another OM 
> implementation. Since an AXIOM object structure must only contain objects 
> from *one* OMFactory.
> Proposed solution:
> Add the following method to OMFactory interface.
> /**
>  * Import the given node as a node of this factory.
>  * @param node The Input node.
>  * @return New node that is created with this factory.
>  */
> public OMNode importNode(OMNode node) ;

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Reply via email to