Search in sources :

Example 6 with ListenerModel

use of org.kie.workbench.common.services.shared.kmodule.ListenerModel in project kie-wb-common by kiegroup.

the class ListenerConverter method unmarshal.

@Override
public Object unmarshal(HierarchicalStreamReader reader, final UnmarshallingContext context) {
    final ListenerModel listener = new ListenerModel();
    listener.setType(reader.getAttribute("type"));
    listener.setKind(ListenerModel.Kind.fromString(reader.getNodeName()));
    return listener;
}
Also used : ListenerModel(org.kie.workbench.common.services.shared.kmodule.ListenerModel)

Aggregations

ListenerModel (org.kie.workbench.common.services.shared.kmodule.ListenerModel)6 Test (org.junit.Test)2 KnowledgeSessionListItemPresenter (org.kie.workbench.common.screens.library.client.settings.knowledgebases.item.knowledgesessions.KnowledgeSessionListItemPresenter)2 HTMLElement (elemental2.dom.HTMLElement)1 KSessionModel (org.kie.workbench.common.services.shared.kmodule.KSessionModel)1