raccoon.core.bean.descriptor
Class AbsBeanMessages

java.lang.Object
  extended by raccoon.core.bean.descriptor.AbsBeanMessages

public abstract class AbsBeanMessages
extends java.lang.Object

Contains all the error messages related to the bean analyzer.

Since:
Raccoon v0.7
Version:
$Id: AbsBeanMessages.java,v 1.1 2004/08/08 20:25:55 crouvrais Exp $
Author:
Cedric ROUVRAIS

Field Summary
static int GET_LENGTH
          The length of the "get" string: 3 characters.
 
Method Summary
static java.lang.String invalidAdderSignature(java.lang.reflect.Method pAdderMethod)
          Generates the invalid adder signature for a collection property message.
static java.lang.String invalidCollectionSignature(java.lang.reflect.Method pGetMethod)
          Generates the invalid collection signature message for a getter method.
static java.lang.String invalidMethodDropped(java.lang.reflect.Method pMethod, java.lang.String pReason)
          Builds the log message to indicate a method that has been dropped.
static java.lang.String invalidNumberOfParameters(java.lang.reflect.Method pMethod, java.lang.String pExpectedNumber)
          Generates an error message indicating a wrong number of parameters.
static java.lang.String invalidPropertySignature(java.lang.reflect.Method pSetter, java.lang.reflect.Method pGetter)
          Generates the error message related to an invalid property signature.
static java.lang.String notCollectionProperty()
          Generates the message indicating that this isn't a collection property.
static java.lang.String propertyWriteError(java.lang.reflect.Method pMutator, java.lang.Object pInstance, java.lang.Object pData)
          Generates the error message associated to a failure of property write access.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GET_LENGTH

public static final int GET_LENGTH
The length of the "get" string: 3 characters.

Method Detail

notCollectionProperty

public static java.lang.String notCollectionProperty()
Generates the message indicating that this isn't a collection property.

Returns:
the message indicating that there is no adder for this property.

invalidNumberOfParameters

public static java.lang.String invalidNumberOfParameters(java.lang.reflect.Method pMethod,
                                                         java.lang.String pExpectedNumber)
Generates an error message indicating a wrong number of parameters.

Parameters:
pMethod - the method for which the number of parameters is invalid.
pExpectedNumber - the expected number of parameters.
Returns:
the formated error message.

invalidPropertySignature

public static java.lang.String invalidPropertySignature(java.lang.reflect.Method pSetter,
                                                        java.lang.reflect.Method pGetter)
Generates the error message related to an invalid property signature.

Parameters:
pSetter - the setter method
pGetter - the getter method
Returns:
the error message indicating a inconsistant getter/setter association.

propertyWriteError

public static java.lang.String propertyWriteError(java.lang.reflect.Method pMutator,
                                                  java.lang.Object pInstance,
                                                  java.lang.Object pData)
Generates the error message associated to a failure of property write access.

Parameters:
pMutator - the mutator of the property that was invoked.
pInstance - the object instance related to the mutator.
pData - the value of the new property.
Returns:
the error message indicating a failure to modify the value.

invalidAdderSignature

public static java.lang.String invalidAdderSignature(java.lang.reflect.Method pAdderMethod)
Generates the invalid adder signature for a collection property message.

Parameters:
pAdderMethod - the adder method that is invalid.
Returns:
the associated error message.

invalidCollectionSignature

public static java.lang.String invalidCollectionSignature(java.lang.reflect.Method pGetMethod)
Generates the invalid collection signature message for a getter method.

Parameters:
pGetMethod - the getter that has an invalid signature method.
Returns:
the error message related to an invalid collection.

invalidMethodDropped

public static java.lang.String invalidMethodDropped(java.lang.reflect.Method pMethod,
                                                    java.lang.String pReason)
Builds the log message to indicate a method that has been dropped.

Parameters:
pMethod - the method that is ignored.
pReason - the reason for which the method
Returns:
a message indicating that the method has been dropped.


Copyright null null. All Rights Reserved.