Package VASSAL.configure
Class SingleChildInstance
java.lang.Object
VASSAL.configure.SingleChildInstance
- All Implemented Interfaces:
ValidityChecker
public class SingleChildInstance extends Object implements ValidityChecker
Ensures that at most a single instance of a given type
belongs to a given parent
-
Constructor Summary
Constructors Constructor Description SingleChildInstance(AbstractConfigurable target, Class<?> childClass)
-
Method Summary
Modifier and Type Method Description void
validate(Buildable b, ValidationReport report)
-
Constructor Details
-
SingleChildInstance
-
-
Method Details
-
validate
- Specified by:
validate
in interfaceValidityChecker
-