Coverage Report - org.apache.tapestry.TapestryMessages
 
Classes in this File Line Coverage Branch Coverage Complexity
TapestryMessages
0%
0/12
N/A
1
 
 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;
 16  
 
 17  
 import org.apache.hivemind.impl.MessageFormatter;
 18  
 
 19  
 /**
 20  
  * @author Howard Lewis Ship
 21  
  * @since 4.0
 22  
  */
 23  
 final class TapestryMessages
 24  
 {
 25  0
     private static final MessageFormatter _formatter = new MessageFormatter(TapestryMessages.class,
 26  
             "TapestryStrings2");
 27  
 
 28  
     /* defeat instantiation */
 29  0
     private TapestryMessages() { }
 30  
     
 31  
     static String servletInitFailure(Throwable cause)
 32  
     {
 33  0
         return _formatter.format("servlet-init-failure", cause);
 34  
     }
 35  
 
 36  
     static String componentIsLocked(IComponent component)
 37  
     {
 38  0
         return _formatter.format("component-is-locked", component.getExtendedId());
 39  
     }
 40  
 
 41  
     static String servletInit(String name, long elapsedToRegistry, long elapsedOverall)
 42  
     {
 43  0
         return _formatter.format("servlet-init", name, new Long(elapsedToRegistry), new Long(
 44  
                 elapsedOverall));
 45  
     }
 46  
 
 47  
     static String nonUniqueAttribute(Object newInstance, String key, Object existingInstance)
 48  
     {
 49  0
         return _formatter.format("non-unique-attribute", newInstance, key, existingInstance);
 50  
     }
 51  
 
 52  
     static String noPageRenderSupport(IComponent component)
 53  
     {
 54  0
         return _formatter.format("no-page-render-support", component.getExtendedId());
 55  
     }
 56  
 
 57  
     static String noForm(IComponent component)
 58  
     {
 59  0
         return _formatter.format("no-form", component.getExtendedId());
 60  
     }
 61  
 
 62  
     static String providedByEnhancement(String methodName)
 63  
     {
 64  0
         return _formatter.format("provided-by-enhancement", methodName);
 65  
     }
 66  
 
 67  
     static String attemptToChangeContainedComponent(IComponent component)
 68  
     {
 69  0
         return _formatter
 70  
                 .format("attempt-to-change-contained-component", component.getExtendedId());
 71  
     }
 72  
 
 73  
     static String attemptToChangeEventInvoker(IComponent component)
 74  
     {
 75  0
         return _formatter
 76  
                 .format("attempt-to-change-event-invoker", component.getExtendedId());
 77  
     }
 78  
     
 79  
     static String componentWrongType(IComponent component, Class expectedType)
 80  
     {
 81  0
         return _formatter.format("component-wrong-type", component.getExtendedId(), expectedType
 82  
                 .getName());
 83  
     }
 84  
 }