ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1698432 - in /webservices/axiom/trunk: aspects/core-aspects/src/main/java/org/apache/axiom/core/ implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/
Date Fri, 28 Aug 2015 22:55:00 GMT
Author: veithen
Date: Fri Aug 28 22:55:00 2015
New Revision: 1698432

URL: http://svn.apache.org/r1698432
Log:
Use the cloning infrastructure in the core model for a larger set of node types.

Modified:
    webservices/axiom/trunk/aspects/core-aspects/src/main/java/org/apache/axiom/core/CoreCommentSupport.aj
    webservices/axiom/trunk/aspects/core-aspects/src/main/java/org/apache/axiom/core/CoreDocumentTypeDeclarationSupport.aj
    webservices/axiom/trunk/aspects/core-aspects/src/main/java/org/apache/axiom/core/CoreEntityReferenceSupport.aj
    webservices/axiom/trunk/aspects/core-aspects/src/main/java/org/apache/axiom/core/CoreProcessingInstructionSupport.aj
    webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ChildNode.java
    webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/CommentImpl.java
    webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentTypeImpl.java
    webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/EntityReferenceImpl.java
    webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ProcessingInstructionImpl.java
    webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/TextNodeImpl.java
    webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMCommentImpl.java
    webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocTypeImpl.java
    webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMEntityReferenceImpl.java
    webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMLeafNode.java
    webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMProcessingInstructionImpl.java
    webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMTextImpl.java

Modified: webservices/axiom/trunk/aspects/core-aspects/src/main/java/org/apache/axiom/core/CoreCommentSupport.aj
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/core-aspects/src/main/java/org/apache/axiom/core/CoreCommentSupport.aj?rev=1698432&r1=1698431&r2=1698432&view=diff
==============================================================================
--- webservices/axiom/trunk/aspects/core-aspects/src/main/java/org/apache/axiom/core/CoreCommentSupport.aj
(original)
+++ webservices/axiom/trunk/aspects/core-aspects/src/main/java/org/apache/axiom/core/CoreCommentSupport.aj
Fri Aug 28 22:55:00 2015
@@ -24,7 +24,6 @@ public aspect CoreCommentSupport {
     }
     
     public final CoreNode CoreComment.shallowClone(ClonePolicy policy, Object options) {
-        // TODO
-        throw new UnsupportedOperationException();
+        return coreGetNodeFactory().createComment();
     }
 }

Modified: webservices/axiom/trunk/aspects/core-aspects/src/main/java/org/apache/axiom/core/CoreDocumentTypeDeclarationSupport.aj
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/core-aspects/src/main/java/org/apache/axiom/core/CoreDocumentTypeDeclarationSupport.aj?rev=1698432&r1=1698431&r2=1698432&view=diff
==============================================================================
--- webservices/axiom/trunk/aspects/core-aspects/src/main/java/org/apache/axiom/core/CoreDocumentTypeDeclarationSupport.aj
(original)
+++ webservices/axiom/trunk/aspects/core-aspects/src/main/java/org/apache/axiom/core/CoreDocumentTypeDeclarationSupport.aj
Fri Aug 28 22:55:00 2015
@@ -61,7 +61,11 @@ public aspect CoreDocumentTypeDeclaratio
     }
     
     public final CoreNode CoreDocumentTypeDeclaration.shallowClone(ClonePolicy policy, Object
options) {
-        // TODO
-        throw new UnsupportedOperationException();
+        CoreDocumentTypeDeclaration clone = coreGetNodeFactory().createDocumentTypeDeclaration();
+        clone.coreSetRootName(coreGetRootName());
+        clone.coreSetPublicId(coreGetPublicId());
+        clone.coreSetSystemId(coreGetSystemId());
+        clone.coreSetInternalSubset(coreGetInternalSubset());
+        return clone;
     }
 }

Modified: webservices/axiom/trunk/aspects/core-aspects/src/main/java/org/apache/axiom/core/CoreEntityReferenceSupport.aj
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/core-aspects/src/main/java/org/apache/axiom/core/CoreEntityReferenceSupport.aj?rev=1698432&r1=1698431&r2=1698432&view=diff
==============================================================================
--- webservices/axiom/trunk/aspects/core-aspects/src/main/java/org/apache/axiom/core/CoreEntityReferenceSupport.aj
(original)
+++ webservices/axiom/trunk/aspects/core-aspects/src/main/java/org/apache/axiom/core/CoreEntityReferenceSupport.aj
Fri Aug 28 22:55:00 2015
@@ -43,7 +43,9 @@ public aspect CoreEntityReferenceSupport
     }
     
     public final CoreNode CoreEntityReference.shallowClone(ClonePolicy policy, Object options)
{
-        // TODO
-        throw new UnsupportedOperationException();
+        CoreEntityReference clone = coreGetNodeFactory().createEntityReference();
+        clone.coreSetName(coreGetName());
+        clone.coreSetReplacementText(coreGetReplacementText());
+        return clone;
     }
 }

