Package net.sf.gridarta.model.validation
Interface ErrorCollector<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
DefaultErrorCollector
public interface ErrorCollector<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.io.SerializableAn interface for classes that collect errors.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcollect(@NotNull ValidationError<G,A,R> error)Collect an error.@NotNull java.lang.Iterable<ValidationError<G,A,R>>getErrors()Get all errors.
-
-
-
Method Detail
-
collect
void collect(@NotNull @NotNull ValidationError<G,A,R> error)Collect an error.- Parameters:
error- Error to collect
-
getErrors
@NotNull @NotNull java.lang.Iterable<ValidationError<G,A,R>> getErrors()
Get all errors.- Returns:
- all errors
-
-