Coverage Report - org.apache.tapestry.asset.AssetMessages
 
Classes in this File Line Coverage Branch Coverage Complexity
AssetMessages
0%
0/9
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.asset;
 16  
 
 17  
 import java.io.IOException;
 18  
 
 19  
 import org.apache.hivemind.Resource;
 20  
 import org.apache.hivemind.impl.MessageFormatter;
 21  
 
 22  
 /**
 23  
  * @author Howard M. Lewis Ship
 24  
  * @since 4.0
 25  
  */
 26  
 final class AssetMessages
 27  
 {
 28  0
     private static final MessageFormatter _formatter = new MessageFormatter(AssetMessages.class);
 29  
 
 30  
     /* defeat instantiation */
 31  0
     private AssetMessages() { }
 32  
     
 33  
     static String missingAsset(String path, Resource resource)
 34  
     {
 35  0
         return _formatter.format("missing-asset", path, resource);
 36  
     }
 37  
 
 38  
     static String noSuchResource(String resourcePath)
 39  
     {
 40  0
         return _formatter.format("no-such-resource", resourcePath);
 41  
     }
 42  
 
 43  
     static String unableToReadResource(String resourcePath, IOException cause)
 44  
     {
 45  0
         return _formatter.format("unable-to-read-resource", resourcePath, cause);
 46  
     }
 47  
 
 48  
     static String md5Mismatch(String path)
 49  
     {
 50  0
         return _formatter.format("md5-mismatch", path);
 51  
     }
 52  
 
 53  
     static String exceptionReportTitle(String path)
 54  
     {
 55  0
         return _formatter.format("exception-report-title", path);
 56  
     }
 57  
 
 58  
     static String missingClasspathResource(String path)
 59  
     {
 60  0
         return _formatter.format("missing-classpath-resource", path);
 61  
     }
 62  
 
 63  
     static String missingContextResource(String path)
 64  
     {
 65  0
         return _formatter.format("missing-context-resource", path);
 66  
     }
 67  
 }