001 /* 002 * Copyright 2002 - 2009 JEuclid, http://jeuclid.sf.net 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 017 /* $Id: ForeignElement.java,v 92569cce5dd6 2009/07/27 14:50:38 maxberger $ */ 018 019 package net.sourceforge.jeuclid.elements.generic; 020 021 import net.sourceforge.jeuclid.elements.AbstractJEuclidElement; 022 023 import org.apache.batik.dom.AbstractDocument; 024 import org.w3c.dom.Node; 025 026 /** 027 * This class represents a foreign element. It is rendered like a row. 028 * 029 * @version $Revision: 92569cce5dd6 $ 030 */ 031 public final class ForeignElement extends AbstractJEuclidElement { 032 033 private static final long serialVersionUID = 1L; 034 035 /** 036 * Default constructor. 037 * 038 * @param nsUri 039 * Namespace URI. 040 * @param qname 041 * Qualified name. 042 * @param odoc 043 * Owner Document. 044 */ 045 public ForeignElement(final String nsUri, final String qname, 046 final AbstractDocument odoc) { 047 super(nsUri, qname, odoc); 048 } 049 050 /** {@inheritDoc} */ 051 @Override 052 protected Node newNode() { 053 return new ForeignElement(this.namespaceURI, this.nodeName, 054 this.ownerDocument); 055 } 056 057 }