01: /*
02: * $Id: FileMessages.java 10489 2008-01-23 17:53:38Z dfeist $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
10:
11: package org.mule.transport.file.i18n;
12:
13: import org.mule.api.endpoint.EndpointURI;
14: import org.mule.config.i18n.Message;
15: import org.mule.config.i18n.MessageFactory;
16:
17: public class FileMessages extends MessageFactory {
18: private static final String BUNDLE_PATH = getBundlePath("file");
19:
20: public static Message errorWhileListingFiles() {
21: return createMessage(BUNDLE_PATH, 1);
22: }
23:
24: public static Message exceptionWhileProcessing(String name,
25: String string) {
26: return createMessage(BUNDLE_PATH, 2, name, string);
27: }
28:
29: public static Message failedToDeleteFile(String path) {
30: return createMessage(BUNDLE_PATH, 3, path);
31: }
32:
33: public static Message failedToMoveFile(String from, String to) {
34: return createMessage(BUNDLE_PATH, 4, from, to);
35: }
36:
37: public static Message moveToDirectoryNotWritable() {
38: return createMessage(BUNDLE_PATH, 5);
39: }
40:
41: public static Message invalidFileFilter(EndpointURI endpointURI) {
42: return createMessage(BUNDLE_PATH, 6, endpointURI);
43: }
44:
45: public static Message fileDoesNotExist(String string) {
46: return createMessage(BUNDLE_PATH, 7, string);
47: }
48: }
|