public class IdentityImpl extends Object implements Identity, RequiresCallback, IncompatibleWithCallback, Identity.IdentityUpgrade
Identity.IdentityUpgrade
Constructor and Description |
---|
IdentityImpl(String name,
String version) |
Modifier and Type | Method and Description |
---|---|
<T extends Identity> |
forType(Patch.PatchType patchType,
Class<T> clazz) |
Collection<String> |
getIncompatibleWith()
Get a list of patch-ids, this patch is incompatible with.
|
String |
getName()
Patch element provider name.
|
Patch.PatchType |
getPatchType()
Get the patch type.
|
Collection<String> |
getRequires()
List of the applied patch elements to this provider.
|
String |
getResultingVersion()
Get the resulting version of a release or
null for other patches |
String |
getVersion()
Get the target version.
|
IncompatibleWithCallback |
incompatibleWith(String patchID) |
IdentityImpl |
require(String patchId) |
void |
setPatchType(Patch.PatchType patchType) |
void |
setResultingVersion(String resultingVersion) |
public String getName()
UpgradeCondition
getName
in interface UpgradeCondition
public String getVersion()
Identity
getVersion
in interface Identity
public Patch.PatchType getPatchType()
UpgradeCondition
getPatchType
in interface UpgradeCondition
public String getResultingVersion()
Identity.IdentityUpgrade
null
for other patchesgetResultingVersion
in interface Identity.IdentityUpgrade
public Collection<String> getRequires()
UpgradeCondition
getRequires
in interface UpgradeCondition
public Collection<String> getIncompatibleWith()
UpgradeCondition
getIncompatibleWith
in interface UpgradeCondition
public IdentityImpl require(String patchId)
require
in interface RequiresCallback
public IncompatibleWithCallback incompatibleWith(String patchID)
incompatibleWith
in interface IncompatibleWithCallback
public void setResultingVersion(String resultingVersion)
public void setPatchType(Patch.PatchType patchType)
public <T extends Identity> T forType(Patch.PatchType patchType, Class<T> clazz)
Copyright © 2023 JBoss by Red Hat. All rights reserved.