Example usage for org.apache.commons.vfs2.util Messages getString

List of usage examples for org.apache.commons.vfs2.util Messages getString

Introduction

In this page you can find the example usage for org.apache.commons.vfs2.util Messages getString.

Prototype

public static String getString(final String code) 

Source Link

Document

Formats a message.

Usage

From source file:org.onehippo.forge.content.exim.core.util.FileFilterDepthSelector.java

/**
 * Check if {@code fileInfo} is acceptable by using the internal filter.
 * @param fileInfo fileInfo/*w ww.  ja  v a2 s.co m*/
 * @return true if {@code fileInfo} is acceptable by using the internal filter
 */
protected boolean accept(final FileSelectInfo fileInfo) {
    if (fileFilter != null) {
        return fileFilter.accept(fileInfo);
    }

    throw new IllegalArgumentException(Messages.getString("vfs.selectors/filefilter.missing.error"));
}