Lines 47-55
Link Here
|
47 |
*/ |
47 |
*/ |
48 |
public final class Specification { |
48 |
public final class Specification { |
49 |
|
49 |
|
50 |
private String name; |
50 |
private final String displayName; |
51 |
private SpecificationVersion version; |
51 |
private final String name; |
52 |
private Profile[] profiles; |
52 |
private final SpecificationVersion version; |
|
|
53 |
private final Profile[] profiles; |
53 |
|
54 |
|
54 |
|
55 |
|
55 |
/** |
56 |
/** |
Lines 58-76
Link Here
|
58 |
* @param version of the specification e.g. 1.4 |
59 |
* @param version of the specification e.g. 1.4 |
59 |
*/ |
60 |
*/ |
60 |
public Specification (String name, SpecificationVersion version) { |
61 |
public Specification (String name, SpecificationVersion version) { |
61 |
this (name, version, null); |
62 |
this (name, name, version, null); |
62 |
} |
63 |
} |
63 |
|
64 |
|
64 |
/** |
65 |
/** |
65 |
* Creates new SDK Specification |
66 |
* Creates new SDK Specification |
66 |
* @param name of the specification e.g J2SE |
67 |
* @param name of the specification e.g J2SE |
67 |
* @param version of the specification e.g. 1.4 |
68 |
* @param version of the specification e.g. 1.4 |
68 |
* @param profiles of the Java SDK |
69 |
* @param profiles of the Java SDK (may be null) |
69 |
*/ |
70 |
*/ |
70 |
public Specification (String name, SpecificationVersion version, Profile[] profiles) { |
71 |
public Specification (String name, SpecificationVersion version, Profile[] profiles) { |
71 |
this.name = name; |
72 |
this (name, name, version, profiles); |
|
|
73 |
} |
74 |
|
75 |
/** |
76 |
* Creates a new SDK Specification |
77 |
* @param displayName The display name (i.e. Java ME vs J2ME, the official |
78 |
* specification name) |
79 |
* @param name The programmatic, official name of the specification |
80 |
* @param version The version |
81 |
* @since 1.14 |
82 |
*/ |
83 |
public Specification (String displayName, String name, SpecificationVersion version) { |
84 |
this (displayName, name, version, null); |
85 |
} |
86 |
|
87 |
/** |
88 |
* Creates a new SDK Specification |
89 |
* @param displayName The display name (i.e. Java ME vs J2ME, the official |
90 |
* specification name) |
91 |
* @param name The programmatic, official name of the specification |
92 |
* @param version The version |
93 |
* @param profiles profiles of the Java SDK (may be null) |
94 |
* @since 1.14 |
95 |
*/ |
96 |
public Specification (String displayName, String name, SpecificationVersion version, Profile[] profiles) { |
97 |
this.name = displayName; |
72 |
this.version = version; |
98 |
this.version = version; |
73 |
this.profiles = profiles; |
99 |
this.profiles = profiles; |
|
|
100 |
this.displayName = name; |
74 |
} |
101 |
} |
75 |
|
102 |
|
76 |
/** |
103 |
/** |
Lines 82-87
Link Here
|
82 |
} |
109 |
} |
83 |
|
110 |
|
84 |
/** |
111 |
/** |
|
|
112 |
* Get the display name of the specification (e.g. "Java ME" for |
113 |
* j2me. |
114 |
* |
115 |
* @return |
116 |
* @since 1.14 |
117 |
*/ |
118 |
public final String getDisplayName() { |
119 |
return this.displayName; |
120 |
} |
121 |
|
122 |
/** |
85 |
* Returns the version of the Java specification e.g 1.4 |
123 |
* Returns the version of the Java specification e.g 1.4 |
86 |
* @return instance of SpecificationVersion |
124 |
* @return instance of SpecificationVersion |
87 |
*/ |
125 |
*/ |