41 |
import java.util.NoSuchElementException; |
import java.util.NoSuchElementException; |
42 |
import java.util.StringTokenizer; |
import java.util.StringTokenizer; |
43 |
|
|
44 |
|
|
45 |
/** |
/** |
46 |
* Everything you ever wanted to know about a package. This class makes it |
* Everything you ever wanted to know about a package. This class makes it |
47 |
* possible to attach specification and implementation information to a |
* possible to attach specification and implementation information to a |
64 |
* then the other version, etc. (If a version has no minor, micro, etc numbers |
* then the other version, etc. (If a version has no minor, micro, etc numbers |
65 |
* then they are considered the be 0.) |
* then they are considered the be 0.) |
66 |
* |
* |
67 |
* @author Mark Wielaard <mark@klomp.org> |
* @author Mark Wielaard (mark@klomp.org) |
68 |
* @see ClassLoader#definePackage(String, String, String, String, String, |
* @see ClassLoader#definePackage(String, String, String, String, String, |
69 |
* String, String, URL) |
* String, String, URL) |
70 |
* @since 1.2 |
* @since 1.2 |
73 |
public class Package |
public class Package |
74 |
{ |
{ |
75 |
/** The name of the Package */ |
/** The name of the Package */ |
76 |
final private String name; |
private final String name; |
77 |
|
|
78 |
/** The name if the implementation */ |
/** The name if the implementation */ |
79 |
final private String implTitle; |
private final String implTitle; |
80 |
|
|
81 |
/** The vendor that wrote this implementation */ |
/** The vendor that wrote this implementation */ |
82 |
final private String implVendor; |
private final String implVendor; |
83 |
|
|
84 |
/** The version of this implementation */ |
/** The version of this implementation */ |
85 |
final private String implVersion; |
private final String implVersion; |
86 |
|
|
87 |
/** The name of the specification */ |
/** The name of the specification */ |
88 |
final private String specTitle; |
private final String specTitle; |
89 |
|
|
90 |
/** The name of the specification designer */ |
/** The name of the specification designer */ |
91 |
final private String specVendor; |
private final String specVendor; |
92 |
|
|
93 |
/** The version of this specification */ |
/** The version of this specification */ |
94 |
final private String specVersion; |
private final String specVersion; |
95 |
|
|
96 |
/** If sealed the origin of the package classes, otherwise null */ |
/** If sealed the origin of the package classes, otherwise null */ |
97 |
final private URL sealed; |
private final URL sealed; |
98 |
|
|
99 |
/** |
/** |
100 |
* A package local constructor for the Package class. All parameters except |
* A package local constructor for the Package class. All parameters except |