| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions copyright 2011 ForgeRock AS |
| | | * Portions copyright 2011-2013 ForgeRock AS |
| | | */ |
| | | |
| | | package org.opends.messages; |
| | | |
| | | import java.util.Locale; |
| | | import java.util.ResourceBundle; |
| | | import java.util.HashMap; |
| | | import java.util.Locale; |
| | | import java.util.Map; |
| | | import java.util.ResourceBundle; |
| | | |
| | | /** |
| | | * Base class for all Message descriptor classes. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | boolean requiresFormatter() { |
| | | return requiresFormat; |
| | | } |
| | |
| | | |
| | | /** |
| | | * Creates a message with arguments that will replace format |
| | | * specifiers in the assocated format string when the message |
| | | * specifiers in the associated format string when the message |
| | | * is rendered to string representation. |
| | | * @return Message object |
| | | * @param a1 message argument |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | boolean requiresFormatter() { |
| | | return true; |
| | | } |
| | |
| | | |
| | | /** |
| | | * Creates a message with arguments that will replace format |
| | | * specifiers in the assocated format string when the message |
| | | * specifiers in the associated format string when the message |
| | | * is rendered to string representation. |
| | | * @return Message object |
| | | * @param a1 message argument |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | boolean requiresFormatter() { |
| | | return true; |
| | | } |
| | |
| | | |
| | | /** |
| | | * Creates a message with arguments that will replace format |
| | | * specifiers in the assocated format string when the message |
| | | * specifiers in the associated format string when the message |
| | | * is rendered to string representation. |
| | | * @return Message object |
| | | * @param a1 message argument |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | boolean requiresFormatter() { |
| | | return true; |
| | | } |
| | |
| | | |
| | | /** |
| | | * Creates a message with arguments that will replace format |
| | | * specifiers in the assocated format string when the message |
| | | * specifiers in the associated format string when the message |
| | | * is rendered to string representation. |
| | | * @return Message object |
| | | * @param a1 message argument |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | boolean requiresFormatter() { |
| | | return true; |
| | | } |
| | |
| | | |
| | | /** |
| | | * Creates a message with arguments that will replace format |
| | | * specifiers in the assocated format string when the message |
| | | * specifiers in the associated format string when the message |
| | | * is rendered to string representation. |
| | | * @return Message object |
| | | * @param a1 message argument |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | boolean requiresFormatter() { |
| | | return true; |
| | | } |
| | |
| | | |
| | | /** |
| | | * Creates a message with arguments that will replace format |
| | | * specifiers in the assocated format string when the message |
| | | * specifiers in the associated format string when the message |
| | | * is rendered to string representation. |
| | | * @return Message object |
| | | * @param a1 message argument |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | boolean requiresFormatter() { |
| | | return true; |
| | | } |
| | |
| | | |
| | | /** |
| | | * Creates a message with arguments that will replace format |
| | | * specifiers in the assocated format string when the message |
| | | * specifiers in the associated format string when the message |
| | | * is rendered to string representation. |
| | | * @return Message object |
| | | * @param a1 message argument |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | boolean requiresFormatter() { |
| | | return true; |
| | | } |
| | |
| | | |
| | | /** |
| | | * Creates a message with arguments that will replace format |
| | | * specifiers in the assocated format string when the message |
| | | * specifiers in the associated format string when the message |
| | | * is rendered to string representation. |
| | | * @return Message object |
| | | * @param a1 message argument |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | boolean requiresFormatter() { |
| | | return true; |
| | | } |
| | |
| | | |
| | | /** |
| | | * Creates a message with arguments that will replace format |
| | | * specifiers in the assocated format string when the message |
| | | * specifiers in the associated format string when the message |
| | | * is rendered to string representation. |
| | | * @return Message object |
| | | * @param a1 message argument |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | boolean requiresFormatter() { |
| | | return true; |
| | | } |
| | |
| | | |
| | | /** |
| | | * Creates a message with arguments that will replace format |
| | | * specifiers in the assocated format string when the message |
| | | * specifiers in the associated format string when the message |
| | | * is rendered to string representation. |
| | | * @return Message object |
| | | * @param a1 message argument |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | boolean requiresFormatter() { |
| | | return true; |
| | | } |
| | |
| | | |
| | | /** |
| | | * Creates a message with arguments that will replace format |
| | | * specifiers in the assocated format string when the message |
| | | * specifiers in the associated format string when the message |
| | | * is rendered to string representation. |
| | | * @return Message object |
| | | * @param a1 message argument |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | boolean requiresFormatter() { |
| | | return true; |
| | | } |
| | |
| | | |
| | | /** |
| | | * Creates a message with arguments that will replace format |
| | | * specifiers in the assocated format string when the message |
| | | * specifiers in the associated format string when the message |
| | | * is rendered to string representation. |
| | | * @return Message object |
| | | * @param args message arguments |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | boolean requiresFormatter() { |
| | | return true; |
| | | } |
| | |
| | | |
| | | /** |
| | | * Creates a message with arguments that will replace format |
| | | * specifiers in the assocated format string when the message |
| | | * specifiers in the associated format string when the message |
| | | * is rendered to string representation. |
| | | * @return Message object |
| | | * @param args message arguments |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | boolean requiresFormatter() { |
| | | return this.requiresFormatter; |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * Obtains the severity of this descriptor. Gauranteed not to be null. |
| | | * Obtains the severity of this descriptor. Guaranteed not to be null. |
| | | * @return Category of this message |
| | | */ |
| | | public final Severity getSeverity() { |
| | |
| | | * to the given format string. Note that a format string |
| | | * might have literal specifiers (%% or %n for example) that |
| | | * require formatting but are not replaced by arguments. |
| | | * @param s candiate for formatting |
| | | * @param s candidate for formatting |
| | | * @return boolean where true indicates that the format |
| | | * string requires formatting |
| | | */ |