public boolean validate(EClass eClass, EObject eObject, DiagnosticChain diagnostics, Map<Object, Object> context) { boolean result = validateDelegatedInvariants(eClass, eObject, diagnostics, context); if (result || diagnostics != null) { result &= validateDelegatedConstraints(eClass, eObject, diagnostics, context); if (result || diagnostics != null) { List<EClass> eSuperTypes = eClass.getESuperTypes(); result &= eSuperTypes.isEmpty() ? validate_EveryDefaultConstraint(eObject, diagnostics, context) : eClass.eContainer() == getEPackage() ? EObjectValidator.this.validate(eClass.getClassifierID(), eObject, diagnostics, context) : validate(eSuperTypes.get(0), eObject, diagnostics, context); } } return result; } }
public boolean validate(EClass eClass, EObject eObject, DiagnosticChain diagnostics, Map<Object, Object> context) { boolean result = validateDelegatedInvariants(eClass, eObject, diagnostics, context); if (result || diagnostics != null) { result &= validateDelegatedConstraints(eClass, eObject, diagnostics, context); if (result || diagnostics != null) { List<EClass> eSuperTypes = eClass.getESuperTypes(); result &= eSuperTypes.isEmpty() ? validate_EveryDefaultConstraint(eObject, diagnostics, context) : eClass.eContainer() == getEPackage() ? EObjectValidator.this.validate(eClass.getClassifierID(), eObject, diagnostics, context) : validate(eSuperTypes.get(0), eObject, diagnostics, context); } } return result; } }
public boolean validate(EDataType eDataType, Object value, DiagnosticChain diagnostics, Map<Object, Object> context) { if (!eDataType.isInstance(value)) { if (value == null) { return true; } else { if (diagnostics != null) reportDataValueTypeViolation(eDataType, value, diagnostics, context); return false; } } if (eDataType.eContainer() == getEPackage()) { return validate(eDataType.getClassifierID(), value, diagnostics, context); } else { return new DynamicEDataTypeValidator(eDataType) { // Ensure that the class loader for this class will be used downstream. // }.validate(eDataType, value, diagnostics, context); } }
public boolean validate(EDataType eDataType, Object value, DiagnosticChain diagnostics, Map<Object, Object> context) { if (!eDataType.isInstance(value)) { if (value == null) { return true; } else { if (diagnostics != null) reportDataValueTypeViolation(eDataType, value, diagnostics, context); return false; } } if (eDataType.eContainer() == getEPackage()) { return validate(eDataType.getClassifierID(), value, diagnostics, context); } else { return new DynamicEDataTypeValidator(eDataType) { // Ensure that the class loader for this class will be used downstream. // }.validate(eDataType, value, diagnostics, context); } }
else if (eClass.eContainer() == getEPackage())
else if (eClass.eContainer() == getEPackage())