Modified: webservices/axiom/trunk/aspects/core-aspects/src/main/java/org/apache/axiom/core/CoreProcessingInstructionSupport.aj
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/aspects/core-aspects/src/main/java/org/apache/axiom/core/CoreProcessingInstructionSupport.aj?rev=1698432&r1=1698431&r2=1698432&view=diff
==============================================================================
--- webservices/axiom/trunk/aspects/core-aspects/src/main/java/org/apache/axiom/core/CoreProcessingInstructionSupport.aj
(original)
+++ webservices/axiom/trunk/aspects/core-aspects/src/main/java/org/apache/axiom/core/CoreProcessingInstructionSupport.aj
Fri Aug 28 22:55:00 2015
@@ -34,7 +34,8 @@ public aspect CoreProcessingInstructionS
     }
     
     public final CoreNode CoreProcessingInstruction.shallowClone(ClonePolicy policy, Object
options) {
-        // TODO
-        throw new UnsupportedOperationException();
+        CoreProcessingInstruction clone = coreGetNodeFactory().createProcessingInstruction();
+        clone.target = target;
+        return clone;
     }
 }

Modified: webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ChildNode.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ChildNode.java?rev=1698432&r1=1698431&r2=1698432&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ChildNode.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ChildNode.java
Fri Aug 28 22:55:00 2015
@@ -30,12 +30,6 @@ public abstract class ChildNode extends
     }
 
     final NodeImpl clone(OMCloneOptions options, ParentNode targetParent, ClonePolicy policy)
{
-        ChildNode clone = createClone(options);
-        if (targetParent != null) {
-            targetParent.coreAppendChild(clone, false);
-        }
-        return clone;
+        return (ChildNode)coreClone(policy, options, targetParent);
     }
-    
-    abstract ChildNode createClone(OMCloneOptions options);
 }

Modified: webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/CommentImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/CommentImpl.java?rev=1698432&r1=1698431&r2=1698432&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/CommentImpl.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/CommentImpl.java
Fri Aug 28 22:55:00 2015
@@ -20,8 +20,6 @@
 package org.apache.axiom.om.impl.dom;
 
 import org.apache.axiom.dom.DOMComment;
-import org.apache.axiom.dom.Policies;
-import org.apache.axiom.om.OMCloneOptions;
 import org.apache.axiom.om.OMFactory;
 import org.apache.axiom.om.impl.common.AxiomComment;
 
@@ -29,8 +27,4 @@ public class CommentImpl extends LeafNod
     public CommentImpl(OMFactory factory) {
         super(factory);
     }
-
-    ChildNode createClone(OMCloneOptions options) {
-        return (ChildNode)getOMFactory().createOMComment(null, getData());
-    }
 }

Modified: webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentTypeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentTypeImpl.java?rev=1698432&r1=1698431&r2=1698432&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentTypeImpl.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentTypeImpl.java
Fri Aug 28 22:55:00 2015
@@ -20,7 +20,6 @@
 package org.apache.axiom.om.impl.dom;
 
 import org.apache.axiom.dom.DOMDocumentType;
-import org.apache.axiom.om.OMCloneOptions;
 import org.apache.axiom.om.OMFactory;
 import org.apache.axiom.om.impl.common.AxiomDocType;
 
@@ -28,8 +27,4 @@ public class DocumentTypeImpl extends Le
     public DocumentTypeImpl(OMFactory factory) {
         super(factory);
     }
-
-    ChildNode createClone(OMCloneOptions options) {
-        return (ChildNode)getOMFactory().createOMDocType(null, coreGetRootName(), coreGetPublicId(),
coreGetSystemId(), coreGetInternalSubset());
-    }
 }

Modified: webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/EntityReferenceImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/EntityReferenceImpl.java?rev=1698432&r1=1698431&r2=1698432&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/EntityReferenceImpl.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/EntityReferenceImpl.java
Fri Aug 28 22:55:00 2015
@@ -19,17 +19,11 @@
 package org.apache.axiom.om.impl.dom;
 
 import org.apache.axiom.dom.DOMEntityReference;
-import org.apache.axiom.om.OMCloneOptions;
 import org.apache.axiom.om.OMFactory;
