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;
}
Aggregations