com.intel.gpe.util.xml
Class JXMLUtil

java.lang.Object
  extended by com.intel.gpe.util.xml.JXMLUtil

public class JXMLUtil
extends java.lang.Object

The utility class for creating XML nodes from String templates.

Version:
$Id: JXMLUtil.java,v 1.2 2006/04/27 11:50:58 lukichev Exp $
Author:
Alexander Lukichev

Constructor Summary
JXMLUtil()
           
 
Method Summary
static org.w3c.dom.Node createNode(org.w3c.dom.Document doc, com.intel.gpe.util.xml.Namespaces namespaces, java.lang.String template, java.util.Map<java.lang.String,java.lang.String> values)
          Create an XML node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JXMLUtil

public JXMLUtil()
Method Detail

createNode

public static org.w3c.dom.Node createNode(org.w3c.dom.Document doc,
                                          com.intel.gpe.util.xml.Namespaces namespaces,
                                          java.lang.String template,
                                          java.util.Map<java.lang.String,java.lang.String> values)
                                   throws java.io.IOException,
                                          org.jdom.JDOMException
Create an XML node. The node is created from the string template. The template may contain arguments for substitution. They have the form @@name.

Parameters:
doc - - the DOM document that will own the created element
namespaces - - the declared namespace prefixes
template - - the template to create the element from
values - - the values of arguments
Returns:
the created element
Throws:
java.io.IOException
org.jdom.JDOMException


Copyright © 2008. All Rights Reserved.