Coverage Report - org.apache.tapestry.resolver.ResolverMessages
 
Classes in this File Line Coverage Branch Coverage Complexity
ResolverMessages
0%
0/14
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.resolver;
 16  
 
 17  
 import org.apache.hivemind.HiveMind;
 18  
 import org.apache.hivemind.Location;
 19  
 import org.apache.hivemind.Resource;
 20  
 import org.apache.hivemind.impl.MessageFormatter;
 21  
 import org.apache.tapestry.INamespace;
 22  
 import org.apache.tapestry.spec.IComponentSpecification;
 23  
 
 24  
 /**
 25  
  * Messages for the resolver package.
 26  
  * 
 27  
  * @author Howard Lewis Ship
 28  
  * @since 4.0
 29  
  */
 30  
 final class ResolverMessages
 31  
 {
 32  
 
 33  0
     private static final MessageFormatter _formatter = new MessageFormatter(
 34  0
             ResolverMessages.class);
 35  
     
 36  
     /* defeat instantiation */
 37  0
     private ResolverMessages() { }
 38  
     
 39  
     static String noSuchComponentType(String type, INamespace namespace)
 40  
     {
 41  0
         return _formatter.format("no-such-component-type", type, namespace);
 42  
     }
 43  
 
 44  
     static String noSuchPage(String name, INamespace namespace)
 45  
     {
 46  0
         return _formatter.format("no-such-page", name, namespace
 47  
                 .getNamespaceId());
 48  
     }
 49  
 
 50  
     static String resolvingComponent(String type, INamespace namespace)
 51  
     {
 52  0
         return _formatter.format("resolving-component", type, namespace);
 53  
     }
 54  
 
 55  
     static String checkingResource(Resource resource)
 56  
     {
 57  0
         return _formatter.format("checking-resource", resource);
 58  
     }
 59  
 
 60  
     static String installingComponent(String type, INamespace namespace,
 61  
             IComponentSpecification specification)
 62  
     {
 63  0
         return _formatter.format("installing-component", type, namespace,
 64  
                 specification);
 65  
     }
 66  
 
 67  
     static String installingPage(String pageName, INamespace namespace,
 68  
             IComponentSpecification specification)
 69  
     {
 70  0
         return _formatter.format("installing-page", pageName, namespace,
 71  
                 specification);
 72  
     }
 73  
 
 74  
     static String resolvingPage(String pageName, INamespace namespace)
 75  
     {
 76  0
         return _formatter.format("resolving-page", pageName, namespace);
 77  
     }
 78  
 
 79  
     static String foundFrameworkPage(String pageName)
 80  
     {
 81  0
         return _formatter.format("found-framework-page", pageName);
 82  
     }
 83  
 
 84  
     static String foundHTMLTemplate(Resource resource)
 85  
     {
 86  0
         return _formatter.format("found-html-template", resource);
 87  
     }
 88  
 
 89  
     public static String componentIsDeprecated(String componentType,
 90  
             Location location)
 91  
     {
 92  0
         return _formatter.format("component-is-deprecated", componentType,
 93  
                 HiveMind.getLocationString(location));
 94  
     }
 95  
 
 96  
     static String webInfNotAllowed(String simpleName)
 97  
     {
 98  0
         return _formatter.format("web-inf-not-allowed", simpleName);
 99  
     }
 100  
 }