|
|||||||||||||||||||
30 day Evaluation License registered to hlship@comcast.net Your 30 day evaluation period has expired. Please visit http://www.cenqua.com to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
SpecMessages.java | - | 83.3% | 83.3% | 83.3% |
|
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 | 2 | static String claimedProperty(String propertyName, Object existing) |
30 | { | |
31 | 2 | return _formatter.format("claimed-property", propertyName, HiveMind |
32 | .getLocationString(existing)); | |
33 | } | |
34 | ||
35 | 2 | static String duplicateAsset(String name, IAssetSpecification previousAsset) |
36 | { | |
37 | 2 | return _formatter |
38 | .format("duplicate-asset", name, HiveMind.getLocationString(previousAsset)); | |
39 | } | |
40 | ||
41 | 2 | static String duplicateParameter(String name, IParameterSpecification existing) |
42 | { | |
43 | 2 | return _formatter.format("duplicate-parameter", name, HiveMind.getLocationString(existing)); |
44 | } | |
45 | ||
46 | 2 | static String duplicateBean(String name, IBeanSpecification spec) |
47 | { | |
48 | 2 | return _formatter.format("duplicate-bean", name, HiveMind.getLocationString(spec)); |
49 | } | |
50 | ||
51 | 0 | static String duplicateProperty(String name, IPropertySpecification existing) |
52 | { | |
53 | 0 | return _formatter.format("duplicate-property", name, HiveMind.getLocationString(existing)); |
54 | } | |
55 | ||
56 | 2 | static String duplicateComponent(String name, IContainedComponent existing) |
57 | { | |
58 | 2 | return _formatter.format("duplicate-component", name, HiveMind.getLocationString(existing)); |
59 | } | |
60 | } |
|