/*******************************************************************************
 *  Copyright 2017-2018 Centre for Development of Advanced Computing(C-DAC), Pune
 *  
 * 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 cdac.medinfo.sdk.dcm30_04.services.dicomnetcommons;

/**
 * Represent C-Find Response status.
 */
public enum EnumCFindStatus implements IStatus
{
	/** Short value representing Cancel status*/
	CANCEL_MATCHING_TERMINATED_DUE_TO_CANCEL_REQUEST((short)0xFE00),

	/** Short value representing Success status*/
	SUCCESS_MATCHING_IS_COMPLETE((short)0x0000),

	/** Short value representing Failure status*/
	FAILURE_REFUSED_OUT_OF_RESOURCE((short)0xA700),

	/** Short value representing Failure status*/
	FAILURE_SOP_CLASS_NOT_SUPPORTED((short)0x0122),

	/** Short value representing Failure status*/
	FAILURE_IDENTIFIER_DOES_NOT_MATCH_SOP_CLASS((short)0xA900),

	/** Short value representing Pending status*/
	PENDING_MATCHES_CONTINUING_CURRENT_MATCH_SUPPLIED((short)0xFF00),

	/** Short value representing Pending status*/
	PENDING_MATCHES_CONTINUING_WARNING_ONE_OR_MORE_OPTIONAL_KEYS_NOT_SUPPORTED((short)0xFF01),

	/** Short value representing Processing Failure Status*/
	PROCESSING_FAILURE((short)0x0110),
	
	/** short value representing processing failure due to Parsing failed*/
	UNABLE_TO_PROCESS_PARSING_FAILED((short)0xC000);
	
	private short value;

	EnumCFindStatus(short shValue)
	{
		value = shValue;
	}

	/**
	 * Returns the short value of this enum.
	 * @return - returns short value of C-FIND Response Status.
	 */
	public short getValue()
	{
		return value;
	}
}
