List of usage examples for org.apache.commons.lang ArrayUtils EMPTY_STRING_ARRAY
String[] EMPTY_STRING_ARRAY
To view the source code for org.apache.commons.lang ArrayUtils EMPTY_STRING_ARRAY.
Click Source Link
String
array. From source file:com.aspose.showcase.qrcodegen.web.api.controller.BaseController.java
protected String getLocalizedMessage(String messageKey, HttpServletRequest request) { LOGGER.debug("BaseController::getLocalizedMessage"); return messageSource.getMessage(messageKey, ArrayUtils.EMPTY_STRING_ARRAY, messageKey, RequestContextUtils.getLocale(request)); }
From source file:jef.ui.console.DefaultBatchConsoleShell.java
public final ShellResult performCommand(String str, String... params) { int type = appendCommand(str); if (type == RETURN_READY) { try {// w ww .j a va2 s . c o m executeEnd(commandPool.toArray(ArrayUtils.EMPTY_STRING_ARRAY), str); commandPool.clear(); } catch (Throwable e) { LogUtil.exception(e); } if (isMultiBatch()) return ShellResult.CONTINUE; return ShellResult.TERMINATE; } else if (type == RETURN_CONTINUE) { return ShellResult.CONTINUE; } else if (type == RETURN_TERMINATE) { commandPool.clear(); return ShellResult.TERMINATE; } else { commandPool.clear(); if (isMultiBatch()) return ShellResult.CONTINUE; return ShellResult.TERMINATE; } }
From source file:com.cyclopsgroup.waterview.MapParameters.java
/** * Override method doGetAttributeNames in class MapRequestValueParser * * @see com.cyclopsgroup.waterview.Attributes#doGetAttributeNames() *//*from w w w. jav a 2 s .c om*/ protected String[] doGetAttributeNames() { return (String[]) content.keySet().toArray(ArrayUtils.EMPTY_STRING_ARRAY); }
From source file:com.qcadoo.view.api.exception.ExceptionInfo.java
public ExceptionInfo(final String messageHeader, final String messageExplanation, final String... messageExplanationArgs) { this.messageHeader = messageHeader; this.messageExplanation = messageExplanation; if (ArrayUtils.isEmpty(messageExplanationArgs)) { this.messageExplanationArgs = ArrayUtils.EMPTY_STRING_ARRAY; } else {/*from www . j a v a2s .co m*/ this.messageExplanationArgs = messageExplanationArgs; } }
From source file:com.qcadoo.model.api.validators.ErrorMessage.java
/** * Create new validation error message./*from w w w. j ava 2 s. c om*/ * * @param message * message * @param vars * message's vars */ public ErrorMessage(final String message, final String... vars) { this.message = message; if (ArrayUtils.isEmpty(vars)) { this.vars = ArrayUtils.EMPTY_STRING_ARRAY; } else { this.vars = vars; } }
From source file:com.qcadoo.model.internal.api.ValueAndError.java
private ValueAndError(final Object value, final String message, final String... args) { this.value = value; this.message = message; if (ArrayUtils.isEmpty(args)) { this.args = ArrayUtils.EMPTY_STRING_ARRAY; } else {/*from www . ja va 2 s . c om*/ this.args = args; } }
From source file:com.cyclopsgroup.waterview.utils.TagPackage.java
/** * Get name of tags * * @return Tag name array */ public String[] getTagNames() { return (String[]) tagClasses.keySet().toArray(ArrayUtils.EMPTY_STRING_ARRAY); }
From source file:com.adobe.acs.commons.notifications.impl.InboxNotificationImpl.java
public String[] getNotificationActions() { if (notificationActions == null) { return ArrayUtils.EMPTY_STRING_ARRAY; } else {/* w w w .ja v a 2s. c o m*/ return Arrays.copyOf(notificationActions, notificationActions.length); } }
From source file:com.cyclopsgroup.waterview.servlet.ServletRequestParameters.java
/** * Override method doGetAttributeNames in class ServletRequestValueParser * * @see com.cyclopsgroup.waterview.Attributes#doGetAttributeNames() *///from ww w . java 2 s. c o m protected String[] doGetAttributeNames() { HashSet names = new HashSet(); CollectionUtils.addAll(names, httpServletRequest.getParameterNames()); names.addAll(extra.keySet()); return (String[]) names.toArray(ArrayUtils.EMPTY_STRING_ARRAY); }
From source file:com.opengamma.analytics.financial.equity.variance.VarianceSwapDefinitionTest.java
@Test public void forwardStarting() { // Construct a forward starting swap, Definition final VarianceSwapDefinition varSwapDefn = new VarianceSwapDefinition(tPlus2, plus5y, plus5y, obsFreq, ccy, WEEKENDCAL, obsPerYear, volStrike, volNotional); // Construct a forward starting swap, Derivative varSwapDefn.toDerivative(now, emptyTimeSeries, ArrayUtils.EMPTY_STRING_ARRAY); }