/*******************************************************************************
 * This file is part of OpenNMS(R).
 *
 * Copyright (C) 2007-2014 The OpenNMS Group, Inc.
 * OpenNMS(R) is Copyright (C) 1999-2014 The OpenNMS Group, Inc.
 *
 * OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
 *
 * OpenNMS(R) is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published
 * by the Free Software Foundation, either version 3 of the License,
 * or (at your option) any later version.
 *
 * OpenNMS(R) is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with OpenNMS(R).  If not, see:
 *      http://www.gnu.org/licenses/
 *
 * For more information contact:
 *     OpenNMS(R) Licensing <license@opennms.org>
 *     http://www.opennms.org/
 *     http://www.opennms.com/
 *******************************************************************************/

package org.opennms.netmgt.model;

/**
 * OpenNMS Trouble Ticket State Enumerations.
 *
 * @author <a href="mailto:brozow@opennms.org">Mathew Brozowski</a>
 * @author <a href="mailto:david@opennms.org">David Hustace</a>
 * @author <a href="mailto:brozow@opennms.org">Mathew Brozowski</a>
 * @author <a href="mailto:david@opennms.org">David Hustace</a>
 * @version $Id: $
 */
public enum TroubleTicketState {
    OPEN,
    CREATE_PENDING,
    CREATE_FAILED,
    UPDATE_PENDING,
    UPDATE_FAILED,
    CLOSED,
    CLOSE_PENDING,
    CLOSE_FAILED,
    RESOLVED,
    RESOLVE_PENDING,
    RESOLVE_FAILED,
    CANCELLED,
    CANCEL_PENDING,
    CANCEL_FAILED
}

@@ -1616,16 +1616,19 @@
     OPEN
+(0)
 ,%0A    CR
@@ -1635,24 +1635,27 @@
 EATE_PENDING
+(1)
 ,%0A    CREATE
@@ -1657,24 +1657,27 @@
 REATE_FAILED
+(2)
 ,%0A    UPDATE
@@ -1680,24 +1680,27 @@
 DATE_PENDING
+(3)
 ,%0A    UPDATE
@@ -1702,24 +1702,27 @@
 PDATE_FAILED
+(4)
 ,%0A    CLOSED
@@ -1721,16 +1721,19 @@
   CLOSED
+(5)
 ,%0A    CL
@@ -1739,24 +1739,27 @@
 LOSE_PENDING
+(6)
 ,%0A    CLOSE_
@@ -1760,24 +1760,27 @@
 CLOSE_FAILED
+(7)
 ,%0A    RESOLV
@@ -1781,16 +1781,19 @@
 RESOLVED
+(8)
 ,%0A    RE
@@ -1801,24 +1801,27 @@
 OLVE_PENDING
+(9)
 ,%0A    RESOLV
@@ -1828,16 +1828,20 @@
 E_FAILED
+(10)
 ,%0A    CA
@@ -1847,16 +1847,20 @@
 ANCELLED
+(11)
 ,%0A    CA
@@ -1871,16 +1871,20 @@
 _PENDING
+(12)
 ,%0A    CA
@@ -1898,7 +1898,179 @@
 ILED
+(13);%0A%0A    private final int m_value;%0A%0A    TroubleTicketState(int value) %7B%0A        m_value = value;%0A    %7D%0A    %0A    public int getValue() %7B%0A        return this.m_value;%0A    %7D
 %0A%7D
-%0A

store explicit values for ticket states