/** * INTERNAL: Verify that attributeType is correct for the indirection policy. If it is incorrect, * add an exception to the integrity checker. In this case, the attribute type CANNOT be * ValueHolderInterface. */ public void validateDeclaredAttributeType(Class attributeType, IntegrityChecker checker) throws DescriptorException { super.validateDeclaredAttributeType(attributeType, checker); if (!this.typeIsValid(attributeType)) { checker.handleError( DescriptorException.attributeAndMappingWithoutIndirectionMismatch(this.mapping)); } }