Coverage Report - org.dozer.util.DozerConstants
 
Classes in this File Line Coverage Branch Coverage Complexity
DozerConstants
83%
5/6
N/A
1
 
 1  
 /**
 2  
  * Copyright 2005-2013 Dozer Project
 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
 7  
  *
 8  
  *      http://www.apache.org/licenses/LICENSE-2.0
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.dozer.util;
 17  
 
 18  
 import org.dozer.classmap.RelationshipType;
 19  
 import org.dozer.factory.XMLBeanFactory;
 20  
 import org.dozer.fieldmap.DozerField;
 21  
 
 22  
 /**
 23  
  * Internal constants file containing a variety of constants used throughout the code base. Only intended for internal
 24  
  * use.
 25  
  * 
 26  
  * @author garsombke.franz
 27  
  * @author sullins.ben
 28  
  * @author tierney.matt
 29  
  * @author dmitry.buzdin
 30  
  * 
 31  
  */
 32  
 public final class DozerConstants {
 33  
 
 34  0
   private DozerConstants() {}
 35  
 
 36  
   public static final String CURRENT_VERSION = "5.5.1";
 37  
 
 38  
   public static final boolean DEFAULT_WILDCARD_POLICY = true;
 39  
   public static final boolean DEFAULT_ERROR_POLICY = true;
 40  
   public static final boolean DEFAULT_MAP_NULL_POLICY = true;
 41  
   public static final boolean DEFAULT_MAP_EMPTY_STRING_POLICY = true;
 42  
   public static final boolean DEFAULT_TRIM_STRINGS_POLICY = false;
 43  
   public static final int DEFAULT_CONVERTER_BY_DEST_TYPE_CACHE_MAX_SIZE = 10000;
 44  
   public static final int DEFAULT_SUPER_TYPE_CHECK_CACHE_MAX_SIZE = 10000;
 45  1
   public static final RelationshipType DEFAULT_RELATIONSHIP_TYPE_POLICY = RelationshipType.CUMULATIVE;
 46  
   public static final String DEFAULT_CONFIG_FILE = "dozer.properties";
 47  
   public static final String DEFAULT_MAPPING_FILE = "dozerBeanMapping.xml";
 48  
   public static final boolean DEFAULT_AUTOREGISTER_JMX_BEANS = true;
 49  
   public static final boolean DEFAULT_STATISTICS_ENABLED = false;
 50  
   public static final boolean DEFAULT_EL_ENABLED = false;
 51  
 
 52  
   public static final String XSD_NAME = "beanmapping.xsd";
 53  
   public static final String CONFIG_FILE_SYS_PROP = "dozer.configuration"; // i.e)-Ddozer.configuration=somefile.properties
 54  
   public static final String DEBUG_SYS_PROP = "dozer.debug";// i.e)-Ddozer.debug=true
 55  
   public static final String ITERATE = "iterate";
 56  
   public static final String DEEP_FIELD_DELIMITER = ".";
 57  
   public static final String DEEP_FIELD_DELIMITER_REGEXP = "\\.";
 58  
   /**
 59  
    * Constant used in {@link DozerField#getName()} to mark the field as belonging to a {@link java.util.Map} instead of
 60  
    * an ordinary class. The name of the Key is then set in {@link DozerField#getKey()}.
 61  
    */
 62  
   public static final String SELF_KEYWORD = "this";
 63  
   public static final String CGLIB_ID = "$$EnhancerByCGLIB$$";  
 64  1
   public static final String BASE_CLASS = Object.class.getName();
 65  1
   public static final String XML_BEAN_FACTORY = XMLBeanFactory.class.getName();
 66  
 
 67  1
   public static final String DEFAULT_CLASS_LOADER_BEAN = DefaultClassLoader.class.getName();
 68  1
   public static final String DEFAULT_PROXY_RESOLVER_BEAN = DefaultProxyResolver.class.getName();
 69  
 
 70  
   public static final String JAVASSIST_PACKAGE = "org.javassist.tmp.";
 71  
   public static final String JAVASSIST_SYMBOL = "_$$_javassist_";
 72  
 
 73  
 }