raccoon.core.utils
Class MsgHelper

java.lang.Object
  extended by raccoon.core.utils.MsgHelper

public final class MsgHelper
extends java.lang.Object

A utility class for generating human readable strings.

Since:
Raccoon v0.5. Created 3 févr. 2003 at 11:49:06
Version:
$Id: MsgHelper.java,v 1.1 2004/08/08 20:19:20 crouvrais Exp $
Author:
Cedric ROUVRAIS

Constructor Summary
protected MsgHelper()
          Utility classes should not have a public or default constructor.
 
Method Summary
static java.lang.String formatNamedResourceFound(java.lang.String pResourceName, java.lang.String pResourceType)
          Formats the string message that indicates the property/resource can't be changed on a running component.
static java.lang.String formatNullParamter(java.lang.String pParamName, java.lang.Class pParamType)
          Formats the string message that indicates a null parameter is illegal.
static java.lang.String formatRequiredResourceNotAssigned(java.lang.String pFieldName, java.lang.Class pInterface, java.lang.String pSetterName)
          Formats the string message that indicates a none assignement of a required ressource.
static java.lang.String formatResourceReadOnly(java.lang.String pParamName, java.lang.Class pParamType)
          Formats the string message that indicates the property/resource can't be changed on a running component.
static java.lang.String formatSpecifiedResourceNotAssigned(java.lang.String pFieldName, java.lang.Class pInterface, java.lang.String pSetterName)
          Formats the string message that indicates a none assignement of a required ressource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MsgHelper

protected MsgHelper()
Utility classes should not have a public or default constructor.

Method Detail

formatSpecifiedResourceNotAssigned

public static java.lang.String formatSpecifiedResourceNotAssigned(java.lang.String pFieldName,
                                                                  java.lang.Class pInterface,
                                                                  java.lang.String pSetterName)
Formats the string message that indicates a none assignement of a required ressource.

Parameters:
pFieldName - the name of the field member without the m
pInterface - the name of the interface that this member handles.
pSetterName - the name of the setter method
Returns:
the formatted message.

formatRequiredResourceNotAssigned

public static java.lang.String formatRequiredResourceNotAssigned(java.lang.String pFieldName,
                                                                 java.lang.Class pInterface,
                                                                 java.lang.String pSetterName)
Formats the string message that indicates a none assignement of a required ressource.

Parameters:
pFieldName - the name of the field member without the m
pInterface - the name of the interface that this member handles.
pSetterName - the name of the setter method
Returns:
the formatted message.

formatNullParamter

public static java.lang.String formatNullParamter(java.lang.String pParamName,
                                                  java.lang.Class pParamType)
Formats the string message that indicates a null parameter is illegal.

Parameters:
pParamName - the name of the parameter.
pParamType - the type of the parameter.
Returns:
the formatted message.

formatResourceReadOnly

public static java.lang.String formatResourceReadOnly(java.lang.String pParamName,
                                                      java.lang.Class pParamType)
Formats the string message that indicates the property/resource can't be changed on a running component.

Parameters:
pParamName - the name of the parameter.
pParamType - the type of the parameter.
Returns:
the formatted message.

formatNamedResourceFound

public static java.lang.String formatNamedResourceFound(java.lang.String pResourceName,
                                                        java.lang.String pResourceType)
Formats the string message that indicates the property/resource can't be changed on a running component.

Parameters:
pResourceName - the name of the resource.
pResourceType - the type of the resource.
Returns:
the formatted message.


Copyright null null. All Rights Reserved.