public class VerifierUtils extends Object
Constructor and Description |
---|
VerifierUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
verifyFieldGetterAndSetter(Field field,
NotificationGatherer gatherer)
Helper method to check if a field annotated with
Configurable is properly written. |
static void |
verifyGlobalElementName(Identifiable element,
String name,
NotificationGatherer gatherer)
Given a
name of any annotation, such as Connector.name() ,
Module.name() ,
ConnectionManagement.configElementName()
this method will validates that the can be used as a class name, matching that value against the VALID_NAME_REGEX regex. |
public static void verifyGlobalElementName(Identifiable element, String name, NotificationGatherer gatherer)
name
of any annotation, such as Connector.name()
,
Module.name()
,
ConnectionManagement.configElementName()
this method will validates that the can be used as a class name, matching that value against the VALID_NAME_REGEX
regex.
Valid names: "config","config-with-oauth","config_99"
Invalid names: " con fig ","11config-with-oauth","con#fig_99"element
- the element to notify if an error/warn appliesname
- the string to be validatedgatherer
- the toolkit to gather all the errors/warningspublic static void verifyFieldGetterAndSetter(Field field, NotificationGatherer gatherer)
Configurable
is properly written.field
- the field to validategatherer
- to display errorsCopyright © 2010–2015 MuleSoft, Inc.. All rights reserved.