VASSAL.configure
Class MandatoryComponent

java.lang.Object
  |
  +--VASSAL.configure.MandatoryComponent
All Implemented Interfaces:
ValidityChecker

public class MandatoryComponent
extends java.lang.Object
implements ValidityChecker

Requires that at least one child of a given type exist within a target component


Constructor Summary
MandatoryComponent(AbstractConfigurable target, java.lang.Class requiredChildClass)
           
 
Method Summary
 void validate(Buildable b, ValidationReport report)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MandatoryComponent

public MandatoryComponent(AbstractConfigurable target,
                          java.lang.Class requiredChildClass)
Method Detail

validate

public void validate(Buildable b,
                     ValidationReport report)
Specified by:
validate in interface ValidityChecker