KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tapestry > spec > SpecMessages


1 // Copyright 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.spec;
16
17 import org.apache.hivemind.HiveMind;
18 import org.apache.hivemind.impl.MessageFormatter;
19
20 /**
21  * @author Howard M. Lewis Ship
22  * @since 4.0
23  */

24 class SpecMessages
25 {
26     private static MessageFormatter _formatter = new MessageFormatter(SpecMessages.class,
27             "SpecStrings");
28
29     static String JavaDoc claimedProperty(String JavaDoc propertyName, Object JavaDoc existing)
30     {
31         return _formatter.format("claimed-property", propertyName, HiveMind
32                 .getLocationString(existing));
33     }
34
35     static String JavaDoc duplicateAsset(String JavaDoc name, IAssetSpecification previousAsset)
36     {
37         return _formatter
38                 .format("duplicate-asset", name, HiveMind.getLocationString(previousAsset));
39     }
40
41     static String JavaDoc duplicateParameter(String JavaDoc name, IParameterSpecification existing)
42     {
43         return _formatter.format("duplicate-parameter", name, HiveMind.getLocationString(existing));
44     }
45
46     static String JavaDoc duplicateBean(String JavaDoc name, IBeanSpecification spec)
47     {
48         return _formatter.format("duplicate-bean", name, HiveMind.getLocationString(spec));
49     }
50
51     static String JavaDoc duplicateProperty(String JavaDoc name, IPropertySpecification existing)
52     {
53         return _formatter.format("duplicate-property", name, HiveMind.getLocationString(existing));
54     }
55
56     static String JavaDoc duplicateComponent(String JavaDoc name, IContainedComponent existing)
57     {
58         return _formatter.format("duplicate-component", name, HiveMind.getLocationString(existing));
59     }
60 }
61
Popular Tags