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
ConstructorsConstructorDescriptionXMLConverter(DocumentBuilder documentBuilder) XMLConverter(DocumentBuilderFactory documentBuilderFactory) XMLConverter(Document document) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendElement(Tree tree, Element element, Element parentElement) static TreeconvertDocumentToTree(Document document) static TreeconvertDocumentToTree(Document document, Map<String, String> parameters) static TreeconvertElementToTree(Element element) static TreeconvertElementToTree(Element element, Map<String, String> parameters) static DocumentconvertTreeToDocument(Tree tree) static ElementconvertTreeToElement(Tree tree) protected ElementcreateElement(Tree tree) final Documentdocument()protected StringgetTagName(Tree tree) protected voidsetAttribute(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, waitMethods 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:
applyin interfaceBiFunction<Tree,Element, Element>
-
createElement
-
appendElement
-
setAttribute
-
getTagName
-
convertTreeToDocument
- Throws:
ParserConfigurationException
-
convertTreeToElement
- Throws:
ParserConfigurationException
-
convertDocumentToTree
-
convertDocumentToTree
-
convertElementToTree
-
convertElementToTree
-