-import org.apache.axiom.om.impl.builder.OMFactoryEx;
 import org.apache.axiom.om.impl.common.AxiomEntityReference;
 
 public class EntityReferenceImpl extends ChildNode implements AxiomEntityReference, DOMEntityReference
{
     public EntityReferenceImpl(OMFactory factory) {
         super(factory);
     }
-
-    ChildNode createClone(OMCloneOptions options) {
-        return (ChildNode)((OMFactoryEx)getOMFactory()).createOMEntityReference(null, coreGetName(),
coreGetReplacementText(), false);
-    }
 }

Modified: webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ProcessingInstructionImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ProcessingInstructionImpl.java?rev=1698432&r1=1698431&r2=1698432&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ProcessingInstructionImpl.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/ProcessingInstructionImpl.java
Fri Aug 28 22:55:00 2015
@@ -20,7 +20,6 @@
 package org.apache.axiom.om.impl.dom;
 
 import org.apache.axiom.dom.DOMProcessingInstruction;
-import org.apache.axiom.om.OMCloneOptions;
 import org.apache.axiom.om.OMFactory;
 import org.apache.axiom.om.impl.common.AxiomProcessingInstruction;
 
@@ -28,8 +27,4 @@ public class ProcessingInstructionImpl e
     public ProcessingInstructionImpl(OMFactory factory) {
         super(factory);
     }
-
-    ChildNode createClone(OMCloneOptions options) {
-        return (ChildNode)getOMFactory().createOMProcessingInstruction(null, coreGetTarget(),
coreGetCharacterData().toString());
-    }
 }

Modified: webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/TextNodeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/TextNodeImpl.java?rev=1698432&r1=1698431&r2=1698432&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/TextNodeImpl.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/TextNodeImpl.java
Fri Aug 28 22:55:00 2015
@@ -22,8 +22,6 @@ package org.apache.axiom.om.impl.dom;
 import static org.apache.axiom.dom.DOMExceptionTranslator.newDOMException;
 
 import org.apache.axiom.dom.DOMTextNode;
-import org.apache.axiom.dom.Policies;
-import org.apache.axiom.om.OMCloneOptions;
 import org.apache.axiom.om.OMFactory;
 import org.apache.axiom.om.impl.common.AxiomText;
 import org.w3c.dom.DOMException;
@@ -82,8 +80,4 @@ public abstract class TextNodeImpl exten
         String value = getData();
         return value != null ? value : "";
     }
-
-    final ChildNode createClone(OMCloneOptions options) {
-        return (ChildNode)coreClone(Policies.DEEP_CLONE, options);
-    }
 }

Modified: webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMCommentImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMCommentImpl.java?rev=1698432&r1=1698431&r2=1698432&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMCommentImpl.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMCommentImpl.java
Fri Aug 28 22:55:00 2015
@@ -19,18 +19,11 @@
 
 package org.apache.axiom.om.impl.llom;
 
-import org.apache.axiom.om.OMCloneOptions;
 import org.apache.axiom.om.OMFactory;
-import org.apache.axiom.om.OMNode;
 import org.apache.axiom.om.impl.common.AxiomComment;
-import org.apache.axiom.om.impl.common.AxiomContainer;
 
 public class OMCommentImpl extends OMLeafNode implements AxiomComment {
     public OMCommentImpl(OMFactory factory) {
         super(factory);
     }
-
-    OMNode clone(OMCloneOptions options, AxiomContainer targetParent) {
-        return getOMFactory().createOMComment(targetParent, coreGetCharacterData().toString());
-    }
 }

Modified: webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocTypeImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocTypeImpl.java?rev=1698432&r1=1698431&r2=1698432&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocTypeImpl.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMDocTypeImpl.java
Fri Aug 28 22:55:00 2015
@@ -19,18 +19,11 @@
 
 package org.apache.axiom.om.impl.llom;
 
-import org.apache.axiom.om.OMCloneOptions;
 import org.apache.axiom.om.OMFactory;
-import org.apache.axiom.om.OMNode;
-import org.apache.axiom.om.impl.common.AxiomContainer;
 import org.apache.axiom.om.impl.common.AxiomDocType;
 
 public class OMDocTypeImpl extends OMLeafNode implements AxiomDocType {
     public OMDocTypeImpl(OMFactory factory) {
         super(factory);
     }
-
-    OMNode clone(OMCloneOptions options, AxiomContainer targetParent) {
-        return getOMFactory().createOMDocType(targetParent, coreGetRootName(), coreGetPublicId(),
coreGetSystemId(), coreGetInternalSubset());
-    }
 }

