/** * Validates the validatePlayingEntityChoice constraint of '<em>Participant Role</em>'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public boolean validateParticipantRole_validatePlayingEntityChoice(ParticipantRole participantRole, DiagnosticChain diagnostics, Map<Object, Object> context) { return participantRole.validatePlayingEntityChoice(diagnostics, context); }
(node instanceof IntendedRecipient && (((IntendedRecipient) node).getAddrs().isEmpty() || ((IntendedRecipient) node).getTelecoms().isEmpty())) || (node instanceof RelatedSubject && (((RelatedSubject) node).getAddrs().isEmpty() || ((RelatedSubject) node).getTelecoms().isEmpty())) || (node instanceof ParticipantRole && (((ParticipantRole) node).getAddrs().isEmpty() || ((ParticipantRole) node).getTelecoms().isEmpty()))) { hasErrors = true; if (diagnostics != null) {