001/*
002 * Copyright 2006 The Kuali Foundation
003 * 
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 * 
008 * http://www.opensource.org/licenses/ecl2.php
009 * 
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.ole.fp.document;
017
018import java.util.ArrayList;
019import java.util.List;
020
021import org.kuali.ole.fp.businessobject.CapitalAccountingLines;
022
023/**
024 * class which defines behavior common for capital accounting lines.
025 */
026 public class CapitalAccountingLinesDocumentBase extends CapitalAssetInformationDocumentBase {
027    protected static org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(CapitalAccountingLinesDocumentBase.class);
028
029    //transient objects
030    protected transient List<CapitalAccountingLines> capitalAccountingLines;
031
032    /**
033     * Constructs a CapitalAssetInformationDocumentBase
034     */
035    public CapitalAccountingLinesDocumentBase() {
036        super();
037        capitalAccountingLines = new ArrayList<CapitalAccountingLines>();
038    }
039    
040    /**
041     * Gets the capitalAccountingLines attribute.
042     * 
043     * @return Returns the capitalAccountingLines
044     */
045    public List<CapitalAccountingLines> getCapitalAccountingLines() {
046        if ( capitalAccountingLines == null ) {
047            capitalAccountingLines = new ArrayList<CapitalAccountingLines>();
048        }
049        return capitalAccountingLines;
050    }
051
052    /** 
053     * Sets the capitalAccountingLines attribute.
054     * 
055     * @param capitalAccountingLines The capitalAccountingLines to set.
056     */
057    public void setCapitalAccountingLines(List<CapitalAccountingLines> capitalAccountingLines) {
058        this.capitalAccountingLines = capitalAccountingLines;
059    }
060}