Class ReplyValidator<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.var.crossfire.model.validation.checks.ReplyValidator<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
public class ReplyValidator<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.ObjectChecks that @match, text, @reply, and @question lines occur in the correct order.
-
-
Constructor Summary
Constructors Constructor Description ReplyValidator()Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmatch()Processes a @match line.voidreply(@NotNull ErrorGenerator<G,A,R> generator)Processes a qreply or @question line.voidreset()Resets the checker state.voidtext(@NotNull ErrorGenerator<G,A,R> generator)Processes a line of text.
-
-
-
Method Detail
-
reset
public void reset()
Resets the checker state. Afterwards the state is the same as if a new instance was created.
-
text
public void text(@NotNull @NotNull ErrorGenerator<G,A,R> generator)Processes a line of text.- Parameters:
generator- the generator for error messages
-
match
public void match()
Processes a @match line.
-
reply
public void reply(@NotNull @NotNull ErrorGenerator<G,A,R> generator)Processes a qreply or @question line.- Parameters:
generator- the generator for error messages
-
-