/* Copyright 2005 I Serv Consultoria Empresarial Ltda.
 *
 * 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.
 */

package org.helianto.core.def;

/**
 * <code>AddressType</code> enumeration.
 * 
 * @author Mauricio Fernandes de Castro
 */
public enum AddressType {
	
	/**
	 * Personal address.
	 */
	PERSONAL('0'),
	/**
	 * Collection address.
	 */
	COLLECTION('1'),
	/**
	 * Delivery address.
	 */
	DELIVERY('2'),
	/**
	 * Restricted address.
	 */
	RESTRICTED('3'),
	/**
	 * Main address.
	 */
	MAIN('M');
	
	private char value;
	
	private AddressType(char value) {
		this.value = value;
	}
	
	public char getValue() {
		return value;
	}

}

@@ -807,17 +807,17 @@
 RSONAL('
-0
+P
 '),%0A%09/**
@@ -863,9 +863,9 @@
 ON('
-1
+C
 '),%0A
@@ -907,17 +907,17 @@
 LIVERY('
-2
+D
 '),%0A%09/**
@@ -963,9 +963,9 @@
 ED('
-3
+R
 '),%0A

Change address types to literals.