Coverage Report - org.trails.component.EditLink
 
Classes in this File Line Coverage Branch Coverage Complexity
EditLink
100% 
N/A 
1
 
 1  
 /*
 2  
  * Copyright 2004 Chris Nelson
 3  
  *
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
 7  
  * Unless required by applicable law or agreed to in writing,
 8  
  * software distributed under the License is distributed on an "AS IS" BASIS,
 9  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 10  
  * See the License for the specific language governing permissions and limitations under the License.
 11  
  */
 12  
 package org.trails.component;
 13  
 
 14  
 import org.trails.page.TrailsPage;
 15  
 
 16  1
 public abstract class EditLink extends Link
 17  
 {
 18  
 
 19  
         public abstract Object getModel();
 20  
 
 21  
         public abstract void setModel(Object model);
 22  
 
 23  
         public String getEditPageName()
 24  
         {
 25  1
                 return getPageResolver().resolvePage(getPage().getRequestCycle(), Utils.checkForCGLIB(getModel().getClass()), TrailsPage.PageType.Edit).getPageName();
 26  
         }
 27  
 
 28  
 }