public class DefaultAsideAnswer extends Object implements AsideAnswer
DefaultAsideAnswer
is just a container for properties but does not modify them
in any way.Constructor and Description |
---|
DefaultAsideAnswer(boolean canceled,
DockableProperty location,
PlaceholderMap layout)
Creates a new answer.
|
Modifier and Type | Method and Description |
---|---|
PlaceholderMap |
getLayout()
Gets the layout of a non-existent child station.
|
DockableProperty |
getLocation()
Gets the location generated by the child station.
|
boolean |
isCanceled()
Tells whether the request was canceled.
|
public DefaultAsideAnswer(boolean canceled, DockableProperty location, PlaceholderMap layout)
canceled
- whether the request was canceledlocation
- the location of the new itemlayout
- the layout of the non-existing stationpublic boolean isCanceled()
AsideAnswer
isCanceled
in interface AsideAnswer
public DockableProperty getLocation()
AsideAnswer
successor
. A value of null
indicates
the the child station did not produce a location.getLocation
in interface AsideAnswer
null
public PlaceholderMap getLayout()
AsideAnswer
null
either indicates that
the child station exists, or that it does not (no longer) have a layout worth saving.getLayout
in interface AsideAnswer
null