Advertisement
VladNitu

Chain of Responsability Activity

Dec 22nd, 2022
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. @startuml
  2. interface Validator {
  3. {method} + setNext(Validator validator)
  4. {method} + handle (Activity activity, UserPublisher userPublisher, String position, String userId)
  5. }
  6.  
  7. abstract class BaseValidator {
  8. {field} - next: Validator
  9.  
  10. {method} + setNext (Validator validator)
  11. {method} + handle (Activity activity, UserPublisher userPublisher, String position, String userId)
  12.  
  13. }
  14.  
  15. class CertificateValidator {
  16. {field} {static} - certificates: List<String>
  17.  
  18. {method} {static} + addCertificateList (String certificate)
  19. {method} {static} + updateCertificateList(List<String> newCertificateList)
  20. }
  21.  
  22. Validator <|.. BaseValidator
  23. BaseValidator o-- Validator
  24. BaseValidator ^-- PositionValidator
  25. BaseValidator ^-- OrganisationValidator
  26. BaseValidator ^-- CertificateValidator
  27. BaseValidator ^-- CompetitivenessValidator
  28. BaseValidator ^-- GenderValidator
  29. @enduml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement