Coverage Report - net.sf.beanform.integration.Integrator
 
Classes in this File Line Coverage Branch Coverage Complexity
Integrator
N/A 
N/A 
0
 
 1  
 // Copyright 2006 Daniel Gredler
 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 net.sf.beanform.integration;
 16  
 
 17  
 import java.util.SortedMap;
 18  
 
 19  
 import net.sf.beanform.prop.BeanProperty;
 20  
 
 21  
 /**
 22  
  * Provides integration with different entity annotation schemes.
 23  
  *
 24  
  * @author Daniel Gredler
 25  
  */
 26  
 public interface Integrator {
 27  
 
 28  
     public static final String REQUIRED = "required";
 29  
     public static final String MIN_LENGTH = "minLength";
 30  
     public static final String MAX_LENGTH = "maxLength";
 31  
     public static final String MIN = "min";
 32  
     public static final String MAX = "max";
 33  
     public static final String MIN_DATE = "minDate";
 34  
     public static final String MAX_DATE = "maxDate";
 35  
     public static final String EMAIL = "email";
 36  
     public static final String PATTERN = "pattern";
 37  
 
 38  
     public SortedMap<String,String> getValidation( BeanProperty prop );
 39  
     public Integer getMaxLength( BeanProperty prop );
 40  
     public boolean isNullable( BeanProperty prop );
 41  
 
 42  
 }