KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > launching > LibraryInfo


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.launching;
12
13
14 /**
15  * Stores the boot path and extension directories associated with a VM.
16  */

17 public class LibraryInfo {
18
19     private String JavaDoc fVersion;
20     private String JavaDoc[] fBootpath;
21     private String JavaDoc[] fExtensionDirs;
22     private String JavaDoc[] fEndorsedDirs;
23     
24     public LibraryInfo(String JavaDoc version, String JavaDoc[] bootpath, String JavaDoc[] extDirs, String JavaDoc[] endDirs) {
25         fVersion = version;
26         fBootpath = bootpath;
27         fExtensionDirs = extDirs;
28         fEndorsedDirs = endDirs;
29     }
30     
31     /**
32      * Returns the version of this VM install.
33      *
34      * @return version
35      */

36     public String JavaDoc getVersion() {
37         return fVersion;
38     }
39     
40     /**
41      * Returns a collection of extension directory paths for this VM install.
42      *
43      * @return a collection of absolute paths
44      */

45     public String JavaDoc[] getExtensionDirs() {
46         return fExtensionDirs;
47     }
48     
49     /**
50      * Returns a collection of bootpath entries for this VM install.
51      *
52      * @return a collection of absolute paths
53      */

54     public String JavaDoc[] getBootpath() {
55         return fBootpath;
56     }
57     
58     /**
59      * Returns a collection of endorsed directory paths for this VM install.
60      *
61      * @return a collection of absolute paths
62      */

63     public String JavaDoc[] getEndorsedDirs() {
64         return fEndorsedDirs;
65     }
66 }
67
Popular Tags