Example usage for org.apache.commons.lang ArrayUtils EMPTY_STRING_ARRAY

List of usage examples for org.apache.commons.lang ArrayUtils EMPTY_STRING_ARRAY

Introduction

In this page you can find the example usage for org.apache.commons.lang ArrayUtils EMPTY_STRING_ARRAY.

Prototype

String[] EMPTY_STRING_ARRAY

To view the source code for org.apache.commons.lang ArrayUtils EMPTY_STRING_ARRAY.

Click Source Link

Document

An empty immutable String array.

Usage

From source file:ch.systemsx.cisd.openbis.generic.server.util.PropertyValidator.java

private final static String[] createDatePatterns() {
    final List<String> datePatterns = new ArrayList<String>();
    // Order does not matter due to DateUtils implementation used.
    for (SupportedDatePattern supportedPattern : SupportedDatePattern.values()) {
        datePatterns.add(supportedPattern.getPattern());
    }/*from w  ww . ja  va 2 s .co  m*/
    return datePatterns.toArray(ArrayUtils.EMPTY_STRING_ARRAY);
}

From source file:com.google.gdt.eclipse.designer.uibinder.model.property.StylePropertyEditorTest.java

/**
 * No style declaration, so no semantic sub-properties.
 */// www  .j a va 2  s . c o  m
public void test_semantics_noStyle() throws Exception {
    Property styleProperty = getStyleProperty(null, ArrayUtils.EMPTY_STRING_ARRAY);
    assertThat(PropertyUtils.getChildren(styleProperty)).isEmpty();
}

From source file:com.cyclopsgroup.waterview.core.DefaultLookAndFeelService.java

/**
 * Overwrite or implement method getIconSetNames()
 *
 * @see com.cyclopsgroup.waterview.spi.LookAndFeelService#getIconSetNames()
 */// w  w w . j av  a 2 s. co m
public String[] getIconSetNames() {
    return (String[]) iconSets.keySet().toArray(ArrayUtils.EMPTY_STRING_ARRAY);
}

From source file:com.cyclopsgroup.waterview.servlet.ServletRequestParameters.java

/**
 * Override or implement method of parent class or interface
 *
 * @see com.cyclopsgroup.waterview.Parameters#doGetValues(java.lang.String)
 */// w  ww  . ja va 2 s . c o m
protected String[] doGetValues(String name) throws Exception {
    String[] ret = httpServletRequest.getParameterValues(name);
    if (extra.containsKey(name)) {
        List list = new ArrayList((Collection) extra.get(name));
        CollectionUtils.addAll(list, ret);
        ret = (String[]) list.toArray(ArrayUtils.EMPTY_STRING_ARRAY);
    }
    return ret;
}

From source file:com.cyclopsgroup.waterview.servlet.MultipartServletRequestParameters.java

/**
 * Overwrite or implement method doGetValues()
 * @see com.cyclopsgroup.waterview.Attributes#doGetValues(java.lang.String)
 *//*w w  w  .  jav a2s.c o  m*/
protected String[] doGetValues(String name) throws Exception {
    Collection values = (Collection) content.get(name);
    return values == null ? ArrayUtils.EMPTY_STRING_ARRAY
            : (String[]) values.toArray(ArrayUtils.EMPTY_STRING_ARRAY);
}

From source file:com.cyclopsgroup.waterview.AbstractRuntimeData.java

/**
 * Override method getMessages in class AbstractRuntimeData
 *
 * @see com.cyclopsgroup.waterview.RuntimeData#getMessages()
 *//*from  ww  w . ja  v a 2s.co  m*/
public String[] getMessages() {
    List messages = (List) getSessionContext().get(MESSAGES_NAME);
    if (messages == null) {
        return ArrayUtils.EMPTY_STRING_ARRAY;
    }
    String[] ret = (String[]) messages.toArray(ArrayUtils.EMPTY_STRING_ARRAY);
    messages.clear();
    return ret;
}

From source file:com.cyclopsgroup.waterview.MapAttributes.java

/**
 * Override method doGetAttributeNames in class MapValueParser
 *
 * @see com.cyclopsgroup.waterview.Attributes#doGetAttributeNames()
 *///from  w  w w  .  ja v  a  2 s. c  o m
protected String[] doGetAttributeNames() {
    return (String[]) getMap().keySet().toArray(ArrayUtils.EMPTY_STRING_ARRAY);
}

From source file:cc.kune.core.server.AbstractWaveBasedServerTool.java

@Override
public String[] getNewContentAdditionalParts(final Container containerParent) {
    return ArrayUtils.EMPTY_STRING_ARRAY;
}

From source file:com.cyclopsgroup.waterview.web.Table.java

/**
 * Get sorted column names/*w w  w .  j  av a 2  s  .com*/
 *
 * @return Array of column names
 */
public String[] getSortedColumns() {
    return (String[]) sortedColumns.toArray(ArrayUtils.EMPTY_STRING_ARRAY);
}

From source file:biz.netcentric.vlt.upgrade.UpgradeInfo.java

/**
 * Create upgrade info.// w  w w. j a  va  2 s  .  com
 *
 * @param configResource The config resource.
 * @param ctx            The install context.
 * @throws RepositoryException
 */
public UpgradeInfo(Resource configResource, InstallContext ctx) throws RepositoryException {

    this.ctx = ctx;
    this.config = configResource.adaptTo(ValueMap.class);
    this.configResource = configResource;

    this.version = new DefaultArtifactVersion(config.get(PN_VERSION, "0.0.0"));
    this.priority = config.get(PN_PRIORITY, Long.MAX_VALUE);
    this.defaultSearchPaths = new ArrayList<>(
            Arrays.asList(config.get(PN_DEFAULTSEARCHPATHS, ArrayUtils.EMPTY_STRING_ARRAY)));
    this.runType = RunType.fromString(config.get(PN_RUN, RunType.ONCE.toString()));
    this.handlerType = HandlerType.fromString(config.get(PN_HANDLER, HandlerType.GROOVY.toString()));
}