Coverage report

  %line %branch
tsukuba_bunko.peko.resource.LocationResources
0% 
0% 

 1  
 /*
 2  
  * All Rights Reserved.
 3  
  * Copyright (C) 1999-2005 Tsukuba Bunko.
 4  
  *
 5  
  * Licensed under the BSD License ("the License"); you may not use
 6  
  * this file except in compliance with the License.
 7  
  * You may obtain a copy of the License at
 8  
  *
 9  
  *       http://www.tsukuba-bunko.org/licenses/LICENSE.txt
 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: LocationResources.java,v 1.2 2005/07/23 17:55:20 ppoi Exp $
 18  
  */
 19  
 package tsukuba_bunko.peko.resource;
 20  
 
 21  
 import	java.io.File;
 22  
 
 23  
 import	java.net.URL;
 24  
 
 25  
 import	tsukuba_bunko.resource.Resources;
 26  
 
 27  
 
 28  
 /**
 29  
  * ロケーションリソースを格納する <code>Resources</coe> 拡張です。
 30  
  * @author	$Author: ppoi $
 31  
  * @version	$Revision: 1.2 $
 32  
  */
 33  
 public class LocationResources	extends Resources	{
 34  
 
 35  
 	/**
 36  
 	 * データタイプ scenes のデータを格納するディレクトリ URL
 37  
 	 */
 38  
 	public static final String	BASEURL_SCENES = "peko.system.location.scenes";
 39  
 
 40  
 	/**
 41  
 	 * データタイプ images のデータを格納するディレクトリ URL
 42  
 	 */
 43  
 	public static final String	BASEURL_IMAGES = "peko.system.location.images";
 44  
 
 45  
 	/**
 46  
 	 * データタイプ sounds のデータを格納するディレクトリ URL
 47  
 	 */
 48  
 	public static final String	BASEURL_SOUNDS = "peko.system.location.sounds";
 49  
 
 50  
 	/**
 51  
 	 * データタイプ misc のデータを格納するディレクトリ URL
 52  
 	 */
 53  
 	public static final String	BASEURL_MISC = "peko.system.location.misc";
 54  
 
 55  
 	/**
 56  
 	 * インストールディレクトリ
 57  
 	 */
 58  
 	public static final String	DIR_INSTALL = "peko.system.location.install";
 59  
 
 60  
 	/**
 61  
 	 * セーブデータディレクトリ
 62  
 	 */
 63  
 	public static final String	DIR_SAVE = "peko.system.location.save";
 64  
 
 65  
 
 66  
 	/**
 67  
 	 * <code>LocationResources</code> のインスタンスを生成します。
 68  
 	 */
 69  
 	public LocationResources()
 70  
 	{
 71  0
 		super();
 72  0
 	}
 73  
 
 74  
 
 75  
 	/**
 76  
 	 * データタイプ scenes のデータを格納するディレクトリ URL を設定します。
 77  
 	 * @param	url	ディレクトリ URL
 78  
 	 */
 79  
 	public void setScenesDirecotryURL( URL url )
 80  
 	{
 81  0
 		setResource( LocationResources.BASEURL_SCENES, url );
 82  0
 	}
 83  
 
 84  
 	/**
 85  
 	 * データタイプ scenes のデータを格納するディレクトリ URL を取得します。
 86  
 	 * @return	ディレクトリ URL
 87  
 	 */
 88  
 	public URL getScenesDirecotryURL()
 89  
 	{
 90  0
 		return (URL)getResource( LocationResources.BASEURL_SCENES );
 91  
 	}
 92  
 
 93  
 	/**
 94  
 	 * データタイプ images のデータを格納するディレクトリ URL を設定します。
 95  
 	 * @param	url	ディレクトリ URL
 96  
 	 */
 97  
 	public void setImagesDirecotryURL( URL url )
 98  
 	{
 99  0
 		setResource( LocationResources.BASEURL_IMAGES, url );
 100  0
 	}
 101  
 
 102  
 	/**
 103  
 	 * データタイプ images のデータを格納するディレクトリ URL を取得します。
 104  
 	 * @return	ディレクトリ URL
 105  
 	 */
 106  
 	public URL getImagesDirecotryURL()
 107  
 	{
 108  0
 		return (URL)getResource( LocationResources.BASEURL_IMAGES );
 109  
 	}
 110  
 
 111  
 	/**
 112  
 	 * データタイプ sounds のデータを格納するディレクトリ URL を設定します。
 113  
 	 * @param	url	ディレクトリ URL
 114  
 	 */
 115  
 	public void setSoundsDirecotryURL( URL url )
 116  
 	{
 117  0
 		setResource( LocationResources.BASEURL_SOUNDS, url );
 118  0
 	}
 119  
 
 120  
 	/**
 121  
 	 * データタイプ sounds のデータを格納するディレクトリ URL を取得します。
 122  
 	 * @return	ディレクトリ URL
 123  
 	 */
 124  
 	public URL getSoundsDirecotryURL()
 125  
 	{
 126  0
 		return (URL)getResource( LocationResources.BASEURL_SOUNDS );
 127  
 	}
 128  
 
 129  
 	/**
 130  
 	 * データタイプ misc のデータを格納するディレクトリ URL を設定します。
 131  
 	 * @param	url	ディレクトリ URL
 132  
 	 */
 133  
 	public void setMiscDirecotryURL( URL url )
 134  
 	{
 135  0
 		setResource( LocationResources.BASEURL_MISC, url );
 136  0
 	}
 137  
 
 138  
 	/**
 139  
 	 * データタイプ misc のデータを格納するディレクトリ URL を取得します。
 140  
 	 * @return	ディレクトリ URL
 141  
 	 */
 142  
 	public URL getMiscDirecotryURL()
 143  
 	{
 144  0
 		return (URL)getResource( LocationResources.BASEURL_MISC );
 145  
 	}
 146  
 
 147  
 
 148  
 	/**
 149  
 	 * インストールディレクトリを設定します。
 150  
 	 * @param	installDir	インストールディレクトリ
 151  
 	 */
 152  
 	public void setInstallDirectory( File installDir )
 153  
 	{
 154  0
 		setResource( LocationResources.DIR_INSTALL, installDir );
 155  0
 	}
 156  
 
 157  
 	/**
 158  
 	 * インストールディレクトリを取得します。
 159  
 	 * @return	インストールディレクトリ
 160  
 	 */
 161  
 	public File getInstallDirectory()
 162  
 	{
 163  0
 		return (File)getResource( LocationResources.DIR_INSTALL );
 164  
 	}
 165  
 
 166  
 	/**
 167  
 	 * セーブデータディレクトリを設定します。
 168  
 	 * @param	saveDirectory	セーブデータディレクトリ
 169  
 	 */
 170  
 	public void setSaveDirectory( File saveDirectory )
 171  
 	{
 172  0
 		setResource( LocationResources.DIR_SAVE, saveDirectory );
 173  0
 	}
 174  
 
 175  
 	/**
 176  
 	 * セーブデータディレクトリを取得します。
 177  
 	 * @return	セーブデータディレクトリ
 178  
 	 */
 179  
 	public File getSaveDirectory()
 180  
 	{
 181  0
 		return (File)getResource( LocationResources.DIR_SAVE );
 182  
 	}
 183  
 }

This report is generated by jcoverage, Maven and Maven JCoverage Plugin.