ValidatorChain extends ArrayList<Validator> { public boolean isValueSpaceConstrained(RDFSClazz range) { boolean isConstrained = false; for (Validator validator : this) { isConstrained |= validator.isValueSpaceConstrained(range); } return isConstrained; }  void addValueSpaceChecks(MethodSpec.Builder methodBuilder, ParameterSpec symbol, RDFSClazz range); String[] getValueSpaceDefinitions(RDFSClazz range); boolean isValueSpaceConstrained(RDFSClazz range); static ValidatorChain getRDFSDefault();  }
@Test public void isValueSpaceConstrained() throws Exception { ValidatorChain chain = new ValidatorChain(); chain.add(new XSDValueSpaceValidator()); assertTrue(chain.isValueSpaceConstrained(xsdPositiveInt)); assertFalse(chain.isValueSpaceConstrained(myCustomType)); }