|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.adf.web.util.XMLUtil
public class XMLUtil
Utility methods for standard XML operations.
| Constructor Summary | |
|---|---|
XMLUtil()
|
|
| Method Summary | |
|---|---|
static org.w3c.dom.Element |
createCDATASection(org.w3c.dom.Document doc,
java.lang.String elementName,
java.lang.String cdata,
org.w3c.dom.Element parentElement)
Creates a new element within the XML document with the given elementName. |
static org.w3c.dom.Element |
createCDATASection(java.lang.String elementName,
java.lang.String cdata,
org.w3c.dom.Element parentElement)
Creates a new element within the owner XML document of the parentElement with the given elementName. |
static void |
createCommonElements(org.w3c.dom.Document doc,
org.w3c.dom.Element root,
javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
Creates the common elements "client" and "common-resources-registered" under this root element which are shared by all controls. |
static org.w3c.dom.Element |
createElement(org.w3c.dom.Document doc,
java.lang.String elementName,
java.lang.String elementValue,
org.w3c.dom.Element parentElement)
Creates a new element within the XML document with the given elementName. |
static org.w3c.dom.Element |
createElement(java.lang.String elementName,
java.lang.String elementValue,
org.w3c.dom.Element parentElement)
Creates a new element within the owner XML document of the parentElement with the given elementName. |
static java.lang.String |
getElementValue(java.lang.String elementName,
org.w3c.dom.Element parentElement)
|
static java.lang.String |
getValidStyleString(java.lang.String styleString)
|
static org.w3c.dom.Document |
newDocument()
Creates a new XML Document object. |
static java.lang.String |
transform(org.w3c.dom.Document xmlDoc,
java.net.URL url)
Transforms the xmlDoc using the xslFile and returns the transformed result as a string. |
static java.lang.String |
transform(org.w3c.dom.Document xmlDoc,
java.net.URL url,
java.util.Properties outputFormat)
Transforms the xmlDoc using the xslFile and returns the transformed result as a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLUtil()
| Method Detail |
|---|
public static org.w3c.dom.Document newDocument()
Document- a new XML Document
public static java.lang.String getElementValue(java.lang.String elementName,
org.w3c.dom.Element parentElement)
public static org.w3c.dom.Element createElement(org.w3c.dom.Document doc,
java.lang.String elementName,
java.lang.String elementValue,
org.w3c.dom.Element parentElement)
doc - the Document to add the new element toelementName - the name of the new elementelementValue - the value of the new elementparentElement - the parent of the new element
Element- the new element created
public static org.w3c.dom.Element createElement(java.lang.String elementName,
java.lang.String elementValue,
org.w3c.dom.Element parentElement)
elementName - the name of the new elementelementValue - the value of the new elementparentElement - the parent of the new element
Element- the new element created
public static org.w3c.dom.Element createCDATASection(org.w3c.dom.Document doc,
java.lang.String elementName,
java.lang.String cdata,
org.w3c.dom.Element parentElement)
doc - the Document to add the new element toelementName - the name of the new elementcdata - the CDATA value of the new elementparentElement - the parent of the new element
Element- the new element created
public static org.w3c.dom.Element createCDATASection(java.lang.String elementName,
java.lang.String cdata,
org.w3c.dom.Element parentElement)
elementName - the name of the new elementcdata - the CDATA value of the new elementparentElement - the parent of the new element
Element- the new element created
public static void createCommonElements(org.w3c.dom.Document doc,
org.w3c.dom.Element root,
javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
doc - the document to add the elements toroot - the parent of the element to add
public static java.lang.String transform(org.w3c.dom.Document xmlDoc,
java.net.URL url)
xmlDoc - the XML document to transformurl - the URL of the XSL file which specifies how to transform
String- the transformed result as a string
public static java.lang.String transform(org.w3c.dom.Document xmlDoc,
java.net.URL url,
java.util.Properties outputFormat)
xmlDoc - the XML document to transformurl - the URL of the XSL file which specifies how to transformoutputFormat - the output properties that used for transformation
String- the transformed result as a stringTransformer.setOutputProperties(Properties)public static java.lang.String getValidStyleString(java.lang.String styleString)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||