|
||||||||||
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 java.lang.String |
PROPERTIES_XML_HEADER
|
Method Summary | |
---|---|
static void |
addElement(java.lang.StringBuffer strXmlBuffer,
java.lang.String strTag,
int nValue)
Add an element to an XML document buffer. |
static void |
addElement(java.lang.StringBuffer strXmlBuffer,
java.lang.String strTag,
java.lang.String strValue)
Add an element to an XML document buffer |
static void |
addElementHtml(java.lang.StringBuffer strXmlBuffer,
java.lang.String strTag,
java.lang.String strValue)
Add a CDATA type element to XML document buffer. |
static void |
addEmptyElement(java.lang.StringBuffer strXmlBuffer,
java.lang.String strTag,
java.util.Map attrList)
Add an empty element (< />) to an XML document buffer. |
static void |
beginElement(java.lang.StringBuffer strXmlBuffer,
java.lang.String strTag)
Add an opening tag for an element in a XML document buffer |
static void |
beginElement(java.lang.StringBuffer strXmlBuffer,
java.lang.String strTag,
java.util.Map attrList)
Add an opening tag for an element in a XML document buffer |
static void |
endElement(java.lang.StringBuffer strXmlBuffer,
java.lang.String strTag)
Add a closing tag for an element in a XML document buffer |
static java.lang.String |
getXmlHeader()
Gets the header of an XML file |
static java.lang.String |
transform(javax.xml.transform.Source source,
javax.xml.transform.Source stylesheet,
java.util.Map<java.lang.String,java.lang.String> params,
java.util.Properties outputProperties)
This method performs XSL Transformation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPERTIES_XML_HEADER
Method Detail |
---|
public static java.lang.String getXmlHeader()
public static java.lang.String transform(javax.xml.transform.Source source, javax.xml.transform.Source stylesheet, java.util.Map<java.lang.String,java.lang.String> params, java.util.Properties outputProperties) throws java.lang.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.
java.lang.Exception
- The exceptionpublic static void addElement(java.lang.StringBuffer strXmlBuffer, java.lang.String strTag, java.lang.String strValue)
strXmlBuffer
- The XML document bufferstrTag
- The tag name of the element to addstrValue
- The value of the elementpublic static void addEmptyElement(java.lang.StringBuffer strXmlBuffer, java.lang.String strTag, java.util.Map attrList)
strXmlBuffer
- The XML document bufferstrTag
- The tag name of the element to addattrList
- The attributes listpublic static void addElement(java.lang.StringBuffer strXmlBuffer, java.lang.String strTag, int nValue)
strXmlBuffer
- The XML document bufferstrTag
- The tag name of the element to addnValue
- The value of the elementpublic static void addElementHtml(java.lang.StringBuffer strXmlBuffer, java.lang.String strTag, java.lang.String strValue)
strXmlBuffer
- The XML document bufferstrTag
- The tag name of the element to addstrValue
- The value of the elementpublic static void beginElement(java.lang.StringBuffer strXmlBuffer, java.lang.String strTag)
strXmlBuffer
- The XML document bufferstrTag
- The tag name of the element to addpublic static void beginElement(java.lang.StringBuffer strXmlBuffer, java.lang.String strTag, java.util.Map attrList)
strXmlBuffer
- The XML document bufferstrTag
- The tag name of the element to addattrList
- The attributes listpublic static void endElement(java.lang.StringBuffer strXmlBuffer, java.lang.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 |