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()
UpgradeConditiongetName in interface UpgradeConditionpublic String getVersion()
IdentitygetVersion in interface Identitypublic Patch.PatchType getPatchType()
UpgradeConditiongetPatchType in interface UpgradeConditionpublic String getResultingVersion()
Identity.IdentityUpgradenull for other patchesgetResultingVersion in interface Identity.IdentityUpgradepublic Collection<String> getRequires()
UpgradeConditiongetRequires in interface UpgradeConditionpublic Collection<String> getIncompatibleWith()
UpgradeConditiongetIncompatibleWith in interface UpgradeConditionpublic IdentityImpl require(String patchId)
require in interface RequiresCallbackpublic IncompatibleWithCallback incompatibleWith(String patchID)
incompatibleWith in interface IncompatibleWithCallbackpublic void setResultingVersion(String resultingVersion)
public void setPatchType(Patch.PatchType patchType)
public <T extends Identity> T forType(Patch.PatchType patchType, Class<T> clazz)
Copyright © 2014 JBoss by Red Hat. All rights reserved.