/**
 */
package org.etsi.mts.tdl;

import org.eclipse.emf.common.util.EList;

/**
 * <!-- begin-user-doc -->
 * A representation of the model object '<em><b>Data Instance Use</b></em>'.
 * <!-- end-user-doc -->
 *
 * <p>
 * The following features are supported:
 * </p>
 * <ul>
 *   <li>{@link org.etsi.mts.tdl.DataInstanceUse#getDataInstance <em>Data Instance</em>}</li>
 *   <li>{@link org.etsi.mts.tdl.DataInstanceUse#getUnassignedMember <em>Unassigned Member</em>}</li>
 *   <li>{@link org.etsi.mts.tdl.DataInstanceUse#getDataType <em>Data Type</em>}</li>
 *   <li>{@link org.etsi.mts.tdl.DataInstanceUse#getItem <em>Item</em>}</li>
 * </ul>
 *
 * @see org.etsi.mts.tdl.tdlPackage#getDataInstanceUse()
 * @model
 * @generated
 */
public interface DataInstanceUse extends StaticDataUse
{
	/**
	 * Returns the value of the '<em><b>Data Instance</b></em>' reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Data Instance</em>' reference.
	 * @see #setDataInstance(DataInstance)
	 * @see org.etsi.mts.tdl.tdlPackage#getDataInstanceUse_DataInstance()
	 * @model
	 * @generated
	 */
	DataInstance getDataInstance();

	/**
	 * Sets the value of the '{@link org.etsi.mts.tdl.DataInstanceUse#getDataInstance <em>Data Instance</em>}' reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Data Instance</em>' reference.
	 * @see #getDataInstance()
	 * @generated
	 */
	void setDataInstance(DataInstance value);

	/**
	 * Returns the value of the '<em><b>Unassigned Member</b></em>' attribute.
	 * The literals are from the enumeration {@link org.etsi.mts.tdl.UnassignedMemberTreatment}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Unassigned Member</em>' attribute.
	 * @see org.etsi.mts.tdl.UnassignedMemberTreatment
	 * @see #setUnassignedMember(UnassignedMemberTreatment)
	 * @see org.etsi.mts.tdl.tdlPackage#getDataInstanceUse_UnassignedMember()
	 * @model
	 * @generated
	 */
	UnassignedMemberTreatment getUnassignedMember();

	/**
	 * Sets the value of the '{@link org.etsi.mts.tdl.DataInstanceUse#getUnassignedMember <em>Unassigned Member</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Unassigned Member</em>' attribute.
	 * @see org.etsi.mts.tdl.UnassignedMemberTreatment
	 * @see #getUnassignedMember()
	 * @generated
	 */
	void setUnassignedMember(UnassignedMemberTreatment value);

	/**
	 * Returns the value of the '<em><b>Data Type</b></em>' reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Data Type</em>' reference.
	 * @see #setDataType(DataType)
	 * @see org.etsi.mts.tdl.tdlPackage#getDataInstanceUse_DataType()
	 * @model
	 * @generated
	 */
	DataType getDataType();

	/**
	 * Sets the value of the '{@link org.etsi.mts.tdl.DataInstanceUse#getDataType <em>Data Type</em>}' reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Data Type</em>' reference.
	 * @see #getDataType()
	 * @generated
	 */
	void setDataType(DataType value);

	/**
	 * Returns the value of the '<em><b>Item</b></em>' containment reference list.
	 * The list contents are of type {@link org.etsi.mts.tdl.DataUse}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Item</em>' containment reference list.
	 * @see org.etsi.mts.tdl.tdlPackage#getDataInstanceUse_Item()
	 * @model containment="true"
	 *        annotation="http://www.eclipse.org/OCL/Collection nullFree='false'"
	 * @generated
	 */
	EList<DataUse> getItem();

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot body='\n                if (not self.dataInstance.oclIsUndefined()) then\n                    self.dataInstance.dataType\n                else \n                    if (not self.dataType.oclIsUndefined()) then\n                        self.dataType\n                    else \n                        if (self.container().oclIsTypeOf(MemberAssignment)) then\n                            self.container().oclAsType(MemberAssignment).member.dataType\n                        else \n                            if (self.container().oclIsTypeOf(ParameterBinding)) then\n                                self.container().oclAsType(ParameterBinding).parameter.dataType\n                            else\n                                if (self.container().oclIsTypeOf(CollectionDataInstance)) then\n                                    self.container().oclAsType(CollectionDataInstance).dataType.oclAsType(CollectionDataType).itemType\n                                else\n                                    if (self.container().oclIsTypeOf(DataElementUse)) then\n                                        self.container().oclAsType(DataElementUse).resolveDataType().oclAsType(CollectionDataType).itemType\n                                    else\n                                        if (self.container().oclIsTypeOf(DataInstanceUse)) then\n                                            self.container().oclAsType(DataInstanceUse).resolveDataType().oclAsType(CollectionDataType).itemType\n                                        else\n                                            null\n                                        endif\n                                    endif\n                                endif\n                            endif\n                        endif\n                    endif\n                endif\n                '"
	 * @generated
	 */
	DataType resolveDataType();

} // DataInstanceUse
