void on()

in domain/src/main/java/demoapp/dom/domain/properties/Property/domainEvent/PropertyDomainEventControlStrategy.java [63:73]


        void on(PropertyDomainEventPage.TextDomainEvent ev, ServiceRegistry serviceRegistry) {
            switch (ev.getEventPhase()) {
                case VALIDATE:
                    String newValue = ev.getNewValue();
                    if(!newValue.toUpperCase().equals(newValue)) {
                        ev.invalidate("must be upper case");
                    }
                    break;
            }

        }