Class SuspiciousMsgRegExError<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.model.validation.errors.ValidationError<G,A,R>
-
- net.sf.gridarta.model.validation.errors.MapValidationError<G,A,R>
-
- net.sf.gridarta.model.validation.errors.SquareValidationError<G,A,R>
-
- net.sf.gridarta.model.validation.errors.GameObjectValidationError<G,A,R>
-
- net.sf.gridarta.var.crossfire.model.validation.errors.AbstractSuspiciousMsgError<G,A,R>
-
- net.sf.gridarta.var.crossfire.model.validation.errors.SuspiciousMsgRegExError<G,A,R>
-
- Type Parameters:
G- the game object type of the objectA- the map arch object type of the objectR- the archetype type of the object
- All Implemented Interfaces:
java.io.Serializable,CorrectableError
public class SuspiciousMsgRegExError<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractSuspiciousMsgError<G,A,R>
A @match line contains an invalid regular expression.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SuspiciousMsgRegExError(G gameObject, @NotNull java.lang.String line, @NotNull java.lang.String error)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable java.lang.StringgetParameter(int id)Returns a parameter string to be used in the error message.-
Methods inherited from class net.sf.gridarta.var.crossfire.model.validation.errors.AbstractSuspiciousMsgError
correct
-
Methods inherited from class net.sf.gridarta.model.validation.errors.ValidationError
addGameObject, addMapSquare, getGameObjects, getMapModel, getMapSquares, getMessage, toString
-
-
-
-
Constructor Detail
-
SuspiciousMsgRegExError
public SuspiciousMsgRegExError(@NotNull G gameObject, @NotNull @NotNull java.lang.String line, @NotNull @NotNull java.lang.String error)Creates a new instance.- Parameters:
gameObject- the game object on which the error occurredline- the line that contains the errorerror- the regular expression error
-
-
Method Detail
-
getParameter
@Nullable public @Nullable java.lang.String getParameter(int id)
Description copied from class:ValidationErrorReturns a parameter string to be used in the error message. It can be accessed with {4+id}.- Overrides:
getParameterin classAbstractSuspiciousMsgError<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>- Parameters:
id- the error id- Returns:
- the error string
-
-