|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
ResolverMessages.java | - | 100% | 100% | 100% |
|
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.Resource;
|
|
18 |
import org.apache.hivemind.impl.MessageFormatter;
|
|
19 |
import org.apache.tapestry.INamespace;
|
|
20 |
import org.apache.tapestry.spec.IComponentSpecification;
|
|
21 |
|
|
22 |
/**
|
|
23 |
* Messages for the resolver package.
|
|
24 |
*
|
|
25 |
* @author Howard Lewis Ship
|
|
26 |
* @since 4.0
|
|
27 |
*/
|
|
28 |
class ResolverMessages
|
|
29 |
{ |
|
30 |
protected static MessageFormatter _formatter = new MessageFormatter(ResolverMessages.class, |
|
31 |
"ResolverStrings");
|
|
32 |
|
|
33 | 1 |
static String noSuchComponentType(String type, INamespace namespace)
|
34 |
{ |
|
35 | 1 |
return _formatter.format("no-such-component-type", type, namespace); |
36 |
} |
|
37 |
|
|
38 | 2 |
static String noSuchPage(String name, INamespace namespace)
|
39 |
{ |
|
40 | 2 |
return _formatter.format("no-such-page", name, namespace.getNamespaceId()); |
41 |
} |
|
42 |
|
|
43 | 14 |
static String resolvingComponent(String type, INamespace namespace)
|
44 |
{ |
|
45 | 14 |
return _formatter.format("resolving-component", type, namespace); |
46 |
} |
|
47 |
|
|
48 | 57 |
static String checkingResource(Resource resource)
|
49 |
{ |
|
50 | 57 |
return _formatter.format("checking-resource", resource); |
51 |
} |
|
52 |
|
|
53 | 10 |
static String installingComponent(String type, INamespace namespace,
|
54 |
IComponentSpecification specification) |
|
55 |
{ |
|
56 | 10 |
return _formatter.format("installing-component", type, namespace, specification); |
57 |
} |
|
58 |
|
|
59 | 8 |
static String installingPage(String pageName, INamespace namespace,
|
60 |
IComponentSpecification specification) |
|
61 |
{ |
|
62 | 8 |
return _formatter.format("installing-page", pageName, namespace, specification); |
63 |
} |
|
64 |
|
|
65 | 16 |
static String resolvingPage(String pageName, INamespace namespace)
|
66 |
{ |
|
67 | 16 |
return _formatter.format("resolving-page", pageName, namespace); |
68 |
} |
|
69 |
|
|
70 | 2 |
static String foundFrameworkPage(String pageName)
|
71 |
{ |
|
72 | 2 |
return _formatter.format("found-framework-page", pageName); |
73 |
} |
|
74 |
|
|
75 | 2 |
static String foundHTMLTemplate(Resource resource)
|
76 |
{ |
|
77 | 2 |
return _formatter.format("found-html-template", resource); |
78 |
} |
|
79 |
} |
|