Clover coverage report -
Coverage timestamp: Sun Nov 1 2009 23:08:24 UTC
file stats: LOC: 73   Methods: 7
NCLOC: 31   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
XObjectImpl.java 50% 44.4% 42.9% 44.4%
coverage coverage
 1    /*
 2    * Licensed to the Apache Software Foundation (ASF) under one or more
 3    * contributor license agreements. See the NOTICE file distributed with
 4    * this work for additional information regarding copyright ownership.
 5    * The ASF licenses this file to You under the Apache License, Version 2.0
 6    * (the "License"); you may not use this file except in compliance with
 7    * the License. You may obtain a copy of the License at
 8    *
 9    * http://www.apache.org/licenses/LICENSE-2.0
 10    *
 11    * Unless required by applicable law or agreed to in writing, software
 12    * distributed under the License is distributed on an "AS IS" BASIS,
 13    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14    * See the License for the specific language governing permissions and
 15    * limitations under the License.
 16    *
 17    * $Id: XObjectImpl.java 541508 2007-05-25 01:54:12Z vgritsenko $
 18    */
 19   
 20    package org.apache.xindice.core.xupdate;
 21   
 22    import org.apache.xpath.objects.XObject;
 23   
 24    import org.w3c.dom.DocumentFragment;
 25    import org.w3c.dom.NodeList;
 26   
 27    /**
 28    * Wrapper for Xalan XObject
 29    *
 30    * @version $Revision: 541508 $, $Date: 2007-05-24 18:54:12 -0700 (Thu, 24 May 2007) $
 31    */
 32    public final class XObjectImpl implements org.xmldb.common.xml.queries.XObject {
 33   
 34    private XObject _xobj = null;
 35   
 36    /**
 37    * Creates a new XObject to wrap a Xalan XObject
 38    *
 39    * @param xobj xalan's XObject that should be wrapped.
 40    * @exception IllegalArgumentException If the given XObject was null.
 41    */
 42  42 public XObjectImpl(XObject xobj) throws IllegalArgumentException {
 43  42 if (xobj == null) {
 44  0 throw new IllegalArgumentException("XalanXObject(): Argument was null!");
 45    }
 46  42 _xobj = xobj;
 47    }
 48   
 49  42 public int getType() {
 50  42 return _xobj.getType();
 51    }
 52   
 53  0 public boolean bool() throws Exception {
 54  0 return _xobj.bool();
 55    }
 56   
 57  0 public double num() throws Exception {
 58  0 return _xobj.num();
 59    }
 60   
 61  0 public String str() {
 62  0 return _xobj.str();
 63    }
 64   
 65    // this works like the old xalan1 nodset()
 66  42 public NodeList nodeset() throws Exception {
 67  42 return _xobj.nodelist();
 68    }
 69   
 70  0 public DocumentFragment rtree() {
 71  0 return _xobj.rtree();
 72    }
 73    }