Class AbstractConversionTrigger
- java.lang.Object
-
- ca.cgjennings.apps.arkham.component.conversion.AbstractConversionTrigger
-
- All Implemented Interfaces:
ConversionTrigger
- Direct Known Subclasses:
ManualConversionTrigger,UpgradeConversionTrigger
public abstract class AbstractConversionTrigger extends java.lang.Object implements ConversionTrigger
Provides default implementations for theConversionTriggerinterface.- Since:
- 3.3
- Author:
- Henrik Rostedt
-
-
Constructor Summary
Constructors Constructor Description AbstractConversionTrigger(java.lang.String targetClassName, java.lang.String requiredExtensionName, java.lang.String requiredExtensionId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetRequiredExtensionId()Returns the UUID of required extension for the new component type.java.lang.StringgetRequiredExtensionName()Returns the name of required extension for the new component type.java.lang.StringgetTargetClassName()Returns the identifier for the new component type to convert theGameComponentto.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ca.cgjennings.apps.arkham.component.conversion.ConversionTrigger
getCause
-
-
-
-
Method Detail
-
getTargetClassName
public java.lang.String getTargetClassName()
Description copied from interface:ConversionTriggerReturns the identifier for the new component type to convert theGameComponentto.- Specified by:
getTargetClassNamein interfaceConversionTrigger- Returns:
- the target component type identifier
-
getRequiredExtensionName
public java.lang.String getRequiredExtensionName()
Description copied from interface:ConversionTriggerReturns the name of required extension for the new component type. Returnsnullif the extension is the same as the original component type.- Specified by:
getRequiredExtensionNamein interfaceConversionTrigger- Returns:
- the name of the required extension
-
getRequiredExtensionId
public java.lang.String getRequiredExtensionId()
Description copied from interface:ConversionTriggerReturns the UUID of required extension for the new component type. Returnsnullif the extension is the same as the original component type.- Specified by:
getRequiredExtensionIdin interfaceConversionTrigger- Returns:
- the UUID of the required extension
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-