Class UpgradeConversionTrigger
- java.lang.Object
-
- ca.cgjennings.apps.arkham.component.conversion.AbstractConversionTrigger
-
- ca.cgjennings.apps.arkham.component.conversion.UpgradeConversionTrigger
-
- All Implemented Interfaces:
ConversionTrigger
public class UpgradeConversionTrigger extends AbstractConversionTrigger
AConversionTriggercreated byGameComponents after being read from file to indicate that the component need to be converted to a new component type.UpgradeConversionTriggerreturns"upgrade"fromgetCause().- Since:
- 3.3
- Author:
- Henrik Rostedt
-
-
Constructor Summary
Constructors Constructor Description UpgradeConversionTrigger(java.lang.String targetClassName)Creates a newUpgradeConversionTriggerindicating a component needs to be upgraded to another component type.UpgradeConversionTrigger(java.lang.String targetClassName, java.lang.String requiredExtensionName, java.lang.String requiredExtensionId)Creates a newUpgradeConversionTriggerindicating a component needs to be upgraded to another component type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCause()Returns a string identifying why the conversion was triggered.-
Methods inherited from class ca.cgjennings.apps.arkham.component.conversion.AbstractConversionTrigger
getRequiredExtensionId, getRequiredExtensionName, getTargetClassName, toString
-
-
-
-
Constructor Detail
-
UpgradeConversionTrigger
public UpgradeConversionTrigger(java.lang.String targetClassName)
Creates a newUpgradeConversionTriggerindicating a component needs to be upgraded to another component type. UseUpgradeConversionTrigger(String, String, String)if the component type belongs to another extension.- Parameters:
targetClassName- the identifier of the new component type
-
UpgradeConversionTrigger
public UpgradeConversionTrigger(java.lang.String targetClassName, java.lang.String requiredExtensionName, java.lang.String requiredExtensionId)Creates a newUpgradeConversionTriggerindicating a component needs to be upgraded to another component type. UseUpgradeConversionTrigger(String)if the component type belongs to the same extension.- Parameters:
targetClassName- the identifier of the new component typerequiredExtensionName- the name of the required extensionrequiredExtensionId- the UUID of the required extension
-
-
Method Detail
-
getCause
public java.lang.String getCause()
Description copied from interface:ConversionTriggerReturns a string identifying why the conversion was triggered. Should generally correspond to the trigger type.- Returns:
- the conversion cause
-
-