⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xtxobject.java

📁 用Java写的面相对象的数据库管理系统
💻 JAVA
字号:
// Copyright 1997-1999 by softwarebuero m&b (SMB). All rights reserved.//// You can redistribute this software and/or modify it under the terms of// the Ozone Library License version 1 published by softwarebuero m&b (SMB).//// $Id: XtXObject.java,v 1.2 2000/10/28 16:55:26 daniela Exp $package org.ozoneDB.xml.xpath;import java.util.Enumeration;import java.util.Vector;import org.w3c.dom.DocumentFragment;import org.w3c.dom.Node;import org.w3c.dom.NodeList;/** * Wrapper for the XT XObject and maybe other XPath implementation specific * things. * @version $Revision: 1.2 $ $Date: 2000/10/28 16:55:26 $ * @author <a href="http://www.softwarebuero.de">SMB</a> */public final class XtXObject extends java.lang.Object implements XObject {        //    // Constants    //        final static long serialVersionUID = 1;        //    // Data    //        protected NodeList nodeList;            /**     * Creates a new XtXObject.     * @param e An Enumeration containing result nodes.     * @exception IllegalArgumentException If the specified Enumeration was null.     */    public XtXObject( Enumeration e ) throws IllegalArgumentException{        if (e == null) {            throw new IllegalArgumentException( "XtXObject(): Argument was null!" );        }         nodeList = new NodeListImpl();        while (e.hasMoreElements()) {            ((Vector)nodeList).addElement( (Node)e.nextElement() );        }     }            /**     */    public int getType() {        return XObject.CLASS_NODESET;    }             /** Cast result object to a boolean. */    public boolean bool() throws org.xml.sax.SAXException {        throw new org.xml.sax.SAXException( "bool(): Not supported!" );    }             /** Cast result object to a number. */    public double num() throws org.xml.sax.SAXException {        throw new org.xml.sax.SAXException( "num(): Not supported!" );    }             /** Cast result object to a string. */    public String str() {        return null;    }             /** Cast result object to a nodelist. */    public NodeList nodeset() throws org.xml.sax.SAXException {        return nodeList;    }             /** Cast result object to a result tree fragment. */    public DocumentFragment rtree() {        return null;    }     }

⌨️ 快捷键说明

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