Changes
parent
739a5f713b
commit
7ba3d21076
|
@ -30,17 +30,18 @@ public class GenerateConstant {
|
||||||
public static String generateConstant(Rule rule, RuleEdition ruleEdition) {
|
public static String generateConstant(Rule rule, RuleEdition ruleEdition) {
|
||||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
|
||||||
String format = simpleDateFormat.format(new Date());
|
String format = simpleDateFormat.format(new Date());
|
||||||
String level = selectType(rule.getRuleType());
|
// String level = selectType(rule.getRuleType());
|
||||||
return PACKAGE_PATH + "\n" +
|
return
|
||||||
ACTION_IMPORT + "\n" +
|
// PACKAGE_PATH + "\n" +
|
||||||
SCOPE_IMPORT + level + ";\n" +
|
// ACTION_IMPORT + "\n" +
|
||||||
|
// SCOPE_IMPORT + level + ";\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"/**\n" +
|
"/**\n" +
|
||||||
" * @date: " + format + "\n" +
|
" * @date: " + format + "\n" +
|
||||||
" * @Description: " + ruleEdition.getName() + "_" + ruleEdition.getRuleKind() + "\n" +
|
" * @Description: " + ruleEdition.getName() + "_" + ruleEdition.getRuleKind() + "\n" +
|
||||||
" * @Version: 1.0\n" +
|
" * @Version: 1.0\n" +
|
||||||
" */\n" +
|
" */\n" +
|
||||||
"public class " + getClassName(ruleEdition.getRuleCoding()) + " extends " + DATA_FIELD + " {\n" +
|
"public class " + rule.getName() + getClassName(ruleEdition.getRuleCoding()) + " extends " + "DataEngineValueActuator" + " {\n" +
|
||||||
" @Override\n" +
|
" @Override\n" +
|
||||||
" public void run () {\n" +
|
" public void run () {\n" +
|
||||||
" }\n" +
|
" }\n" +
|
||||||
|
|
Loading…
Reference in New Issue