Coverage Report - net.sourceforge.jeuclid.elements.generic.ForeignElement
 
Classes in this File Line Coverage Branch Coverage Complexity
ForeignElement
66%
2/3
N/A
1
 
 1  
 /*
 2  
  * Copyright 2002 - 2009 JEuclid, http://jeuclid.sf.net
 3  
  * 
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  *      http://www.apache.org/licenses/LICENSE-2.0
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 
 17  
 /* $Id: ForeignElement.java,v 92569cce5dd6 2009/07/27 14:50:38 maxberger $ */
 18  
 
 19  
 package net.sourceforge.jeuclid.elements.generic;
 20  
 
 21  
 import net.sourceforge.jeuclid.elements.AbstractJEuclidElement;
 22  
 
 23  
 import org.apache.batik.dom.AbstractDocument;
 24  
 import org.w3c.dom.Node;
 25  
 
 26  
 /**
 27  
  * This class represents a foreign element. It is rendered like a row.
 28  
  * 
 29  
  * @version $Revision: 92569cce5dd6 $
 30  
  */
 31  
 public final class ForeignElement extends AbstractJEuclidElement {
 32  
 
 33  
     private static final long serialVersionUID = 1L;
 34  
 
 35  
     /**
 36  
      * Default constructor.
 37  
      * 
 38  
      * @param nsUri
 39  
      *            Namespace URI.
 40  
      * @param qname
 41  
      *            Qualified name.
 42  
      * @param odoc
 43  
      *            Owner Document.
 44  
      */
 45  
     public ForeignElement(final String nsUri, final String qname,
 46  
             final AbstractDocument odoc) {
 47  3681
         super(nsUri, qname, odoc);
 48  3681
     }
 49  
 
 50  
     /** {@inheritDoc} */
 51  
     @Override
 52  
     protected Node newNode() {
 53  0
         return new ForeignElement(this.namespaceURI, this.nodeName,
 54  
                 this.ownerDocument);
 55  
     }
 56  
 
 57  
 }