/** * Validates the validateClassCode constraint of '<em>Person</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean validatePerson_validateClassCode(Person person, DiagnosticChain diagnostics, Map<Object, Object> context) { return person.validateClassCode(diagnostics, context); }
/** * Validates the validateDeterminerCode constraint of '<em>Person</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean validatePerson_validateDeterminerCode(Person person, DiagnosticChain diagnostics, Map<Object, Object> context) { return person.validateDeterminerCode(diagnostics, context); }
if ((node instanceof Person && ((Person) node).getNames().isEmpty()) || (node instanceof Patient && ((Patient) node).getNames().isEmpty()) || (node instanceof IntendedRecipient && ((IntendedRecipient) node).getInformationRecipient().getNames().isEmpty()) || (node instanceof RelatedSubject && ((RelatedSubject) node).getSubject().getNames().isEmpty())) { hasErrors = true;
assignedPerson.getNames().add(name);