Class ValidatorFactory<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.ValidatorFactory<G,A,R>
-
public class ValidatorFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ValidatorFactory(@NotNull ValidatorPreferences validatorPreferences, @NotNull GameObjectMatchers gameObjectMatchers, @NotNull ProjectSettings projectSettings, @NotNull MapWriter<G,A,R> mapWriter, @NotNull MapManager<G,A,R> mapManager)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Validator<G,A,R>newValidator(@NotNull java.lang.CharSequence spec)Creates a newValidatorinstance from string representation.
-
-
-
Constructor Detail
-
ValidatorFactory
public ValidatorFactory(@NotNull @NotNull ValidatorPreferences validatorPreferences, @NotNull @NotNull GameObjectMatchers gameObjectMatchers, @NotNull @NotNull ProjectSettings projectSettings, @NotNull @NotNull MapWriter<G,A,R> mapWriter, @NotNull @NotNull MapManager<G,A,R> mapManager)Creates a new instance.- Parameters:
validatorPreferences- the validator preferences to pass to the newly created validator instancesgameObjectMatchers- the game object matchers for looking up game object matcher instances from string representationprojectSettings- the project settings to pass to the newly created validator instancesmapWriter- the map writer to pass to the newly created validator instancesmapManager- the map writer to pass to the newly created validator instances
-
-
Method Detail
-
newValidator
@NotNull public @NotNull Validator<G,A,R> newValidator(@NotNull @NotNull java.lang.CharSequence spec) throws NoSuchValidatorException
Creates a newValidatorinstance from string representation.- Parameters:
spec- the string representation- Returns:
- the validator instance
- Throws:
NoSuchValidatorException- if the validator cannot be created
-
-