📄 o3namespace.java
字号:
// You can redistribute this software and/or modify it under the terms of// the Ozone Library License version 1 published by ozone-db.org.//// The original code and portions created by SMB are// Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.//// $Id: O3Namespace.java,v 1.1 2003/11/02 18:10:03 per_nyfelt Exp $package org.ozoneDB.xml.dom4j.o3impl;import org.dom4j.DocumentFactory;import org.dom4j.Element;import org.dom4j.Namespace;import org.ozoneDB.OzoneInterface;import org.ozoneDB.OzoneRemoteException;import java.io.Serializable;/** * * @author Per Nyfelt */public class O3Namespace extends DefaultNamespace implements Serializable /*OzoneCompatible*/ { final static long serialVersionUID = 1L; //private static final String SEP = OPP.SIGNATURE_DELIMITER; private transient OzoneInterface db; //private OzoneObject ozoneObject; private void init() { //ozoneObject = new OzoneObject(); } public O3Namespace(String prefix, String uri) { super(prefix, uri); init(); } public static Namespace create(OzoneInterface db, String prefix, String uri) {// System.out.println("[O3Namespace] Creating new object");// final String signature = String.class.getName() + SEP + String.class.getName();// return (OzoneNamespace) db.createObject(O3Namespace.class,// signature,// new Object[]{prefix, uri}); O3Namespace obj = new O3Namespace(prefix, uri); obj.db = db; return obj; } /** @param parent is the parent element * @param prefix is the prefix for this namespace * @param uri is the URI for this namespace */ public O3Namespace(Element parent, String prefix, String uri) { super(parent, prefix, uri); init(); } public static Namespace create(OzoneInterface db, Element parent, String prefix, String uri) {// System.out.println("[O3Namespace] Creating new object");// final String signature = Element.class.getName() + SEP// + String.class.getName() + SEP// + String.class.getName();// return (OzoneNamespace) db.createObject(O3Namespace.class,// signature,// new Object[]{parent, prefix, uri}); O3Namespace obj = new O3Namespace(parent, prefix, uri); obj.db = db; return obj; } public DocumentFactory getDocumentFactory() { throw new OzoneRemoteException("getDocumentFactory will not work in Ozone"); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -