|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.util.xml.XmlUtil
public final class XmlUtil
This class provides utils for XML document management.
| Field Summary | |
|---|---|
static String |
PROPERTIES_XML_HEADER
|
| Method Summary | |
|---|---|
static void |
addElement(StringBuffer strXmlBuffer,
String strTag,
int nValue)
Add an element to an XML document buffer. |
static void |
addElement(StringBuffer strXmlBuffer,
String strTag,
String strValue)
Add an element to an XML document buffer |
static void |
addElement(StringBuffer strXmlBuffer,
String strTag,
String strValue,
Map<?,?> attrList)
Add an element to an XML document buffer with attributes |
static void |
addElementHtml(StringBuffer strXmlBuffer,
String strTag,
String strValue)
Add a CDATA type element to XML document buffer. |
static void |
addElementHtml(StringBuffer strXmlBuffer,
String strTag,
String strValue,
Map<?,?> attrList)
Add a CDATA type element to XML document buffer. |
static void |
addEmptyElement(StringBuffer strXmlBuffer,
String strTag,
Map<?,?> attrList)
Add an empty element (< />) to an XML document buffer. |
static void |
beginElement(StringBuffer strXmlBuffer,
String strTag)
Add an opening tag for an element in a XML document buffer |
static void |
beginElement(StringBuffer strXmlBuffer,
String strTag,
Map<?,?> attrList)
Add an opening tag for an element in a XML document buffer |
static void |
endElement(StringBuffer strXmlBuffer,
String strTag)
Add a closing tag for an element in a XML document buffer |
static String |
getXmlHeader()
Gets the header of an XML file |
static String |
transform(Source source,
Source stylesheet,
Map<String,String> params,
Properties outputProperties)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTIES_XML_HEADER
| Method Detail |
|---|
public static String getXmlHeader()
@Deprecated
public static String transform(Source source,
Source stylesheet,
Map<String,String> params,
Properties outputProperties)
throws Exception
source - The input XML documentstylesheet - The XSL stylesheetparams - parameters to apply to the XSL StylesheetoutputProperties - properties to use for the xsl transform. Will overload the xsl output definition.
Exception - The exception
public static void addElement(StringBuffer strXmlBuffer,
String strTag,
String strValue)
strXmlBuffer - The XML document bufferstrTag - The tag name of the element to addstrValue - The value of the element
public static void addEmptyElement(StringBuffer strXmlBuffer,
String strTag,
Map<?,?> attrList)
strXmlBuffer - The XML document bufferstrTag - The tag name of the element to addattrList - The attributes list
public static void addElement(StringBuffer strXmlBuffer,
String strTag,
String strValue,
Map<?,?> attrList)
strXmlBuffer - The XML document bufferstrTag - The tag name of the element to addstrValue - The value of the elementattrList - the attribute list
public static void addElement(StringBuffer strXmlBuffer,
String strTag,
int nValue)
strXmlBuffer - The XML document bufferstrTag - The tag name of the element to addnValue - The value of the element
public static void addElementHtml(StringBuffer strXmlBuffer,
String strTag,
String strValue)
strXmlBuffer - The XML document bufferstrTag - The tag name of the element to addstrValue - The value of the element
public static void addElementHtml(StringBuffer strXmlBuffer,
String strTag,
String strValue,
Map<?,?> attrList)
strXmlBuffer - The XML document bufferstrTag - The tag name of the element to addstrValue - The value of the elementattrList - The attributes list
public static void beginElement(StringBuffer strXmlBuffer,
String strTag)
strXmlBuffer - The XML document bufferstrTag - The tag name of the element to add
public static void beginElement(StringBuffer strXmlBuffer,
String strTag,
Map<?,?> attrList)
strXmlBuffer - The XML document bufferstrTag - The tag name of the element to addattrList - The attributes list
public static void endElement(StringBuffer strXmlBuffer,
String strTag)
strXmlBuffer - The XML document bufferstrTag - The tag name of the element to add
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||