/
CapabilityLicFeatureLevel.java
42 lines (35 loc) · 1.22 KB
/
CapabilityLicFeatureLevel.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*******************************************************************************
* Copyright (c) 2020 ArSysOp
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0/.
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* ArSysOp - initial API and implementation
*******************************************************************************/
package org.eclipse.passage.lic.internal.equinox.requirements;
import java.util.Map;
import org.eclipse.passage.lic.internal.api.requirements.Requirement;
import org.eclipse.passage.lic.internal.base.NamedData;
/**
* Encapsulate reading of a {@code restriction level} of a feature under
* licensing from a {@code Capability}'s attributes.
*
* @see NamedData
*/
@SuppressWarnings("restriction")
public final class CapabilityLicFeatureLevel extends CapabilityLicFeatureInfo {
public CapabilityLicFeatureLevel(Requirement requirement) {
super(requirement.restrictionLevel().identifier());
}
public CapabilityLicFeatureLevel(Map<String, Object> container) {
super(container);
}
@Override
public String key() {
return "level"; //$NON-NLS-1$
}
}