Class Entry<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.model.validation.checks.Entry<G,A,R>
-
public class Entry<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.ObjectAn entry to match consisting of aGameObjectMatcherand a regular expression which defined the allowed value of the "slaying" field.
-
-
Constructor Summary
Constructors Constructor Description Entry(@NotNull GameObjectMatcher gameObjectMatcher, @NotNull java.util.regex.Pattern regex)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanvalidate(G gameObject, @NotNull ErrorCollector<G,A,R> errorCollector)Validates oneGameObjectinstance.
-
-
-
Constructor Detail
-
Entry
public Entry(@NotNull @NotNull GameObjectMatcher gameObjectMatcher, @NotNull @NotNull java.util.regex.Pattern regex)Creates a new instance.- Parameters:
gameObjectMatcher- selects the game objects to checkregex- the allowed values of the "slaying" field
-
-
Method Detail
-
validate
public boolean validate(@NotNull G gameObject, @NotNull @NotNull ErrorCollector<G,A,R> errorCollector)Validates oneGameObjectinstance.- Parameters:
gameObject- the game object instanceerrorCollector- the error collector to use- Returns:
- whether the game object did match
-
-