public class JDKDeprecationExtension extends Object
Modifier and Type | Field and Description |
---|---|
static String |
EXTENSION_NAME
Extension name containing the deprecation.
|
Modifier and Type | Method and Description |
---|---|
void |
addMemberInfo(String member,
DeprecationInfo i)
Add deprecation info for a member
|
boolean |
equals(Object obj) |
static JDKDeprecationExtension |
getExtension(org.apache.sling.feature.Extension ext)
Get the execution environment from the extension.
|
static JDKDeprecationExtension |
getExtension(org.apache.sling.feature.Feature feature)
Get the extension from the feature - if it exists.
|
Map<String,DeprecationInfo> |
getMemberInfos()
Get all deprecation member infos
|
int |
hashCode() |
void |
removeMemberInfo(String member)
Remove deprecation info for a member
|
javax.json.JsonObject |
toJSON()
Generate a JSON representation
|
public static final String EXTENSION_NAME
ExtensionType.JSON
and is optional.public static JDKDeprecationExtension getExtension(org.apache.sling.feature.Feature feature)
feature
- The featurenull
.IllegalArgumentException
- If the extension is wrongly formattedpublic static JDKDeprecationExtension getExtension(org.apache.sling.feature.Extension ext)
ext
- The extensionnull
.IllegalArgumentException
- If the extension is wrongly formattedpublic void addMemberInfo(String member, DeprecationInfo i)
member
- The memberi
- The infoIllegalStateException
- if the package is already deprecatedpublic void removeMemberInfo(String member)
member
- The memberpublic Map<String,DeprecationInfo> getMemberInfos()
public javax.json.JsonObject toJSON()
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.