Package org.openbp.common.generic.msgcontainer

Examples of org.openbp.common.generic.msgcontainer.MsgItem


      boolean ret = true;
      StringBuffer sb = new StringBuffer();

      for (Iterator it = msgContainer.getMsgs(); it.hasNext();)
      {
        MsgItem error = (MsgItem) it.next();

        if (error.getMsgType().equals(LogLevel.ERROR))
        {
          // No warning, so validation failed
          ret = false;
        }

        String errorMsg = error.toString();
        if (sb.length() != 0)
          sb.append("\n");
        sb.append(errorMsg);
      }
View Full Code Here


    // Print any errors to stderr
    StandardMsgContainer msgContainer = getModelMgr().getMsgContainer();
    for (Iterator it = msgContainer.getMsgs(); it.hasNext();)
    {
      MsgItem msgItem = (MsgItem) it.next();
      LogUtil.error(getClass(), msgItem.getFormattedMsgWithSource());
    }
    msgContainer.clearMsgs();

    LogUtil.info(getClass(), "Model load complete.");
  }
View Full Code Here

TOP

Related Classes of org.openbp.common.generic.msgcontainer.MsgItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.