tagfield.java

来自「导出ORACLE数据库对象DDL语句的程序」· Java 代码 · 共 95 行

JAVA
95
字号
/*
 * 创建日期 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 + =
减小字号Ctrl + -
显示快捷键?