01: /*
02: * Copyright 2005-2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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.kuali.core.datadictionary;
17:
18: import org.apache.commons.logging.Log;
19: import org.apache.commons.logging.LogFactory;
20:
21: /**
22: * TransactionalDocumentEntry
23: */
24: public class TransactionalDocumentEntry extends DocumentEntry {
25: // logger
26: private static Log LOG = LogFactory
27: .getLog(TransactionalDocumentEntry.class);
28:
29: private boolean allowsErrorCorrection;
30:
31: public TransactionalDocumentEntry() {
32: super ();
33:
34: LOG.debug("creating new TransactionalDocumentEntry");
35: }
36:
37: public void setAllowsErrorCorrection(boolean allowsErrorCorrection) {
38: LOG.debug("calling setAllowsErrorCorrection '"
39: + allowsErrorCorrection + "'");
40:
41: this .allowsErrorCorrection = allowsErrorCorrection;
42: }
43:
44: public boolean getAllowsErrorCorrection() {
45: return allowsErrorCorrection;
46: }
47:
48: /**
49: * Validate simple fields.
50: *
51: * @see org.kuali.core.datadictionary.DocumentEntry#completeValidation()
52: */
53: @Override
54: public void completeValidation(
55: ValidationCompletionUtils validationCompletionUtils) {
56: super .completeValidation(validationCompletionUtils);
57: }
58:
59: @Override
60: public String toString() {
61: return "TransactionalDocumentEntry for documentType "
62: + getDocumentTypeName();
63: }
64: }
|