blob: 959a98e3e07649f8805328cf4e3c2a36fa78f49b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package org.onap.sdc.dcae.rule.editor.translators;
import org.onap.sdc.dcae.composition.restmodels.ruleeditor.LogEventAction;
public class LogEventTranslator extends ActionTranslator<LogEventAction> {
private static LogEventTranslator logEventTranslator = new LogEventTranslator();
public static LogEventTranslator getInstance() {
return logEventTranslator;
}
private LogEventTranslator(){}
public Object translateToHpJson(LogEventAction action) {
return new LogEventTranslation(action);
}
private class LogEventTranslation extends ProcessorTranslation {
String title;
LogEventTranslation(LogEventAction action) {
clazz = "LogEvent";
title = action.logTitle();
}
}
}
|