Class AbstractExitConnectorModel
- java.lang.Object
-
- net.sf.gridarta.model.exitconnector.AbstractExitConnectorModel
-
- All Implemented Interfaces:
ExitConnectorModel
- Direct Known Subclasses:
DefaultExitConnectorModel
public abstract class AbstractExitConnectorModel extends java.lang.Object implements ExitConnectorModel
Stores information needed by the exit connector.
-
-
Field Summary
-
Fields inherited from interface net.sf.gridarta.model.exitconnector.ExitConnectorModel
AUTO_CREATE_EXIT_DEFAULT, EXIT_ARCHETYPE_NAME_DEFAULT, PASTE_EXIT_NAME_DEFAULT
-
-
Constructor Summary
Constructors Constructor Description AbstractExitConnectorModel()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddExitConnectorModelListener(@NotNull ExitConnectorModelListener listener)Adds anExitConnectorModelListenerto be notified of changes.@NotNull java.lang.StringgetExitArchetypeName()Returns the archetype name when creating exit game objects.@Nullable ExitLocationgetExitLocation()Returns the remembered exit location.booleanisAutoCreateExit()Returns whether exit game objects should be auto-created when needed.booleanisPasteExitName()Returns whether the exit name should be updated.protected abstract booleanloadAutoCreateExit()Returns the stored attribute value forautoCreateExit.protected abstract @NotNull java.lang.StringloadExitArchetypeName()Returns the stored attribute value forexitArchetypeName.protected abstract booleanloadPasteExitName()Returns the stored attribute value forpasteExitName.voidremoveExitConnectorModelListener(@NotNull ExitConnectorModelListener listener)Removes anExitConnectorModelListenerto be notified of changes.protected abstract voidsaveAutoCreateExit(boolean autoCreateExit)Sets the stored attribute value forisAutoCreateExit().protected abstract voidsaveExitArchetypeName(@NotNull java.lang.String exitArchetypeName)Sets the stored attribute value forsetExitArchetypeName(String).protected abstract voidsavePasteExitName(boolean pasteExitName)Sets the stored attribute value forpasteExitName.voidsetAutoCreateExit(boolean autoCreateExit)Sets whether exit game objects should be auto-created when needed.voidsetExitArchetypeName(@NotNull java.lang.String exitArchetypeName)Sets the archetype name for creating exit game objects.voidsetExitLocation(@Nullable ExitLocation exitLocation)Sets the remembered exit location.voidsetPasteExitName(boolean pasteExitName)Sets whether the exit name should be updated.
-
-
-
Method Detail
-
getExitLocation
@Nullable public @Nullable ExitLocation getExitLocation()
Description copied from interface:ExitConnectorModelReturns the remembered exit location.- Specified by:
getExitLocationin interfaceExitConnectorModel- Returns:
- the exit location or
null
-
setExitLocation
public void setExitLocation(@Nullable @Nullable ExitLocation exitLocation)Description copied from interface:ExitConnectorModelSets the remembered exit location.- Specified by:
setExitLocationin interfaceExitConnectorModel- Parameters:
exitLocation- the exit location ornull
-
isPasteExitName
public boolean isPasteExitName()
Description copied from interface:ExitConnectorModelReturns whether the exit name should be updated.- Specified by:
isPasteExitNamein interfaceExitConnectorModel- Returns:
- whether the exit name should be updated
-
setPasteExitName
public void setPasteExitName(boolean pasteExitName)
Description copied from interface:ExitConnectorModelSets whether the exit name should be updated.- Specified by:
setPasteExitNamein interfaceExitConnectorModel- Parameters:
pasteExitName- whether the exit name should be updated
-
isAutoCreateExit
public boolean isAutoCreateExit()
Description copied from interface:ExitConnectorModelReturns whether exit game objects should be auto-created when needed.- Specified by:
isAutoCreateExitin interfaceExitConnectorModel- Returns:
- whether exit game objects should be auto-created when needed
-
setAutoCreateExit
public void setAutoCreateExit(boolean autoCreateExit)
Description copied from interface:ExitConnectorModelSets whether exit game objects should be auto-created when needed.- Specified by:
setAutoCreateExitin interfaceExitConnectorModel- Parameters:
autoCreateExit- whether exit game objects should be auto-created when needed
-
getExitArchetypeName
@NotNull public @NotNull java.lang.String getExitArchetypeName()
Description copied from interface:ExitConnectorModelReturns the archetype name when creating exit game objects.- Specified by:
getExitArchetypeNamein interfaceExitConnectorModel- Returns:
- the archetype name
-
setExitArchetypeName
public void setExitArchetypeName(@NotNull @NotNull java.lang.String exitArchetypeName)Description copied from interface:ExitConnectorModelSets the archetype name for creating exit game objects.- Specified by:
setExitArchetypeNamein interfaceExitConnectorModel- Parameters:
exitArchetypeName- the archetype name
-
addExitConnectorModelListener
public void addExitConnectorModelListener(@NotNull @NotNull ExitConnectorModelListener listener)Description copied from interface:ExitConnectorModelAdds anExitConnectorModelListenerto be notified of changes.- Specified by:
addExitConnectorModelListenerin interfaceExitConnectorModel- Parameters:
listener- the listener
-
removeExitConnectorModelListener
public void removeExitConnectorModelListener(@NotNull @NotNull ExitConnectorModelListener listener)Description copied from interface:ExitConnectorModelRemoves anExitConnectorModelListenerto be notified of changes.- Specified by:
removeExitConnectorModelListenerin interfaceExitConnectorModel- Parameters:
listener- the listener
-
loadPasteExitName
protected abstract boolean loadPasteExitName()
Returns the stored attribute value forpasteExitName.- Returns:
- the attribute value
-
savePasteExitName
protected abstract void savePasteExitName(boolean pasteExitName)
Sets the stored attribute value forpasteExitName.- Parameters:
pasteExitName- the attribute value
-
loadAutoCreateExit
protected abstract boolean loadAutoCreateExit()
Returns the stored attribute value forautoCreateExit.- Returns:
- the attribute value
-
saveAutoCreateExit
protected abstract void saveAutoCreateExit(boolean autoCreateExit)
Sets the stored attribute value forisAutoCreateExit().- Parameters:
autoCreateExit- the attribute value
-
loadExitArchetypeName
@NotNull protected abstract @NotNull java.lang.String loadExitArchetypeName()
Returns the stored attribute value forexitArchetypeName.- Returns:
- the attribute value
-
saveExitArchetypeName
protected abstract void saveExitArchetypeName(@NotNull @NotNull java.lang.String exitArchetypeName)Sets the stored attribute value forsetExitArchetypeName(String).- Parameters:
exitArchetypeName- the attribute value
-
-