Class ManualConversionTrigger
- java.lang.Object
-
- ca.cgjennings.apps.arkham.component.conversion.AbstractConversionTrigger
-
- ca.cgjennings.apps.arkham.component.conversion.ManualConversionTrigger
-
- All Implemented Interfaces:
ConversionTrigger
public class ManualConversionTrigger extends AbstractConversionTrigger
AConversionTriggercreated when the user initiates a manual conversion (e.g. from the Edit menu).ManualConversionTriggerreturns"manual"fromgetCause().- Since:
- 3.3
- Author:
- Henrik Rostedt
-
-
Constructor Summary
Constructors Constructor Description ManualConversionTrigger(java.lang.String targetClassName, java.lang.String requiredExtensionName, java.lang.String requiredExtensionId, java.lang.String group)Creates a newManualConversionTriggerindicating that the user has requested a component conversion.
-
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.java.lang.StringgetGroup()Returns the conversion group of the triggering conversion option.java.lang.StringtoString()-
Methods inherited from class ca.cgjennings.apps.arkham.component.conversion.AbstractConversionTrigger
getRequiredExtensionId, getRequiredExtensionName, getTargetClassName
-
-
-
-
Constructor Detail
-
ManualConversionTrigger
public ManualConversionTrigger(java.lang.String targetClassName, java.lang.String requiredExtensionName, java.lang.String requiredExtensionId, java.lang.String group)Creates a newManualConversionTriggerindicating that the user has requested a component conversion.- Parameters:
targetClassName- the identifier of the new component typerequiredExtensionName- the name of the required extension, or null if no extension is requiredrequiredExtensionId- the UUID of the required extension, or null if no extension is requiredgroup- the conversion group the conversion option belongs to, or null if it is a direct conversion option
-
-
Method Detail
-
getGroup
public java.lang.String getGroup()
Returns the conversion group of the triggering conversion option.nullis returned if it was a direct conversion option.- Returns:
- the conversion group or null
-
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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractConversionTrigger
-
-