com.koubei.abator.xml.ExtendProp Maven / Gradle / Ivy
The newest version!
/**
*
*/
package com.koubei.abator.xml;
import org.apache.ibatis.ibator.api.dom.xml.Attribute;
import org.apache.ibatis.ibator.api.dom.xml.XmlElement;
/**
* @author 百岁([email protected])
* @date 2012-4-28
*/
public class ExtendProp extends XmlElement {
public ExtendProp(String name) {
super(name);
}
public ExtendProp addPropElement(String key, String value) {
ExtendProp element = new ExtendProp("property");
element.addAttribute(new Attribute("name", key));
element.addAttribute(new Attribute("value", value));
this.addElement(element);
return element;
}
}