From: Sebastian B. <bo...@us...> - 2004-09-01 17:41:46
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/dom In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31609/src/org/exist/dom Modified Files: NodeImpl.java NamedNode.java Added Files: QNameable.java Log Message: Apply node-name patch by Finder and introduce QNameable interface to avoid using reflection. --- NEW FILE: QNameable.java --- /* * eXist Open Source Native XML Database * Copyright (C) 2001-04 Wolfgang M. Meier * wol...@ex... * http://exist.sourceforge.net * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ package org.exist.dom; /** * @author Sebastian Bossung, Technische Universitaet Hamburg-Harburg */ public interface QNameable { QName getQName(); } Index: NodeImpl.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/dom/NodeImpl.java,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** NodeImpl.java 11 Aug 2004 12:54:57 -0000 1.28 --- NodeImpl.java 1 Sep 2004 17:41:30 -0000 1.29 *************** *** 44,48 **** *@author Wolfgang Meier <me...@if...> */ ! public class NodeImpl implements Node { protected final static Logger LOG = Logger.getLogger(NodeImpl.class); --- 44,48 ---- *@author Wolfgang Meier <me...@if...> */ ! public class NodeImpl implements Node, QNameable { protected final static Logger LOG = Logger.getLogger(NodeImpl.class); Index: NamedNode.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/dom/NamedNode.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** NamedNode.java 21 Jun 2004 15:27:36 -0000 1.2 --- NamedNode.java 1 Sep 2004 17:41:30 -0000 1.3 *************** *** 31,35 **** * @author wolf */ ! public class NamedNode extends NodeImpl { protected QName nodeName = null; --- 31,35 ---- * @author wolf */ ! public class NamedNode extends NodeImpl implements QNameable { protected QName nodeName = null; |