/*******************************************************************************
 *  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.hangingprotocol.sourceimpl;

import cdac.medinfo.sdk.dcm30_04.commoninterface.IDataSet;


/**
 *  This class contains the Attributes for Query Model. Also contains methods to populate and fill data set of Query Model.
 */

public class HangingProtocol_Attributes {
 
	private SOPCommanAttribute objSOPCommanAttribute ;
	private HangingProtocolDefinitionAttributes objHangingProtocolDefinitionAttributes;
	private HangingProtocolEnvironmentAttributes objHangingProtocolEnvironmentAttributes ;
	
	/**
	 * This is default Constructor for HangingProtocol_Attributes.
	 */
	public HangingProtocol_Attributes() {
		super();
	}
	/**
	 * Populates the query Model using filled data set.
	 */
	public void populate(IDataSet objIDataSet)
	{
		
		if(objSOPCommanAttribute == null)
			objSOPCommanAttribute = new SOPCommanAttribute();
		objSOPCommanAttribute.populate(objIDataSet);
		
		if(objHangingProtocolDefinitionAttributes == null)
			objHangingProtocolDefinitionAttributes = new HangingProtocolDefinitionAttributes();
		objHangingProtocolDefinitionAttributes.populate(objIDataSet);
		
		if(objHangingProtocolEnvironmentAttributes == null)
			objHangingProtocolEnvironmentAttributes = new HangingProtocolEnvironmentAttributes();
		objHangingProtocolEnvironmentAttributes.populate(objIDataSet);
	}	
	/**
	 * Fills the data set using already populated Query Model.
	 */
	public void fill(IDataSet objIDataSet)
	{
		if(objSOPCommanAttribute != null)
			objSOPCommanAttribute.fill(objIDataSet);
		
		if(objHangingProtocolDefinitionAttributes != null)
			objHangingProtocolDefinitionAttributes.fill(objIDataSet);
		
		if(objHangingProtocolEnvironmentAttributes != null)
			objHangingProtocolEnvironmentAttributes.fill(objIDataSet);
		
	}
	/**
	 * Retrieve the object of SOPCommanAttribute.
	 * @return Object of SOPCommanAttribute
	 */
	public SOPCommanAttribute getSOPCommanAttribute()
	{
		if(objSOPCommanAttribute == null)
			objSOPCommanAttribute = new SOPCommanAttribute();
		return objSOPCommanAttribute;
	}
	/**
	 * Set the value of SOPCommanAttribute.
	 * @param objSOPCommanAttribute
	 */
	public void setSOPCommanAttribute(SOPCommanAttribute objSOPCommanAttribute)
	{
		this.objSOPCommanAttribute = objSOPCommanAttribute;
	}
	
	/**
	 * Retrieve the object of HangingProtocolDefinitionAttributes.
	 * @return Object of HangingProtocolDefinitionAttributes
	 */
	public HangingProtocolDefinitionAttributes getHangingProtocolDefinitionAttributes()
	{
		if(objHangingProtocolDefinitionAttributes == null)
			objHangingProtocolDefinitionAttributes = new HangingProtocolDefinitionAttributes();
		return objHangingProtocolDefinitionAttributes;
	}
	/**
	 * Set the value of HangingProtocolDefinitionAttributes.
	 * @param objHangingProtocolDefinitionAttributes
	 */
	public void setHangingProtocolDefinitionAttributes(HangingProtocolDefinitionAttributes objHangingProtocolDefinitionAttributes)
	{
		this.objHangingProtocolDefinitionAttributes = objHangingProtocolDefinitionAttributes;
	}
	
	/**
	 * Retrieve the object of HangingProtocolEnvironmentAttributes.
	 * @return Object of HangingProtocolEnvironmentAttributes
	 */
	public HangingProtocolEnvironmentAttributes getHangingProtocolEnvironmentAttributes()
	{
		if(objHangingProtocolEnvironmentAttributes == null)
			objHangingProtocolEnvironmentAttributes = new HangingProtocolEnvironmentAttributes();
		return objHangingProtocolEnvironmentAttributes;
	}
	/**
	 * Set the value of HangingProtocolDefinitionAttributes.
	 * @param HangingProtocolDefinitionAttributes 
	 */
	public void setHangingProtocolEnvironmentAttributes(HangingProtocolEnvironmentAttributes objHangingProtocolEnvironmentAttributes)
	{
		this.objHangingProtocolEnvironmentAttributes = objHangingProtocolEnvironmentAttributes;
	}

}