Modified: webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMEntityReferenceImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMEntityReferenceImpl.java?rev=1698432&r1=1698431&r2=1698432&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMEntityReferenceImpl.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMEntityReferenceImpl.java
Fri Aug 28 22:55:00 2015
@@ -18,19 +18,11 @@
  */
 package org.apache.axiom.om.impl.llom;
 
-import org.apache.axiom.om.OMCloneOptions;
 import org.apache.axiom.om.OMFactory;
-import org.apache.axiom.om.OMNode;
-import org.apache.axiom.om.impl.builder.OMFactoryEx;
-import org.apache.axiom.om.impl.common.AxiomContainer;
 import org.apache.axiom.om.impl.common.AxiomEntityReference;
 
 public class OMEntityReferenceImpl extends OMLeafNode implements AxiomEntityReference {
     public OMEntityReferenceImpl(OMFactory factory) {
         super(factory);
     }
-
-    OMNode clone(OMCloneOptions options, AxiomContainer targetParent) {
-        return ((OMFactoryEx)getOMFactory()).createOMEntityReference(targetParent, coreGetName(),
coreGetReplacementText(), false);
-    }
 }

Modified: webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMLeafNode.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMLeafNode.java?rev=1698432&r1=1698431&r2=1698432&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMLeafNode.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMLeafNode.java
Fri Aug 28 22:55:00 2015
@@ -18,11 +18,20 @@
  */
 package org.apache.axiom.om.impl.llom;
 
+import org.apache.axiom.om.OMCloneOptions;
 import org.apache.axiom.om.OMFactory;
+import org.apache.axiom.om.OMNode;
+import org.apache.axiom.om.impl.common.AxiomContainer;
 import org.apache.axiom.om.impl.common.AxiomLeafNode;
+import org.apache.axiom.om.impl.common.Policies;
+
 
 public abstract class OMLeafNode extends OMNodeImpl implements AxiomLeafNode {
     public OMLeafNode(OMFactory factory) {
         super(factory);
     }
+
+    OMNode clone(OMCloneOptions options, AxiomContainer targetParent) {
+        return (OMNode)coreClone(Policies.CLONE_POLICY, options, targetParent);
+    }
 }

Modified: webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMProcessingInstructionImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMProcessingInstructionImpl.java?rev=1698432&r1=1698431&r2=1698432&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMProcessingInstructionImpl.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMProcessingInstructionImpl.java
Fri Aug 28 22:55:00 2015
@@ -19,18 +19,11 @@
 
 package org.apache.axiom.om.impl.llom;
 
-import org.apache.axiom.om.OMCloneOptions;
 import org.apache.axiom.om.OMFactory;
-import org.apache.axiom.om.OMNode;
-import org.apache.axiom.om.impl.common.AxiomContainer;
 import org.apache.axiom.om.impl.common.AxiomProcessingInstruction;
 
 public class OMProcessingInstructionImpl extends OMLeafNode implements AxiomProcessingInstruction
{
     public OMProcessingInstructionImpl(OMFactory factory) {
         super(factory);
     }
-
-    OMNode clone(OMCloneOptions options, AxiomContainer targetParent) {
-        return getOMFactory().createOMProcessingInstruction(targetParent, coreGetTarget(),
coreGetCharacterData().toString());
-    }
 }

Modified: webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMTextImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMTextImpl.java?rev=1698432&r1=1698431&r2=1698432&view=diff
==============================================================================
--- webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMTextImpl.java
(original)
+++ webservices/axiom/trunk/implementations/axiom-impl/src/main/java/org/apache/axiom/om/impl/llom/OMTextImpl.java
Fri Aug 28 22:55:00 2015
@@ -19,20 +19,11 @@
 
 package org.apache.axiom.om.impl.llom;
 
-import org.apache.axiom.om.OMCloneOptions;
-import org.apache.axiom.om.OMConstants;
 import org.apache.axiom.om.OMFactory;
-import org.apache.axiom.om.OMNode;
-import org.apache.axiom.om.impl.common.AxiomContainer;
 import org.apache.axiom.om.impl.common.AxiomText;
-import org.apache.axiom.om.impl.common.Policies;
 
-public abstract class OMTextImpl extends OMLeafNode implements AxiomText, OMConstants {
+public abstract class OMTextImpl extends OMLeafNode implements AxiomText {
     public OMTextImpl(OMFactory factory) {
         super(factory);
     }
-
-    OMNode clone(OMCloneOptions options, AxiomContainer targetParent) {
-        return (OMNode)coreClone(Policies.CLONE_POLICY, options, targetParent);
-    }
 }



Mime
View raw message