build a html list out of given message set.

@param messages set of message strings
@return safe html with massages as list
4835
public static SafeHtml messagesToList(final Set<String> messages) {
    final SafeHtmlBuilder sbList = new SafeHtmlBuilder();
    sbList.appendHtmlConstant("<ul>");
    for (final String message : messages) {
      sbList.appendHtmlConstant("<li>");
      sbList.appendEscaped(message);
      sbList.appendHtmlConstant("</li>");
    }
    sbList.appendHtmlConstant("</ul>");

    return sbList.toSafeHtml();
  }
1373298
public EnumMap<Level, List<Message>> getMessages() {
        final EnumMap<Level, List<Message>> copyOfMessages = new EnumMap<Level, List<Message>>(Level.class);
        for (final Level level : Level.values()) {
            if (containsMessages(level)) {
                copyOfMessages.put(level, getMessages(level));
            }
        }
        return copyOfMessages;
    }
1198513
public List<ConversionMessage> getMessages( ConversionMessageType messageType ) {
        List<ConversionMessage> messages = new ArrayList<ConversionMessage>();
        for ( ConversionMessage message : this.messages ) {
            if ( message.getMessageType() == messageType ) {
                messages.add( message );
            }
        }
        return messages;
    }
1184753
protected static String buildMessage(String msg) {
        StackTraceElement caller = new Throwable().fillInStackTrace().getStackTrace()[2];
        return caller.getClassName() + "." + caller.getMethodName() + "(): \n" + msg;
    }
1353144
private static void prettyPrintWarningMessage(final List<String> results, final String message) {
        for (final String line: message.split("\\r?\\n")) {
            final StringBuilder builder = new StringBuilder(line);
            while (builder.length() > TEXT_WARNING_WIDTH) {
                int space = getLastSpace(builder, TEXT_WARNING_WIDTH);
                if (space <= 0) space = TEXT_WARNING_WIDTH;
                results.add(String.format("%s%s", TEXT_WARNING_PREFIX, builder.substring(0, space)));
                builder.delete(0, space + 1);
            }
            results.add(String.format("%s%s", TEXT_WARNING_PREFIX, builder));
        }
    }
874256
private CmsMessages getMessages() {

        if (m_messages == null) {
            if (m_cms != null) {
                m_messages = Messages.get().getBundle(OpenCms.getWorkplaceManager().getWorkplaceLocale(m_cms));
            } else {
                m_messages = Messages.get().getBundle();
            }
        }
        return m_messages;
    }
1093770
public long[] append(MessageSet messages) throws IOException {
        checkMutable();
        long written = 0L;
        while (written < messages.getSizeInBytes())
            written += messages.writeTo(channel, 0, messages.getSizeInBytes());
        long beforeOffset = setSize.getAndAdd(written);
        return new long[]{written, beforeOffset};
    }
825025
public static SMTPDeliveryEnvelope[] create(final String sender, final Collection<String> recipients, final SMTPMessage... messages) {
        if (messages == null || messages.length <1 ){
            throw new IllegalArgumentException("At least one MessageInput must be given");
        }
        
        Collection<String> rcpts = Collections.unmodifiableCollection(recipients);
        SMTPDeliveryEnvelope[] transactions = new SMTPDeliveryEnvelope[messages.length];
        for (int i = 0; i < transactions.length; i++) {
            transactions[i] = new SMTPDeliveryEnvelopeImpl(sender, rcpts , messages[i], false);
        }
        return transactions;
    }
485823
public ExtjsConditionManager addSuccessConditions(String... messages) {
        for (String message : messages) {
            if (message != null && message.length() > 0) {
                this.add(new MessageBoxSuccessCondition(message));
            }
        }
        return this;
    }
518649
public static String longMessage( List<CompilerError> messages )
    {
        StringBuffer sb = new StringBuffer();

        if ( messages != null )
        {
            for ( CompilerError compilerError : messages )
            {
                sb.append( compilerError ).append( LS );
            }
        }
        return sb.toString();
    }
818813
public MessageBuilder append(String message, MessageDecoration... decorations) {
        delegate.append(message, decorations);
        return this;
    }
518940
public ExtjsConditionManager addFailConditions(String... messages) {
        for (String message : messages) {
            if (message != null && message.length() > 0) {
                this.add(new MessageBoxFailCondition(message));
            }
        }
        return this;
    }
971175
public void setMessages(java.util.Collection<Message> messages) {
        if (messages == null) {
            this.messages = null;
            return;
        }

        this.messages = new java.util.ArrayList<Message>(messages);
    }
698624
protected Map<String, Message.Builder> getMessageMap() {
    return new HashMap<String, Message.Builder>(messageMap);
  }
1106173
public static String shortMessage( List<CompilerError> messages )
    {
        StringBuffer sb = new StringBuffer();

        sb.append( "Compilation failure" );

        if ( messages.size() == 1 )
        {
            sb.append( LS );

            CompilerError compilerError = (CompilerError) messages.get( 0 );

            sb.append( compilerError ).append( LS );
        }
        
        return sb.toString();
    }
103608
public List<IType> getMessageOrBuilderList() {
    if (externalMessageOrBuilderList == null) {
      externalMessageOrBuilderList = new MessageOrBuilderExternalList<MType, BType, IType>(this);
    }
    return externalMessageOrBuilderList;
  }
415074
function renderMessages(messages, parentIndex) {
    /**
     * Get HTML (table row) describing a message.
     * @param {Object} message Message.
     * @returns {string} HTML (table row) describing a message.
     */
    return lodash.map(messages, function(message) {
        var lineNumber,
            columnNumber;

        lineNumber = message.line || 0;
        columnNumber = message.column || 0;

        return messageTemplate({
            parentIndex: parentIndex,
            lineNumber: lineNumber,
            columnNumber: columnNumber,
            severityNumber: message.severity,
            severityName: message.severity === 1 ? "Warning" : "Error",
            message: message.message,
            ruleId: message.ruleId
        });
    }).join("\n");
}