Class ClassModelHelper
- java.lang.Object
-
- org.jboss.logging.processor.generator.model.ClassModelHelper
-
public final class ClassModelHelper extends Object
Utilities for the code model.- Author:
- James R. Perkins
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
formatMessageId(String projectCode, int padLength, int messageId)
Formats message id.static String
implementationClassName(MessageInterface messageInterface)
Creates the implementation class name for the message interface.static String
implementationClassName(MessageInterface messageInterface, String translationSuffix)
Creates the implementation class name for the message interface.
-
-
-
Method Detail
-
formatMessageId
public static String formatMessageId(String projectCode, int padLength, int messageId)
Formats message id.- Parameters:
projectCode
- the project code for the messagemessageId
- the message id to format- Returns:
- the formatted message id
-
implementationClassName
public static String implementationClassName(MessageInterface messageInterface) throws IllegalArgumentException
Creates the implementation class name for the message interface.- Parameters:
messageInterface
- the message interface to generate the implementation name for.- Returns:
- the implementation class name
- Throws:
IllegalArgumentException
- if the message interface is not a message bundle or a message logger.
-
implementationClassName
public static String implementationClassName(MessageInterface messageInterface, String translationSuffix) throws IllegalArgumentException
Creates the implementation class name for the message interface.- Parameters:
messageInterface
- the message interface to generate the implementation name for.translationSuffix
- the local suffix for the translation.- Returns:
- the implementation class name
- Throws:
IllegalArgumentException
- if the message interface is not a message bundle or a message logger.
-
-