com.jaxfront.core.dom
Class NodeImporter

java.lang.Object
  extended by com.jaxfront.core.dom.NodeImporter

public class NodeImporter
extends java.lang.Object


Field Summary
static int ENUMERATION_MAPPING_STRATEGY_ADDCHILD
           
static int ENUMERATION_MAPPING_STRATEGY_APPEND
           
static int ENUMERATION_MAPPING_STRATEGY_INSERTAFTER
           
static int ENUMERATION_MAPPING_STRATEGY_INSERTBEFORE
           
static int ENUMERATION_MAPPING_STRATEGY_REPLACE
           
 
Constructor Summary
NodeImporter()
           
 
Method Summary
static void doImport(org.w3c.dom.NodeList from, org.w3c.dom.Node to, int importStrategy, java.lang.String xsdPrefix)
           
static void doImport(org.w3c.dom.Node from, org.w3c.dom.Node to, int importStrategy, java.lang.String xsdPrefix)
           
static org.w3c.dom.Node getNode(java.util.List<org.w3c.dom.Node> from, java.lang.String glue, java.lang.String key)
           
static org.w3c.dom.Node importNodeToDom(org.w3c.dom.Document ownerDoc, org.w3c.dom.Node from, java.lang.String xsdPrefix)
           
static org.w3c.dom.Node importNodeToDom(org.w3c.dom.Node from, org.w3c.dom.Node to, java.lang.String xsdPrefix)
           
static org.w3c.dom.Node importReferencedNode(org.w3c.dom.Document ownerDoc, org.w3c.dom.Node fromNode)
           
static org.w3c.dom.Node importReferencedNode(org.w3c.dom.Node toNode, org.w3c.dom.Node fromNode)
           
static org.w3c.dom.Document injectXMLData(org.w3c.dom.Document toDocument, org.w3c.dom.Document fromDocument, java.lang.String toXPath, java.lang.String fromXPath, int strategy)
           
static org.w3c.dom.Document mergeXML(org.w3c.dom.Document toDocument, org.w3c.dom.Document fromDocument, java.lang.String toXPath, java.lang.String fromXPath, int strategy, java.lang.String glue, org.w3c.dom.Node insertTarget)
           
static void updatePrefix(org.w3c.dom.Node importNode, java.lang.String prefix)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENUMERATION_MAPPING_STRATEGY_ADDCHILD

public static final int ENUMERATION_MAPPING_STRATEGY_ADDCHILD
See Also:
Constant Field Values

ENUMERATION_MAPPING_STRATEGY_APPEND

public static final int ENUMERATION_MAPPING_STRATEGY_APPEND
See Also:
Constant Field Values

ENUMERATION_MAPPING_STRATEGY_INSERTAFTER

public static final int ENUMERATION_MAPPING_STRATEGY_INSERTAFTER
See Also:
Constant Field Values

ENUMERATION_MAPPING_STRATEGY_INSERTBEFORE

public static final int ENUMERATION_MAPPING_STRATEGY_INSERTBEFORE
See Also:
Constant Field Values

ENUMERATION_MAPPING_STRATEGY_REPLACE

public static final int ENUMERATION_MAPPING_STRATEGY_REPLACE
See Also:
Constant Field Values
Constructor Detail

NodeImporter

public NodeImporter()
Method Detail

doImport

public static void doImport(org.w3c.dom.NodeList from,
                            org.w3c.dom.Node to,
                            int importStrategy,
                            java.lang.String xsdPrefix)

doImport

public static void doImport(org.w3c.dom.Node from,
                            org.w3c.dom.Node to,
                            int importStrategy,
                            java.lang.String xsdPrefix)

getNode

public static org.w3c.dom.Node getNode(java.util.List<org.w3c.dom.Node> from,
                                       java.lang.String glue,
                                       java.lang.String key)

importNodeToDom

public static org.w3c.dom.Node importNodeToDom(org.w3c.dom.Document ownerDoc,
                                               org.w3c.dom.Node from,
                                               java.lang.String xsdPrefix)

importNodeToDom

public static org.w3c.dom.Node importNodeToDom(org.w3c.dom.Node from,
                                               org.w3c.dom.Node to,
                                               java.lang.String xsdPrefix)

importReferencedNode

public static org.w3c.dom.Node importReferencedNode(org.w3c.dom.Document ownerDoc,
                                                    org.w3c.dom.Node fromNode)

importReferencedNode

public static org.w3c.dom.Node importReferencedNode(org.w3c.dom.Node toNode,
                                                    org.w3c.dom.Node fromNode)

injectXMLData

public static org.w3c.dom.Document injectXMLData(org.w3c.dom.Document toDocument,
                                                 org.w3c.dom.Document fromDocument,
                                                 java.lang.String toXPath,
                                                 java.lang.String fromXPath,
                                                 int strategy)

mergeXML

public static org.w3c.dom.Document mergeXML(org.w3c.dom.Document toDocument,
                                            org.w3c.dom.Document fromDocument,
                                            java.lang.String toXPath,
                                            java.lang.String fromXPath,
                                            int strategy,
                                            java.lang.String glue,
                                            org.w3c.dom.Node insertTarget)

updatePrefix

public static void updatePrefix(org.w3c.dom.Node importNode,
                                java.lang.String prefix)