KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tapestry > resolver > ResolverMessages


1 // Copyright 2004, 2005 The Apache Software Foundation
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14

15 package org.apache.tapestry.resolver;
16
17 import org.apache.hivemind.HiveMind;
18 import org.apache.hivemind.Location;
19 import org.apache.hivemind.Resource;
20 import org.apache.hivemind.impl.MessageFormatter;
21 import org.apache.tapestry.INamespace;
22 import org.apache.tapestry.spec.IComponentSpecification;
23
24 /**
25  * Messages for the resolver package.
26  *
27  * @author Howard Lewis Ship
28  * @since 4.0
29  */

30 class ResolverMessages
31 {
32     protected static MessageFormatter _formatter = new MessageFormatter(ResolverMessages.class,
33             "ResolverStrings");
34
35     static String JavaDoc noSuchComponentType(String JavaDoc type, INamespace namespace)
36     {
37         return _formatter.format("no-such-component-type", type, namespace);
38     }
39
40     static String JavaDoc noSuchPage(String JavaDoc name, INamespace namespace)
41     {
42         return _formatter.format("no-such-page", name, namespace.getNamespaceId());
43     }
44
45     static String JavaDoc resolvingComponent(String JavaDoc type, INamespace namespace)
46     {
47         return _formatter.format("resolving-component", type, namespace);
48     }
49
50     static String JavaDoc checkingResource(Resource resource)
51     {
52         return _formatter.format("checking-resource", resource);
53     }
54
55     static String JavaDoc installingComponent(String JavaDoc type, INamespace namespace,
56             IComponentSpecification specification)
57     {
58         return _formatter.format("installing-component", type, namespace, specification);
59     }
60
61     static String JavaDoc installingPage(String JavaDoc pageName, INamespace namespace,
62             IComponentSpecification specification)
63     {
64         return _formatter.format("installing-page", pageName, namespace, specification);
65     }
66
67     static String JavaDoc resolvingPage(String JavaDoc pageName, INamespace namespace)
68     {
69         return _formatter.format("resolving-page", pageName, namespace);
70     }
71
72     static String JavaDoc foundFrameworkPage(String JavaDoc pageName)
73     {
74         return _formatter.format("found-framework-page", pageName);
75     }
76
77     static String JavaDoc foundHTMLTemplate(Resource resource)
78     {
79         return _formatter.format("found-html-template", resource);
80     }
81
82     public static String JavaDoc componentIsDeprecated(String JavaDoc componentType, Location location)
83     {
84         return _formatter.format("component-is-deprecated", componentType, HiveMind
85                 .getLocationString(location));
86     }
87 }
Popular Tags