com.github.megatronking.svg.generator.xml.IElementParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of svg-generator Show documentation
Show all versions of svg-generator Show documentation
A SVG Support Library for Android
package com.github.megatronking.svg.generator.xml;
import org.dom4j.DocumentException;
import org.dom4j.Element;
/**
* We convert xml to tree elements by dom4j framework.
* The next step is parsing the elements to model objects.
* An element can have declared namespaces, attributes, child nodes and textual content.
*
* @author Megatron King
* @since 2016/9/1 9:37
*/
public interface IElementParser {
/**
* Parse an element to a model object, one element, one object.
*
* @param element the dom element.
* @param t the object.
*/
void parse(Element element, T t) throws DocumentException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy