KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > dozer > util > mapping > fieldmap > Configuration


1 /*
2  * Copyright 2005-2007 the original author or authors.
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 net.sf.dozer.util.mapping.fieldmap;
17
18 import net.sf.dozer.util.mapping.converters.CustomConverterContainer;
19 import net.sf.dozer.util.mapping.util.MapperConstants;
20
21 /**
22  * @author garsombke.franz
23  * @author sullins.ben
24  * @author tierney.matt
25  *
26  */

27 public class Configuration {
28
29   private boolean wildcard = MapperConstants.DEFAULT_WILDCARD_POLICY;
30   private boolean stopOnErrors = MapperConstants.DEFAULT_ERROR_POLICY;
31   private String JavaDoc dateFormat;
32   private String JavaDoc beanFactory;
33   private CustomConverterContainer customConverters;
34   private CopyByReferenceContainer copyByReferences;
35     private AllowedExceptionContainer allowedExceptions;
36   private boolean isAccessible;
37
38   public AllowedExceptionContainer getAllowedExceptions() {
39         return allowedExceptions;
40     }
41
42     public void setAllowedExceptions(AllowedExceptionContainer allowedExceptions) {
43         this.allowedExceptions = allowedExceptions;
44     }
45
46   public CustomConverterContainer getCustomConverters() {
47     return customConverters;
48   }
49
50   public void setCustomConverters(CustomConverterContainer customConverters) {
51     this.customConverters = customConverters;
52   }
53
54   public String JavaDoc getDateFormat() {
55     return dateFormat;
56   }
57
58   public void setDateFormat(String JavaDoc format) {
59     dateFormat = format;
60   }
61
62   public boolean getWildcard() {
63     return wildcard;
64   }
65
66   public void setWildcard(boolean globalWildcardPolicy) {
67     wildcard = globalWildcardPolicy;
68   }
69
70   public boolean getStopOnErrors() {
71     return stopOnErrors;
72   }
73
74   public void setStopOnErrors(boolean stopOnErrors) {
75     this.stopOnErrors = stopOnErrors;
76   }
77
78   public String JavaDoc getBeanFactory() {
79     return beanFactory;
80   }
81
82   public void setBeanFactory(String JavaDoc beanFactory) {
83     this.beanFactory = beanFactory;
84   }
85
86   public CopyByReferenceContainer getCopyByReferences() {
87     return copyByReferences;
88   }
89
90   public void setCopyByReferences(CopyByReferenceContainer copyByReferenceContainer) {
91     this.copyByReferences = copyByReferenceContainer;
92   }
93
94   public boolean isAccessible() {
95     return isAccessible;
96   }
97
98   public void setAccessible(boolean isAccessible) {
99     this.isAccessible = isAccessible;
100   }
101 }
Popular Tags