public final class ClassModelHelper extends Object
| Modifier and Type | Method and 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.
|
public static String formatMessageId(String projectCode, int padLength, int messageId)
projectCode - the project code for the messagemessageId - the message id to formatpublic static String implementationClassName(MessageInterface messageInterface) throws IllegalArgumentException
messageInterface - the message interface to generate the implementation name for.IllegalArgumentException - if the message interface is not a message bundle or a message logger.public static String implementationClassName(MessageInterface messageInterface, String translationSuffix) throws IllegalArgumentException
messageInterface - the message interface to generate the implementation name for.translationSuffix - the local suffix for the translation.IllegalArgumentException - if the message interface is not a message bundle or a message logger.Copyright © 2017 JBoss by Red Hat. All rights reserved.