discarder.java

来自「这是一个基于计算网格的web service。它用java编写。一旦安装完成」· Java 代码 · 共 58 行

JAVA
58
字号
//// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.4-b18-fcs // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2005.07.17 at 02:32:53 EDT //package jwsgrid.xsd.jobhoststaticinfo.impl.runtime;import org.xml.sax.Attributes;import org.xml.sax.SAXException;/** * UnmarshallingEventHandler implementation that discards the whole sub-tree. *  * @author *     Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com) */class Discarder implements UnmarshallingEventHandler {        private final UnmarshallingContext context;    // nest level of elements.    private int depth = 0;            public Discarder(UnmarshallingContext _ctxt) {        this.context = _ctxt;    }    public void enterAttribute(String uri, String local, String qname) throws SAXException {    }    public void enterElement(String uri, String local, String qname, Attributes atts) throws SAXException {        depth++;    }    public void leaveAttribute(String uri, String local, String qname) throws SAXException {    }    public void leaveElement(String uri, String local, String qname) throws SAXException {        depth--;        if(depth==0)            context.popContentHandler();    }    public Object owner() {        return null;    }    public void text(String s) throws SAXException {    }    public void leaveChild(int nextState) throws SAXException {    }}

⌨️ 快捷键说明

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