/*******************************************************************************
 *  Copyright 2017 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.hl7282.utils;
/**
 * IComponentItem needs to be implemented by class which defines structure of HL7 defined Components for a DataType.
 */
public interface IComponentItem 
{
	/**
	 * Retrieves name of Component
	 * @return String - name of Component
	 */
	String getFieldName();
	
	/**
	 * Sets name of Component
	 * @param strName name of Component
	 */
	void setFieldName(String strName);
	
	/**
	 * Retrieves sequence number for Component defined by HL7 standard in segment
	 * @return int - value of sequence index
	 */
	int getSequenceNo();
	
	/**
	 * Sets sequence number for Component defined by HL7 standard in segment
	 * @param intSeq value of sequence index
	 */
	void setSequenceNo(int intSeq);
	
	/**
	 * Retrieves Minimum Length for Component defined by HL7 standard in segment
	 * @return int - value of Minimum length
	 */
	public int getMinimunLength();
	
	/**
	 * Sets Minimum Length for Component defined by HL7 standard in segment
	 * @param minLen Minimum length value
	 */
	public void setMinimumLength(int minLen);
	
	/**
	 * Retrieves Maximum Length for Component defined by HL7 standard in segment
	 * @return int - value of Maximum length
	 */
	public int getMaximumLength();

	/**
	 * Sets Maximum Length for Component defined by HL7 standard in segment
	 * @param maxLen Maximum length value
	 */
	public void setMaximumLength(int maxLen);

	/**
	 * retrieves Conformance Length for Component defined by defined HL7 Standard in Segment
	 * @return String -value of Conformance Length
	 */
	public String getConformanceLength();
	
	/**
	 * Set Conformance Length for component defined by Hl7 standard in Segment
	 * @param strCLength Conformance Length value
	 */
	public void setConformanceLength(String strCLength);
	
	/**
	 * Retrieves Data Type for Component defined by HL7 standard in segment
	 * @return String name of DataType
	 */
	String getDataType();
	
	/**
	 * Sets Datatype for Component defined by HL7 standard in segment
	 * @param strDataType name of Component
	 */
	void setDataType(String strDataType);
	
	/**
	 * Retrieves Table number for Component defined by HL7 standard in segment
	 * @return int[] - array of table number
	 */
	int[] getTableNo() ;
	
	/**
	 * Sets Table number for Component defined by HL7 standard in segment
	 * @param intTableNo array of table number
	 */
	void setTableNo(int[] intTableNo);
	
	/**
	 * Shows optionality status for Component defined by HL7 standard in segment
	 * @return boolean - status as true or false
	 */
	boolean isOptional();
	
	/**
	 * Sets optionality status for Component defined by HL7 standard in segment
	 * @param bOptional status as true or false
	 */
	void setOptional(boolean bOptional);
}
