public class ElementVisitor
extends org.dom4j.VisitorSupport
ElementTag}| 构造器和说明 |
|---|
ElementVisitor(Class<?> clazz) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
checkAttributeText(Field field,
String attributeName,
String attributeText)
检查属性值的有效性
|
protected void |
checkElementText(Field field,
String eName,
String eText)
检查元素文本的有效性
|
protected void |
checkNullElement(Class<?> clazz) |
protected void |
checkText(String category,
Field field,
String name,
String text)
检查文本有效性
|
Object |
getBean()
执行"访问"后取得bean对象
|
void |
visit(org.dom4j.Element element)
在访问的过程中给
bean对象赋值 |
public ElementVisitor(Class<?> clazz) throws InstantiationException, IllegalAccessException
public void visit(org.dom4j.Element element)
bean对象赋值visit 在接口中 org.dom4j.Visitorvisit 在类中 org.dom4j.VisitorSupportpublic Object getBean()
protected void checkElementText(Field field, String eName, String eText)
protected void checkAttributeText(Field field, String attributeName, String attributeText)
protected void checkNullElement(Class<?> clazz)
Copyright © 2015 cloudecho. All rights reserved.