Coverage Report - org.apache.tapestry.spec.SpecMessages
 
Classes in this File Line Coverage Branch Coverage Complexity
SpecMessages
0%
0/8
N/A
1
 
 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  
 final class SpecMessages
 25  
 {
 26  0
     private static final MessageFormatter _formatter = new MessageFormatter(SpecMessages.class);
 27  
 
 28  
     /* defeat instantiation */
 29  0
     private SpecMessages() { }
 30  
     
 31  
     static String claimedProperty(String propertyName, Object existing)
 32  
     {
 33  0
         return _formatter.format("claimed-property", propertyName, HiveMind
 34  
                 .getLocationString(existing));
 35  
     }
 36  
 
 37  
     static String duplicateAsset(String name, IAssetSpecification previousAsset)
 38  
     {
 39  0
         return _formatter
 40  
                 .format("duplicate-asset", name, HiveMind.getLocationString(previousAsset));
 41  
     }
 42  
 
 43  
     static String duplicateParameter(String name, IParameterSpecification existing)
 44  
     {
 45  0
         return _formatter.format("duplicate-parameter", name, HiveMind.getLocationString(existing));
 46  
     }
 47  
 
 48  
     static String duplicateBean(String name, IBeanSpecification spec)
 49  
     {
 50  0
         return _formatter.format("duplicate-bean", name, HiveMind.getLocationString(spec));
 51  
     }
 52  
 
 53  
     static String duplicateProperty(String name, IPropertySpecification existing)
 54  
     {
 55  0
         return _formatter.format("duplicate-property", name, HiveMind.getLocationString(existing));
 56  
     }
 57  
 
 58  
     static String duplicateComponent(String name, IContainedComponent existing)
 59  
     {
 60  0
         return _formatter.format("duplicate-component", name, HiveMind.getLocationString(existing));
 61  
     }
 62  
 }