本文整理了Java中org.kie.api.builder.Message.getId()
方法的一些代码示例,展示了Message.getId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.getId()
方法的具体详情如下:
包路径:org.kie.api.builder.Message
类名称:Message
方法名:getId
[英]Returns the unique identifier of this message
[中]返回此消息的唯一标识符
代码示例来源:origin: deepu105/drools-demo
private static String prettyBuildMessage(Message msg) {
return "Message: {"
+ "id="+ msg.getId()
+ ", level=" + msg.getLevel()
+ ", path=" + msg.getPath()
+ ", line=" + msg.getLine()
+ ", column=" + msg.getColumn()
+ ", text=\"" + msg.getText() + "\""
+ "}";
}
代码示例来源:origin: gratiartis/qzr
private static String prettyBuildMessage(Message msg) {
return "Message: {"
+ "id="+ msg.getId()
+ ", level=" + msg.getLevel()
+ ", path=" + msg.getPath()
+ ", line=" + msg.getLine()
+ ", column=" + msg.getColumn()
+ ", text=\"" + msg.getText() + "\""
+ "}";
}
代码示例来源:origin: deepu105/drools-demo
private static String prettyBuildMessage(Message msg) {
return "Message: {"
+ "id="+ msg.getId()
+ ", level=" + msg.getLevel()
+ ", path=" + msg.getPath()
+ ", line=" + msg.getLine()
+ ", column=" + msg.getColumn()
+ ", text=\"" + msg.getText() + "\""
+ "}";
}
代码示例来源:origin: org.kie.guvnor/guvnor-commons-builder
private BuildMessage convertMessage( final Message message ) {
final BuildMessage m = new BuildMessage();
switch ( message.getLevel() ) {
case ERROR:
m.setLevel( BuildMessage.Level.ERROR );
break;
case WARNING:
m.setLevel( BuildMessage.Level.WARNING );
break;
case INFO:
m.setLevel( BuildMessage.Level.INFO );
break;
}
m.setId( message.getId() );
m.setArtifactID( artifactId );
m.setLine( message.getLine() );
if ( message.getPath() != null && !message.getPath().isEmpty() ) {
m.setPath( handles.get( RESOURCE_PATH + "/" + message.getPath() ) );
}
m.setColumn( message.getColumn() );
m.setText( message.getText() );
return m;
}
代码示例来源:origin: org.kie.workbench.services/kie-wb-common-services-backend
static BuildMessage convertMessage(final Message message,
Handles handles) {
final BuildMessage m = new BuildMessage();
switch (message.getLevel()) {
case ERROR:
m.setLevel(Level.ERROR);
break;
case WARNING:
m.setLevel(Level.WARNING);
break;
case INFO:
m.setLevel(Level.INFO);
break;
}
m.setId(message.getId());
m.setLine(message.getLine());
m.setPath(convertPath(message.getPath(),
handles));
m.setColumn(message.getColumn());
m.setText(convertMessageText(message));
return m;
}
内容来源于网络,如有侵权,请联系作者删除!