nullwalker.java
来自「webwork source」· Java 代码 · 共 32 行
JAVA
32 行
/* * WebWork, Web Application Framework * * Distributable under Apache license. * See terms of license at opensource.org */package webwork.view.xslt.SAXAdapter;import org.xml.sax.ContentHandler;import org.xml.sax.SAXException;import org.xml.sax.helpers.AttributesImpl;import java.util.List;public class NullWalker extends AbstractWalker{ public void doWalk(XMLWalker rootWalker, ContentHandler contentHandler, Object value, String attributeName, List walkedInstances) throws SAXException { AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute("", "null", "", "CDATA", "true"); contentHandler.startElement("", attributeName, "", attributes); contentHandler.endElement("", attributeName, ""); } public final Class getWalkedType() { return String.class; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?