|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.om.util.CopyUtils
public class CopyUtils
CopyUtils provides static utility methods that are useful for creating a copy of an OM/SOAPEnvelope tree. During the expansion, the Source tree retains its shape (OMSourcedElement nodes are not expanded). The Target tree has nodes that retain the class identity of the source node. For example, a SOAPFault in the source tree will have a SOAPFault in the target tree.
Constructor Summary | |
---|---|
private |
CopyUtils()
Private Constructor |
Method Summary | |
---|---|
static SOAPEnvelope |
copy(SOAPEnvelope sourceEnv)
Creates a copy of the source envelope. |
private static void |
copy(SOAPFactory factory,
OMContainer targetParent,
OMNode sourceNode)
Create a copy of the sourceNode and attach it to the targetParent |
private static void |
copyFaultData(SOAPFactory factory,
SOAPFault targetFault,
OMNode sourceNode)
Copy the source Node, which is a child fo a SOAPFault, to the target SOAPFault |
private static void |
copyOMComment(SOAPFactory factory,
OMContainer targetParent,
OMComment sourceComment)
Create a copy of the source OMComment |
private static void |
copyOMElement(SOAPFactory factory,
OMContainer targetParent,
OMElement sourceElement)
Create a copy of an ordinary OMElement |
private static void |
copyOMSourcedElement(SOAPFactory factory,
OMContainer targetParent,
OMSourcedElement sourceOMSE)
Create a copy of the OMSourcedElement |
private static void |
copyOMText(SOAPFactory factory,
OMContainer targetParent,
OMText sourceText)
Create a copy of the OM Text |
private static void |
copySOAPFault(SOAPFactory factory,
OMContainer targetParent,
SOAPFault sourceSOAPFault)
Create a copy of a SOAPFault |
private static void |
copySOAPFaultCode(SOAPFactory factory,
SOAPFault targetFault,
SOAPFaultCode sourceCode)
Copy the SOAPFaultCode tree |
private static void |
copySOAPFaultDetail(SOAPFactory factory,
SOAPFault targetFault,
SOAPFaultDetail sourceDetail)
Create a copy of a SOAPFaultDetail |
private static void |
copySOAPFaultNode(SOAPFactory factory,
SOAPFault targetFault,
SOAPFaultNode sourceNode)
Create a copy of a SOAPFaultNode |
private static void |
copySOAPFaultReason(SOAPFactory factory,
SOAPFault targetFault,
SOAPFaultReason sourceReason)
Create a copy of the SOAPFaultReason |
private static void |
copySOAPFaultRole(SOAPFactory factory,
SOAPFault targetFault,
SOAPFaultRole sourceRole)
Create a copy of a SOAPFaultRole |
private static void |
copySOAPFaultSubCode(SOAPFactory factory,
OMElement targetParent,
SOAPFaultSubCode sourceSubCode)
Copy the SOAPFaultSubCode tree |
private static void |
copySOAPHeaderBlock_NoDataSource(SOAPFactory factory,
OMContainer targetParent,
SOAPHeaderBlock sourceSHB)
Create a copy of the SOAPHeaderBlock |
private static void |
copySOAPHeaderBlock(SOAPFactory factory,
OMContainer targetParent,
SOAPHeaderBlock sourceSHB)
Create a copy of the SOAPHeaderBlock |
private static void |
copySOAPHeaderBlockData(SOAPHeaderBlock sourceSHB,
SOAPHeaderBlock targetSHB)
Copy Header data (currently only the processed flag) from the source SOAPHeaderBlock to the target SOAPHeaderBlock |
private static void |
copyTagData(OMElement sourceElement,
OMElement targetElement)
Copy the tag data (attributes and namespaces) from the source element to the target element. |
static void |
reader2writer(javax.xml.stream.XMLStreamReader reader,
javax.xml.stream.XMLStreamWriter writer)
Simple utility that takes an XMLStreamReader and writes it to an XMLStreamWriter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private CopyUtils()
Method Detail |
---|
public static SOAPEnvelope copy(SOAPEnvelope sourceEnv)
sourceEnv
-
public static void reader2writer(javax.xml.stream.XMLStreamReader reader, javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
reader
- writer
-
javax.xml.stream.XMLStreamException
private static void copy(SOAPFactory factory, OMContainer targetParent, OMNode sourceNode)
factory
- OMFactorytargetParent
- sourceNode
- private static void copyOMComment(SOAPFactory factory, OMContainer targetParent, OMComment sourceComment)
factory
- targetParent
- sourceComment
- private static void copyOMText(SOAPFactory factory, OMContainer targetParent, OMText sourceText)
factory
- targetParent
- sourceText
- private static void copyOMElement(SOAPFactory factory, OMContainer targetParent, OMElement sourceElement)
factory
- targetParent
- sourceElement
- private static void copyOMSourcedElement(SOAPFactory factory, OMContainer targetParent, OMSourcedElement sourceOMSE)
factory
- targetParent
- sourceOMSE
- private static void copySOAPHeaderBlock(SOAPFactory factory, OMContainer targetParent, SOAPHeaderBlock sourceSHB)
factory
- targetParent
- sourceSHB
- private static void copySOAPHeaderBlock_NoDataSource(SOAPFactory factory, OMContainer targetParent, SOAPHeaderBlock sourceSHB)
factory
- targetParent
- sourceSHB
- private static void copySOAPFault(SOAPFactory factory, OMContainer targetParent, SOAPFault sourceSOAPFault)
factory
- targetParent
- sourceSOAPFault
- private static void copyFaultData(SOAPFactory factory, SOAPFault targetFault, OMNode sourceNode)
factory
- targetFault
- sourceNode
- private static void copySOAPFaultRole(SOAPFactory factory, SOAPFault targetFault, SOAPFaultRole sourceRole)
factory
- targetFault
- sourceRole
- private static void copySOAPFaultNode(SOAPFactory factory, SOAPFault targetFault, SOAPFaultNode sourceNode)
factory
- targetFault
- sourceNode
- private static void copySOAPFaultDetail(SOAPFactory factory, SOAPFault targetFault, SOAPFaultDetail sourceDetail)
factory
- targetFault
- sourceDetail
- private static void copySOAPFaultReason(SOAPFactory factory, SOAPFault targetFault, SOAPFaultReason sourceReason)
factory
- targetFault
- sourceReason
- private static void copySOAPFaultCode(SOAPFactory factory, SOAPFault targetFault, SOAPFaultCode sourceCode)
factory
- targetFault
- sourceCode
- private static void copySOAPFaultSubCode(SOAPFactory factory, OMElement targetParent, SOAPFaultSubCode sourceSubCode)
factory
- targetParent
- (SOAPFaultCode or SOAPFaultSubCode)sourceSubCode
- private static void copyTagData(OMElement sourceElement, OMElement targetElement)
sourceElement
- targetElement
- private static void copySOAPHeaderBlockData(SOAPHeaderBlock sourceSHB, SOAPHeaderBlock targetSHB)
sourceSHB
- targetSHB
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |