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(ExitConnectorModelListener listener)
Adds an
ExitConnectorModelListener to be notified of changes. |
java.lang.String |
getExitArchetypeName()
Returns the archetype name when creating exit game objects.
|
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 java.lang.String |
loadExitArchetypeName()
Returns the stored attribute value for
exitArchetypeName . |
protected abstract boolean |
loadPasteExitName()
Returns the stored attribute value for
pasteExitName . |
void |
removeExitConnectorModelListener(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(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(java.lang.String exitArchetypeName)
Sets the archetype name for creating exit game objects.
|
void |
setExitLocation(ExitLocation exitLocation)
Sets the remembered exit location.
|
void |
setPasteExitName(boolean pasteExitName)
Sets whether the exit name should be updated.
|
@Nullable public ExitLocation getExitLocation()
getExitLocation
in interface ExitConnectorModel
null
public void setExitLocation(@Nullable ExitLocation exitLocation)
setExitLocation
in interface ExitConnectorModel
exitLocation
- the exit location or null
public boolean isPasteExitName()
isPasteExitName
in interface ExitConnectorModel
public void setPasteExitName(boolean pasteExitName)
setPasteExitName
in interface ExitConnectorModel
pasteExitName
- whether the exit name should be updatedpublic boolean isAutoCreateExit()
isAutoCreateExit
in interface ExitConnectorModel
public void setAutoCreateExit(boolean autoCreateExit)
setAutoCreateExit
in interface ExitConnectorModel
autoCreateExit
- whether exit game objects should be auto-created
when needed@NotNull public java.lang.String getExitArchetypeName()
getExitArchetypeName
in interface ExitConnectorModel
public void setExitArchetypeName(@NotNull java.lang.String exitArchetypeName)
setExitArchetypeName
in interface ExitConnectorModel
exitArchetypeName
- the archetype namepublic void addExitConnectorModelListener(@NotNull ExitConnectorModelListener listener)
ExitConnectorModelListener
to be notified of changes.addExitConnectorModelListener
in interface ExitConnectorModel
listener
- the listenerpublic void removeExitConnectorModelListener(@NotNull ExitConnectorModelListener listener)
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 java.lang.String loadExitArchetypeName()
exitArchetypeName
.protected abstract void saveExitArchetypeName(@NotNull java.lang.String exitArchetypeName)
setExitArchetypeName(String)
.exitArchetypeName
- the attribute value