VASSAL.configure
Class SingleChildInstance

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

public class SingleChildInstance
extends java.lang.Object
implements ValidityChecker

Ensures that at most a single instance of a given type belongs to a given parent


Constructor Summary
SingleChildInstance(AbstractConfigurable target, java.lang.Class childClass)
           
 
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

SingleChildInstance

public SingleChildInstance(AbstractConfigurable target,
                           java.lang.Class childClass)
Method Detail

validate

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