public abstract class AbstractExitConnectorModel extends java.lang.Object implements ExitConnectorModel
AUTO_CREATE_EXIT_DEFAULT, EXIT_ARCHETYPE_NAME_DEFAULT, PASTE_EXIT_NAME_DEFAULT| Constructor and Description |
|---|
AbstractExitConnectorModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addExitConnectorModelListener(@NotNull ExitConnectorModelListener listener)
Adds an
ExitConnectorModelListener to be notified of changes. |
@NotNull java.lang.String |
getExitArchetypeName()
Returns the archetype name when creating exit game objects.
|
@Nullable ExitLocation |
getExitLocation()
Returns the remembered exit location.
|
boolean |
isAutoCreateExit()
Returns whether exit game objects should be auto-created when needed.
|
boolean |
isPasteExitName()
Returns whether the exit name should be updated.
|
protected abstract boolean |
loadAutoCreateExit()
Returns the stored attribute value for
autoCreateExit. |
protected abstract @NotNull java.lang.String |
loadExitArchetypeName()
Returns the stored attribute value for
exitArchetypeName. |
protected abstract boolean |
loadPasteExitName()
Returns the stored attribute value for
pasteExitName. |
void |
removeExitConnectorModelListener(@NotNull ExitConnectorModelListener listener)
Removes an
ExitConnectorModelListener to be notified of changes. |
protected abstract void |
saveAutoCreateExit(boolean autoCreateExit)
Sets the stored attribute value for
isAutoCreateExit(). |
protected abstract void |
saveExitArchetypeName(@NotNull java.lang.String exitArchetypeName)
Sets the stored attribute value for
setExitArchetypeName(String). |
protected abstract void |
savePasteExitName(boolean pasteExitName)
Sets the stored attribute value for
pasteExitName. |
void |
setAutoCreateExit(boolean autoCreateExit)
Sets whether exit game objects should be auto-created when needed.
|
void |
setExitArchetypeName(@NotNull java.lang.String exitArchetypeName)
Sets the archetype name for creating exit game objects.
|
void |
setExitLocation(@Nullable ExitLocation exitLocation)
Sets the remembered exit location.
|
void |
setPasteExitName(boolean pasteExitName)
Sets whether the exit name should be updated.
|
@Nullable public @Nullable ExitLocation getExitLocation()
ExitConnectorModelgetExitLocation in interface ExitConnectorModelnullpublic void setExitLocation(@Nullable
@Nullable ExitLocation exitLocation)
ExitConnectorModelsetExitLocation in interface ExitConnectorModelexitLocation - the exit location or nullpublic boolean isPasteExitName()
ExitConnectorModelisPasteExitName in interface ExitConnectorModelpublic void setPasteExitName(boolean pasteExitName)
ExitConnectorModelsetPasteExitName in interface ExitConnectorModelpasteExitName - whether the exit name should be updatedpublic boolean isAutoCreateExit()
ExitConnectorModelisAutoCreateExit in interface ExitConnectorModelpublic void setAutoCreateExit(boolean autoCreateExit)
ExitConnectorModelsetAutoCreateExit in interface ExitConnectorModelautoCreateExit - whether exit game objects should be auto-created
when needed@NotNull public @NotNull java.lang.String getExitArchetypeName()
ExitConnectorModelgetExitArchetypeName in interface ExitConnectorModelpublic void setExitArchetypeName(@NotNull
@NotNull java.lang.String exitArchetypeName)
ExitConnectorModelsetExitArchetypeName in interface ExitConnectorModelexitArchetypeName - the archetype namepublic void addExitConnectorModelListener(@NotNull
@NotNull ExitConnectorModelListener listener)
ExitConnectorModelExitConnectorModelListener to be notified of changes.addExitConnectorModelListener in interface ExitConnectorModellistener - the listenerpublic void removeExitConnectorModelListener(@NotNull
@NotNull ExitConnectorModelListener listener)
ExitConnectorModelExitConnectorModelListener to be notified of changes.removeExitConnectorModelListener in interface ExitConnectorModellistener - the listenerprotected abstract boolean loadPasteExitName()
pasteExitName.protected abstract void savePasteExitName(boolean pasteExitName)
pasteExitName.pasteExitName - the attribute valueprotected abstract boolean loadAutoCreateExit()
autoCreateExit.protected abstract void saveAutoCreateExit(boolean autoCreateExit)
isAutoCreateExit().autoCreateExit - the attribute value@NotNull protected abstract @NotNull java.lang.String loadExitArchetypeName()
exitArchetypeName.protected abstract void saveExitArchetypeName(@NotNull
@NotNull java.lang.String exitArchetypeName)
setExitArchetypeName(String).exitArchetypeName - the attribute value