globaltemplateimpl.java~2~

来自「云网论坛CWBBS 源码,内容丰富,学习,参考,教学的好资料,具体见内说明,」· JAVA~2~ 代码 · 共 39 行

JAVA~2~
39 行
字号
package cn.js.fan.module.cms;

import com.cloudwebsoft.framework.util.LogUtil;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2005</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class GlobalTemplateImpl {
    public GlobalTemplateImpl() {
    }

    public String toString() {
        if (keyName.equalsIgnoreCase("id")) {
            // LogUtil.getLog(getClass()).info("toString:keyValue=" + keyValue);
            int id = Integer.parseInt(keyValue);
            Document doc = new Document();
            doc = doc.getDocument(id);
            return write(doc);
        } else if (keyName.equalsIgnoreCase("dirCode")) {
            Leaf lf = new Leaf();
            lf = lf.getLeaf(keyValue);
            int id = lf.getDocID();
            Document doc = new Document();
            doc = doc.getDocument(id);
            return write(doc);
        } else
            return "Key " + keyName + " is invalid!";
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?