Gridarta Editor
net.sf.gridarta.model.validation.errors.SquareWithoutFloorError< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Class Template Reference

A MapValidator that checks for squares without a floor. More...

+ Inheritance diagram for net.sf.gridarta.model.validation.errors.SquareWithoutFloorError< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
+ Collaboration diagram for net.sf.gridarta.model.validation.errors.SquareWithoutFloorError< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:

Public Member Functions

void correct (@NotNull final Component parentComponent)
 Try to correct this error. More...
 
String getParameter (final int id)
 
 SquareWithoutFloorError (@NotNull final MapSquare< G, A, R > mapSquare)
 Creates a new instance. More...
 
- Public Member Functions inherited from net.sf.gridarta.model.validation.errors.SquareValidationError< G, A, R >
 SquareValidationError ( @NotNull final MapSquare< G, A, R > mapSquare)
 Creates a new instance. More...
 

Static Private Attributes

static final long serialVersionUID = 1L
 The serial version UID. More...
 

Detailed Description

A MapValidator that checks for squares without a floor.

Author
Christian Hujer

Definition at line 34 of file SquareWithoutFloorError.java.

Constructor & Destructor Documentation

◆ SquareWithoutFloorError()

net.sf.gridarta.model.validation.errors.SquareWithoutFloorError< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.SquareWithoutFloorError ( @NotNull final MapSquare< G, A, R >  mapSquare)

Creates a new instance.

Parameters
mapSquarethe square on which the error occurred

Definition at line 45 of file SquareWithoutFloorError.java.

Member Function Documentation

◆ correct()

void net.sf.gridarta.model.validation.errors.SquareWithoutFloorError< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.correct ( @NotNull final Component  parentComponent)

Try to correct this error.

Parameters
parentComponentparent component to display a dialog upon in case this error needs to query information from the user for correction

Implements net.sf.gridarta.model.validation.errors.CorrectableError.

Definition at line 50 of file SquareWithoutFloorError.java.

◆ getParameter()

String net.sf.gridarta.model.validation.errors.SquareWithoutFloorError< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getParameter ( final int  id)

Definition at line 56 of file SquareWithoutFloorError.java.

Member Data Documentation

◆ serialVersionUID

final long net.sf.gridarta.model.validation.errors.SquareWithoutFloorError< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.serialVersionUID = 1L
staticprivate

The serial version UID.

Definition at line 39 of file SquareWithoutFloorError.java.


The documentation for this class was generated from the following file: