/**
 * Copyright (c) 2016-2019 by the respective copyright holders.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 */
package com.zsmartsystems.zigbee;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Generated;

/**
 * ZigBee Profile Type value enumeration.
 * <p>
 * Code is auto-generated. Modifications may be overwritten!
 */
@Generated(value = "com.zsmartsystems.zigbee.autocode.ZigBeeCodeGenerator", date = "2019-06-15T20:20:47Z")
public enum ZigBeeProfileType {

    /**
     * ZigBee Home Automation
     */
    ZIGBEE_HOME_AUTOMATION(0x0104),

    /**
     * ZigBee Smart Energy
     */
    ZIGBEE_SMART_ENERGY(0x0109),

    /**
     * ZigBee Green Power
     */
    ZIGBEE_GREEN_POWER(0xA10E),

    /**
     * Manufacturer Telegesis
     */
    MANUFACTURER_TELEGESIS(0xC059),

    /**
     * ZigBee Light Link
     */
    ZIGBEE_LIGHT_LINK(0xC05E),

    /**
     * Manufacturer Digi
     */
    MANUFACTURER_DIGI(0xC105);

    /**
     * A mapping between the integer code and its corresponding ZigBeeProfileType type to facilitate lookup by value.
     */
    private static Map<Integer, ZigBeeProfileType> idMap;

    static {
        idMap = new HashMap<Integer, ZigBeeProfileType>();
        for (ZigBeeProfileType enumValue : values()) {
            idMap.put(enumValue.key, enumValue);
        }
    }

    private final int key;

    private ZigBeeProfileType(final int key) {
        this.key = key;
    }

    public int getKey() {
        return key;
    }

    public static ZigBeeProfileType getByValue(final int value) {
        return idMap.get(value);
    }
}

@@ -922,10 +922,10 @@
 0xA1
-0
 E
+0
 ),%0A%0A

Fix typo in green power profile id definition (#694)