/**

 * MeetingType.java    version: 1.0

 

 * Copyright (c) 2005-2006 Grameen Foundation USA

 * 1029 Vermont Avenue, NW, Suite 400, Washington DC 20005

 * All rights reserved.

 

 * Apache License 
 * Copyright (c) 2005-2006 Grameen Foundation USA 
 * 

 * Licensed under the Apache License, Version 2.0 (the "License"); you may
 * not use this file except in compliance with the License. You may obtain
 * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 
 *

 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and limitations under the 

 * License. 
 * 
 * See also http://www.apache.org/licenses/LICENSE-2.0.html for an explanation of the license 

 * and how it is applied. 

 *

 */
package org.mifos.application.meeting.util.helpers;

import org.mifos.application.meeting.business.MeetingTypeEntity;

/**
 * See also {@link MeetingTypeEntity}.
 */
public enum MeetingType {
	LOANFREQUENCYOFINSTALLMENTS((short) 1), 
	SAVINGSTIMEPERFORINTCALC((short) 2), 
	SAVINGSFRQINTPOSTACC((short) 3), 
	CUSTOMERMEETING((short) 4), 
	FEEMEETING((short) 5);

	Short value;

	MeetingType(Short value) {
		this.value = value;
	}

	public Short getValue() {
		return value;
	}

	public static MeetingType getMeetingType(Short value) {
		for (MeetingType meetingType : MeetingType.values())
			if (meetingType.getValue().equals(value))
				return meetingType;
		return null;
	}
}

@@ -1110,225 +1110,928 @@
 %0A * 
-See also %7B@link MeetingTypeEntity%7D.%0D%0A */%0D%0Apublic enum MeetingType %7B%0D%0A%09LOANFREQUENCYOFINSTALLMENTS((short) 1), %0D%0A%09SAVINGSTIMEPERFORINTCALC((short) 2), %0D%0A%09SAVINGSFRQINTPOSTACC((short) 3), %0D%0A%09CUSTOMERMEETING((short) 4), 
+When ever we require a frequency(recurrence pattern) to be stored, %0D%0A * we create a %22meeting%22 (this is not necessarily a meeting in the%0D%0A * sense we present to the users).%0D%0A * %0D%0A * See also %7B@link MeetingTypeEntity%7D.%0D%0A */%0D%0Apublic enum MeetingType %7B%0D%0A%09/* Schedule of loan installment payments for an account */%0D%0A%09/* LOAN_INSTALLMENT */%0D%0A%09LOANFREQUENCYOFINSTALLMENTS((short) 1), %0D%0A%09%0D%0A%09/* This is not to generate a schedule, but to calculate the %0D%0A%09 * interest after the specified time period.*/%0D%0A%09/* SAVINGS_INTEREST_CALCULATION_TIME_PERIOD */%0D%0A%09SAVINGSTIMEPERFORINTCALC((short) 2), %0D%0A%0D%0A%09/* Schedule for posting interest to an account */%0D%0A%09/* SAVINGS_INTEREST_POSTING */%0D%0A%09SAVINGSFRQINTPOSTACC((short) 3), %0D%0A%09%0D%0A%09/* This is what we call a %22meeting%22 in the user interface. */%0D%0A%09/* CUSTOMER_MEETING */%0D%0A%09CUSTOMERMEETING((short) 4), %0D%0A%09%0D%0A%09/* Recurrence of a fee. Can be for either a loan or a customer. */%0D%0A%09/* PERIODIC_FEE */
 %0D%0A%09F

Add comments about what these types mean (and what we plan to rename them to).