01: /*
02: * Copyright 2006-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.module.financial.lookup.keyvalues;
17:
18: import java.util.ArrayList;
19: import java.util.List;
20:
21: import org.kuali.core.lookup.keyvalues.KeyValuesBase;
22: import org.kuali.core.web.ui.KeyLabelPair;
23: import org.kuali.kfs.KFSConstants;
24:
25: /**
26: * <code>{@link KeyValuesBase}</code> class that handles
27: * <code>{@link org.kuali.module.financial.document.AuxiliaryVoucherDocument}</code> types.
28: */
29: public class AuxiliaryVoucherTypeCodeValuesFinder extends KeyValuesBase {
30:
31: /**
32: * @see org.kuali.core.lookup.keyvalues.KeyValuesFinder#getKeyValues()
33: */
34: public List getKeyValues() {
35: List retval = new ArrayList();
36: retval
37: .add(new KeyLabelPair(
38: KFSConstants.AuxiliaryVoucher.ADJUSTMENT_DOC_TYPE,
39: KFSConstants.AuxiliaryVoucher.ADJUSTMENT_DOC_TYPE_NAME));
40: retval.add(new KeyLabelPair(
41: KFSConstants.AuxiliaryVoucher.ACCRUAL_DOC_TYPE,
42: KFSConstants.AuxiliaryVoucher.ACCRUAL_DOC_TYPE_NAME));
43: retval.add(new KeyLabelPair(
44: KFSConstants.AuxiliaryVoucher.RECODE_DOC_TYPE,
45: KFSConstants.AuxiliaryVoucher.RECODE_DOC_TYPE_NAME));
46: return retval;
47: }
48: }
|