Clover coverage report - SOJO - 1.0.0
Coverage timestamp: Mo Mai 4 2009 16:26:33 CEST
file stats: LOC: 60   Methods: 12
NCLOC: 30   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
PathAction.java - 100% 100% 100%
coverage
 1    /*
 2    * Copyright 2002-2005 the original author or authors.
 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    package net.sf.sojo.navigation;
 17   
 18    public class PathAction {
 19   
 20    public static final int ACTION_TYPE_SIMPLE = 0;
 21    public static final int ACTION_TYPE_INDEX = 1;
 22    public static final int ACTION_TYPE_KEY = 2;
 23   
 24    private int type = ACTION_TYPE_SIMPLE;
 25    private String path = null;
 26    private String property = null;
 27    private String key = null;
 28    private int index = -1;
 29   
 30   
 31  303 public PathAction() {}
 32  2 public PathAction(int pvType) {
 33  2 setType(pvType);
 34    }
 35   
 36  18 public String getPath() { return path; }
 37  300 public void setPath(String pvPath) { path = pvPath; }
 38   
 39  274 public String getProperty() { return property; }
 40  205 public void setProperty(String pvProperty) { property = pvProperty; }
 41   
 42  68 public String getKey() { return key; }
 43  90 public void setKey(String pvKey) { key = pvKey; }
 44   
 45  90 public int getIndex() { return index; }
 46  102 public void setIndex(int pvIndex) { index = pvIndex; }
 47   
 48  214 public int getType() { return type; }
 49  316 public void setType(int pvType) { type = pvType; }
 50   
 51    public String toString() {
 52    return "path: " + getPath() + " - property: " + getProperty()
 53    + " - index/key: " + getIndex() + "/" + getKey()
 54    + " - type: " + getType() + " -- " + super.toString();
 55    }
 56   
 57   
 58   
 59   
 60    }