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()
ExitConnectorModel
getExitLocation
in interface ExitConnectorModel
null
public void setExitLocation(@Nullable @Nullable ExitLocation exitLocation)
ExitConnectorModel
setExitLocation
in interface ExitConnectorModel
exitLocation
- the exit location or null
public boolean isPasteExitName()
ExitConnectorModel
isPasteExitName
in interface ExitConnectorModel
public void setPasteExitName(boolean pasteExitName)
ExitConnectorModel
setPasteExitName
in interface ExitConnectorModel
pasteExitName
- whether the exit name should be updatedpublic boolean isAutoCreateExit()
ExitConnectorModel
isAutoCreateExit
in interface ExitConnectorModel
public void setAutoCreateExit(boolean autoCreateExit)
ExitConnectorModel
setAutoCreateExit
in interface ExitConnectorModel
autoCreateExit
- whether exit game objects should be auto-created
when needed@NotNull public @NotNull java.lang.String getExitArchetypeName()
ExitConnectorModel
getExitArchetypeName
in interface ExitConnectorModel
public void setExitArchetypeName(@NotNull @NotNull java.lang.String exitArchetypeName)
ExitConnectorModel
setExitArchetypeName
in interface ExitConnectorModel
exitArchetypeName
- the archetype namepublic void addExitConnectorModelListener(@NotNull @NotNull ExitConnectorModelListener listener)
ExitConnectorModel
ExitConnectorModelListener
to be notified of changes.addExitConnectorModelListener
in interface ExitConnectorModel
listener
- the listenerpublic void removeExitConnectorModelListener(@NotNull @NotNull ExitConnectorModelListener listener)
ExitConnectorModel
ExitConnectorModelListener
to be notified of changes.removeExitConnectorModelListener
in interface ExitConnectorModel
listener
- 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