de.matthias_burbach.util
Class XmlUtils
java.lang.Object
de.matthias_burbach.util.XmlUtils
- public class XmlUtils
- extends java.lang.Object
- Author:
- Matthias Burbach
Method Summary |
static void |
addAttributesToElement(org.jdom.Element element,
java.util.List attributes)
|
private static void |
checkCopyPreCondition(org.jdom.Element sourceElement,
org.jdom.Element targetElement)
|
static void |
copyAttributes(org.jdom.Element sourceElement,
org.jdom.Element targetElement)
|
static void |
copyAttributes(org.jdom.Element sourceElement,
org.jdom.Element targetElement,
java.lang.String[] excludedAttributeNames)
|
static void |
copyContent(org.jdom.Element sourceElement,
org.jdom.Element targetElement)
|
static void |
copyContent(org.jdom.Element sourceElement,
org.jdom.Element targetElement,
org.jdom.filter.Filter filter)
|
static org.jdom.Document |
loadXmlDocument(java.io.InputStream is)
|
static org.jdom.Document |
loadXmlDocument(java.lang.String url)
|
static void |
saveXmlDocument(java.lang.String pathAndFile,
org.jdom.Document document)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlUtils
public XmlUtils()
loadXmlDocument
public static org.jdom.Document loadXmlDocument(java.io.InputStream is)
throws java.lang.Exception
- Throws:
java.lang.Exception
loadXmlDocument
public static org.jdom.Document loadXmlDocument(java.lang.String url)
throws java.lang.Exception
- Throws:
java.lang.Exception
saveXmlDocument
public static void saveXmlDocument(java.lang.String pathAndFile,
org.jdom.Document document)
throws java.lang.Exception
- Throws:
java.lang.Exception
copyAttributes
public static void copyAttributes(org.jdom.Element sourceElement,
org.jdom.Element targetElement)
copyAttributes
public static void copyAttributes(org.jdom.Element sourceElement,
org.jdom.Element targetElement,
java.lang.String[] excludedAttributeNames)
copyContent
public static void copyContent(org.jdom.Element sourceElement,
org.jdom.Element targetElement)
copyContent
public static void copyContent(org.jdom.Element sourceElement,
org.jdom.Element targetElement,
org.jdom.filter.Filter filter)
addAttributesToElement
public static void addAttributesToElement(org.jdom.Element element,
java.util.List attributes)
checkCopyPreCondition
private static void checkCopyPreCondition(org.jdom.Element sourceElement,
org.jdom.Element targetElement)