Class Tree.XMLConverter
java.lang.Object
org.eclipse.net4j.util.collection.Tree.XMLConverter
- All Implemented Interfaces:
BiFunction<Tree,
Element, Element>
- Enclosing class:
- Tree
- Author:
- Eike Stepper
-
Constructor Summary
ConstructorDescriptionXMLConverter
(DocumentBuilder documentBuilder) XMLConverter
(DocumentBuilderFactory documentBuilderFactory) XMLConverter
(Document document) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendElement
(Tree tree, Element element, Element parentElement) static Tree
convertDocumentToTree
(Document document) static Tree
convertDocumentToTree
(Document document, Map<String, String> parameters) static Tree
convertElementToTree
(Element element) static Tree
convertElementToTree
(Element element, Map<String, String> parameters) static Document
convertTreeToDocument
(Tree tree) static Element
convertTreeToElement
(Tree tree) protected Element
createElement
(Tree tree) final Document
document()
protected String
getTagName
(Tree tree) protected void
setAttribute
(Tree tree, Element element, String name, String value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
XMLConverter
-
XMLConverter
-
XMLConverter
public XMLConverter(DocumentBuilderFactory documentBuilderFactory) throws ParserConfigurationException - Throws:
ParserConfigurationException
-
XMLConverter
- Throws:
ParserConfigurationException
-
-
Method Details
-
document
-
apply
- Specified by:
apply
in interfaceBiFunction<Tree,
Element, Element>
-
createElement
-
appendElement
-
setAttribute
-
getTagName
-
convertTreeToDocument
- Throws:
ParserConfigurationException
-
convertTreeToElement
- Throws:
ParserConfigurationException
-
convertDocumentToTree
-
convertDocumentToTree
-
convertElementToTree
-
convertElementToTree
-