Class XMLSupport
- java.lang.Object
-
- org.esa.snap.core.dataop.downloadable.XMLSupport
-
public final class XMLSupport extends Object
Created by IntelliJ IDEA. User: lveci Date: Jan 23, 2008 Time: 2:45:16 PM To change this template use File | Settings | File Templates.
-
-
Constructor Summary
Constructors Constructor Description XMLSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetAttrib(org.jdom2.Element elem, String tag)static org.jdom2.ElementgetElement(org.jdom2.Element root, String name)static org.jdom2.TextgetElementText(org.jdom2.Element root)static String[]getStringList(org.jdom2.Element elem)static org.jdom2.DocumentLoadXML(InputStream inputStream)static org.jdom2.DocumentLoadXML(String filePath)static org.jdom2.DocumentLoadXMLFromResource(String filePath, Class theClass)static voidmetadataElementToDOMElement(MetadataElement metadataElem, org.jdom2.Element domElem)static voidSaveXML(org.jdom2.Document doc, String filePath)
-
-
-
Method Detail
-
SaveXML
public static void SaveXML(org.jdom2.Document doc, String filePath) throws IOException- Throws:
IOException
-
LoadXML
public static org.jdom2.Document LoadXML(InputStream inputStream) throws IOException
- Throws:
IOException
-
LoadXML
public static org.jdom2.Document LoadXML(String filePath) throws IOException
- Throws:
IOException
-
LoadXMLFromResource
public static org.jdom2.Document LoadXMLFromResource(String filePath, Class theClass) throws IOException
- Throws:
IOException
-
metadataElementToDOMElement
public static void metadataElementToDOMElement(MetadataElement metadataElem, org.jdom2.Element domElem)
-
getElement
public static org.jdom2.Element getElement(org.jdom2.Element root, String name) throws IOException- Throws:
IOException
-
getElementText
public static org.jdom2.Text getElementText(org.jdom2.Element root) throws IOException- Throws:
IOException
-
getStringList
public static String[] getStringList(org.jdom2.Element elem)
-
-