📄 tagfield.java
字号:
/*
* 创建日期 2005-4-28
* 作 者 liug
*/
package com.icbc.util;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import com.icbc.core.Externalizable;
/**
* @author liug
* @time 10:17:53
*/
public class TagField implements Externalizable {
private String name = null;
private String type = null;
private String value = null;
/**
* @return 返回 name。
*/
public String getName() {
return name;
}
/**
* @param name
* 要设置的 name。
*/
public void setName(String name) {
this.name = name;
}
/**
* @return 返回 type。
*/
public String getType() {
return type;
}
/**
* @param type
* 要设置的 type。
*/
public void setType(String type) {
this.type = type;
}
/*
* (非 Javadoc)
*
* @see com.icbc.core.Externalizable#initializeFrom(org.w3c.dom.Node)
*/
public Object initializeFrom(Node aNode) throws Exception {
NamedNodeMap attrList = aNode.getAttributes();
String dataName = (String) attrList.getNamedItem("id").getNodeValue()
.trim();
setName(dataName);
String dataType = (String) attrList.getNamedItem("type").getNodeValue()
.trim();
setType(dataType);
return null;
}
/*
* (非 Javadoc)
*
* @see com.icbc.core.Externalizable#addElement(com.icbc.core.Externalizable)
*/
public void addElement(Externalizable externalizable) {
}
/**
* @return 返回 value。
*/
public String getValue() {
return value;
}
/**
* @param value
* 要设置的 value。
*/
public void setValue(String value) {
this.value = value;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -