Coverage Report - org.simpleframework.xml.stream.NodeStack
 
Classes in this File Line Coverage Branch Coverage Complexity
NodeStack
100%
2/2
N/A
1
 
 1  
 /*
 2  
  * NodeStack.java January 2010
 3  
  *
 4  
  * Copyright (C) 2010, Niall Gallagher <niallg@users.sf.net>
 5  
  *
 6  
  * Licensed under the Apache License, Version 2.0 (the "License");
 7  
  * you may not use this file except in compliance with the License.
 8  
  * You may obtain a copy of the License at
 9  
  *
 10  
  *     http://www.apache.org/licenses/LICENSE-2.0
 11  
  *
 12  
  * Unless required by applicable law or agreed to in writing, software
 13  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
 14  
  * implied. See the License for the specific language governing 
 15  
  * permissions and limitations under the License.
 16  
  */
 17  
 
 18  
 package org.simpleframework.xml.stream;
 19  
 
 20  
 import org.w3c.dom.Node;
 21  
 
 22  
 /**
 23  
  * The <code>NodeStack</code> object is used to represent a stack
 24  
  * of DOM nodes. Stacking DOM nodes is required to determine where
 25  
  * within a stream of nodes you currently are. It allows a reader
 26  
  * to produce end events when a node is popped from the stack.
 27  
  * 
 28  
  * @author Niall Gallagher
 29  
  *
 30  
  * @see org.simpleframework.xml.stream.DocumentReader
 31  
  */
 32  
 class NodeStack extends Stack<Node>{
 33  
 
 34  
    /**
 35  
     * Constructor for the <code>NodeStack</code> object. This will
 36  
     * create a stack for holding DOM nodes. To ensure that the
 37  
     * initial size is enough to cope with typical XML documents it
 38  
     * is set large enough to cope with reasonably deep elements.
 39  
     */
 40  
    public NodeStack() {
 41  74070
       super(6);
 42  74070
    }
 43  
 }