#ifndef  TYPE_SDAICONTRACT_ITEM_H
#define  TYPE_SDAICONTRACT_ITEM_H

// This file was generated by exp2cxx,
// 0.8.1.
// You probably don't want to edit it since your modifications
// will be lost if exp2cxx is used to regenerate it.


//////////  SELECT TYPE SdaiContract_item
class SC_SCHEMA_EXPORT SdaiContract_item  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   ACTIVITY    --  sdaiINSTANCE
    //   ACTIVITY_METHOD    --  sdaiINSTANCE
    //   ACTIVITY_METHOD_REALIZATION    --  sdaiINSTANCE
    //   ACTIVITY_METHOD_REALIZATION_RELATIONSHIP    --  sdaiINSTANCE
    //   ACTIVITY_METHOD_RELATIONSHIP    --  sdaiINSTANCE
    //   APPLIED_ACTIVITY_ASSIGNMENT    --  sdaiINSTANCE
    //   APPLIED_ACTIVITY_METHOD_ASSIGNMENT    --  sdaiINSTANCE
    //   BREAKDOWN    --  sdaiINSTANCE
    //   BREAKDOWN_ELEMENT    --  sdaiINSTANCE
    //   BREAKDOWN_VERSION    --  sdaiINSTANCE
    //   DOCUMENT    --  sdaiINSTANCE
    //   DOCUMENT_VERSION    --  sdaiINSTANCE
    //   EXTERNAL_CLASS    --  sdaiINSTANCE
    //   EXTERNAL_CLASS_LIBRARY    --  sdaiINSTANCE
    //   INFORMATION_USAGE_RIGHT    --  sdaiINSTANCE
    //   INTERFACE_CONNECTOR_AS_PLANNED    --  sdaiINSTANCE
    //   INTERFACE_CONNECTOR_AS_REALIZED    --  sdaiINSTANCE
    //   INTERFACE_CONNECTOR_DESIGN    --  sdaiINSTANCE
    //   INTERFACE_CONNECTOR_VERSION    --  sdaiINSTANCE
    //   INTERFACE_SPECIFICATION_VERSION    --  sdaiINSTANCE
    //   MANAGED_RESOURCE    --  sdaiINSTANCE
    //   MESSAGE    --  sdaiINSTANCE
    //   PART    --  sdaiINSTANCE
    //   PART_VERSION    --  sdaiINSTANCE
    //   PRODUCT_AS_INDIVIDUAL    --  sdaiINSTANCE
    //   PRODUCT_AS_PLANNED    --  sdaiINSTANCE
    //   PRODUCT_AS_REALIZED    --  sdaiINSTANCE
    //   PRODUCT_CONFIGURATION    --  sdaiINSTANCE
    //   PRODUCT_GROUP    --  sdaiINSTANCE
    //   PRODUCT_GROUP_RELATIONSHIP    --  sdaiINSTANCE
    //   PROJECT    --  sdaiINSTANCE
    //   REQUIREMENT    --  sdaiINSTANCE
    //   REQUIREMENT_ASSIGNMENT    --  sdaiINSTANCE
    //   REQUIREMENT_COLLECTION_RELATIONSHIP    --  sdaiINSTANCE
    //   REQUIREMENT_SOURCE    --  sdaiINSTANCE
    //   REQUIREMENT_VERSION    --  sdaiINSTANCE
    //   REQUIREMENT_VERSION_RELATIONSHIP    --  sdaiINSTANCE
    //   REQUIREMENT_VIEW_DEFINITION    --  sdaiINSTANCE
    //   RESOURCE_EVENT    --  sdaiINSTANCE
    //   RESOURCE_ITEM    --  sdaiINSTANCE
    //   SECURITY_CLASSIFICATION    --  sdaiINSTANCE
    //   TASK_ELEMENT    --  sdaiINSTANCE
    //   TASK_ELEMENT_RELATIONSHIP    --  sdaiINSTANCE
    //   TASK_METHOD    --  sdaiINSTANCE
    //   TASK_METHOD_ASSIGNMENT    --  sdaiINSTANCE
    //   TASK_METHOD_RELATIONSHIP    --  sdaiINSTANCE
    //   TASK_METHOD_VERSION    --  sdaiINSTANCE
    //   TASK_METHOD_VERSION_ASSIGNMENT    --  sdaiINSTANCE
    //   TASK_METHOD_VERSION_RELATIONSHIP    --  sdaiINSTANCE
    //   TASK_OBJECTIVE    --  sdaiINSTANCE
    //   TRACING_RELATIONSHIP    --  sdaiINSTANCE
       SDAI_Application_instance_ptr _app_inst;

  public:
    virtual const TypeDescriptor * AssignEntity (SDAI_Application_instance * se);
    virtual SDAI_Select * NewSelect ();

    virtual BASE_TYPE ValueType() const;


// STEP Part 21
    virtual void STEPwrite_content (ostream& out =std::cout,
                    const char *currSch =0) const;
    virtual void STEPwrite_verbose (ostream& out =std::cout,
                    const char *currSch =0) const;
    virtual Severity STEPread_content (istream& in =cin,
        InstMgrBase * instances =0, const char *utype =0,
        int addFileId =0, const char *currSch =0);
    virtual Severity StrToVal_content (const char *,
        InstMgrBase * instances =0);

// STEP Part 22:  SDAI

// constructors
    SdaiContract_item( const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    //  part 1
    SdaiContract_item( const SdaiActivity_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiActivity_method_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiActivity_method_realization_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiActivity_method_realization_relationship_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiActivity_method_relationship_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiApplied_activity_assignment_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiApplied_activity_method_assignment_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiBreakdown_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiBreakdown_element_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiBreakdown_version_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiDocument_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiDocument_version_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiExternal_class_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiExternal_class_library_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiInformation_usage_right_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiInterface_connector_as_planned_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiInterface_connector_as_realized_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiInterface_connector_design_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiInterface_connector_version_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiInterface_specification_version_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiManaged_resource_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiMessage_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiPart_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiPart_version_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiProduct_as_individual_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiProduct_as_planned_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiProduct_as_realized_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiProduct_configuration_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiProduct_group_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiProduct_group_relationship_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiProject_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiRequirement_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiRequirement_assignment_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiRequirement_collection_relationship_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiRequirement_source_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiRequirement_version_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiRequirement_version_relationship_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiRequirement_view_definition_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiResource_event_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiResource_item_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiSecurity_classification_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiTask_element_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiTask_element_relationship_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiTask_method_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiTask_method_assignment_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiTask_method_relationship_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiTask_method_version_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiTask_method_version_assignment_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiTask_method_version_relationship_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiTask_objective_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    SdaiContract_item( const SdaiTracing_relationship_ptr&,
                       const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    virtual ~SdaiContract_item();

    //  part 2
    operator SdaiActivity_ptr();
    operator SdaiActivity_method_ptr();
    operator SdaiActivity_method_realization_ptr();
    operator SdaiActivity_method_realization_relationship_ptr();
    operator SdaiActivity_method_relationship_ptr();
    operator SdaiApplied_activity_assignment_ptr();
    operator SdaiApplied_activity_method_assignment_ptr();
    operator SdaiBreakdown_ptr();
    operator SdaiBreakdown_element_ptr();
    operator SdaiBreakdown_version_ptr();
    operator SdaiDocument_ptr();
    operator SdaiDocument_version_ptr();
    operator SdaiExternal_class_ptr();
    operator SdaiExternal_class_library_ptr();
    operator SdaiInformation_usage_right_ptr();
    operator SdaiInterface_connector_as_planned_ptr();
    operator SdaiInterface_connector_as_realized_ptr();
    operator SdaiInterface_connector_design_ptr();
    operator SdaiInterface_connector_version_ptr();
    operator SdaiInterface_specification_version_ptr();
    operator SdaiManaged_resource_ptr();
    operator SdaiMessage_ptr();
    operator SdaiPart_ptr();
    operator SdaiPart_version_ptr();
    operator SdaiProduct_as_individual_ptr();
    operator SdaiProduct_as_planned_ptr();
    operator SdaiProduct_as_realized_ptr();
    operator SdaiProduct_configuration_ptr();
    operator SdaiProduct_group_ptr();
    operator SdaiProduct_group_relationship_ptr();
    operator SdaiProject_ptr();
    operator SdaiRequirement_ptr();
    operator SdaiRequirement_assignment_ptr();
    operator SdaiRequirement_collection_relationship_ptr();
    operator SdaiRequirement_source_ptr();
    operator SdaiRequirement_version_ptr();
    operator SdaiRequirement_version_relationship_ptr();
    operator SdaiRequirement_view_definition_ptr();
    operator SdaiResource_event_ptr();
    operator SdaiResource_item_ptr();
    operator SdaiSecurity_classification_ptr();
    operator SdaiTask_element_ptr();
    operator SdaiTask_element_relationship_ptr();
    operator SdaiTask_method_ptr();
    operator SdaiTask_method_assignment_ptr();
    operator SdaiTask_method_relationship_ptr();
    operator SdaiTask_method_version_ptr();
    operator SdaiTask_method_version_assignment_ptr();
    operator SdaiTask_method_version_relationship_ptr();
    operator SdaiTask_objective_ptr();
    operator SdaiTracing_relationship_ptr();

    //  part 3
        SdaiTask_method_ptr_c of_task_method_() const;
        SdaiTask_method_ptr   of_task_method_();
        void of_task_method_( const SdaiTask_method_ptr x );

        SdaiTask_element_ptr_c content_() const;
        SdaiTask_element_ptr   content_();
        void content_( const SdaiTask_element_ptr x );

        SdaiTask_item_agg_ptr_c applied_activity_method_assignment_items_() const;
        SdaiTask_item_agg_ptr   applied_activity_method_assignment_items_();
        void applied_activity_method_assignment_items_( const SdaiTask_item_agg_ptr x );

        SdaiTask_method_ptr_c applied_activity_method_assignment_assigned_activity_method_() const;
        SdaiTask_method_ptr   applied_activity_method_assignment_assigned_activity_method_();
        void applied_activity_method_assignment_assigned_activity_method_( const SdaiTask_method_ptr x );

        EntityAggregate_ptr_c objective_() const;
        EntityAggregate_ptr   objective_();
        void objective_( const EntityAggregate_ptr x );

        SdaiTask_element_ptr_c activity_method_relationship_related_method_() const;
        SdaiTask_element_ptr   activity_method_relationship_related_method_();
        void activity_method_relationship_related_method_( const SdaiTask_element_ptr x );

        SdaiTask_element_ptr_c activity_method_relationship_relating_method_() const;
        SdaiTask_element_ptr   activity_method_relationship_relating_method_();
        void activity_method_relationship_relating_method_( const SdaiTask_element_ptr x );

        EntityAggregate_ptr_c notes_() const;
        EntityAggregate_ptr   notes_();
        void notes_( const EntityAggregate_ptr x );

  const SDAI_String   classification_level_() const;
        SDAI_String   classification_level_();
        void classification_level_( const SDAI_String x );

        SdaiResource_item_select_agg_ptr_c resource_items_() const;
        SdaiResource_item_select_agg_ptr   resource_items_();
        void resource_items_( const SdaiResource_item_select_agg_ptr x );

        SdaiManaged_resource_ptr_c resource_() const;
        SdaiManaged_resource_ptr   resource_();
        void resource_( const SdaiManaged_resource_ptr x );

        SdaiRequirement_version_ptr_c product_view_definition_defined_version_() const;
        SdaiRequirement_version_ptr   product_view_definition_defined_version_();
        void product_view_definition_defined_version_( const SdaiRequirement_version_ptr x );

        SdaiProduct_version_ptr_c defined_version_() const;
        SdaiProduct_version_ptr   defined_version_();
        void defined_version_( const SdaiProduct_version_ptr x );

        EntityAggregate_ptr_c additional_contexts_() const;
        EntityAggregate_ptr   additional_contexts_();
        void additional_contexts_( const EntityAggregate_ptr x );

        SdaiView_definition_context_ptr_c initial_context_() const;
        SdaiView_definition_context_ptr   initial_context_();
        void initial_context_( const SdaiView_definition_context_ptr x );

  const SDAI_String   additional_characterization_() const;
        SDAI_String   additional_characterization_();
        void additional_characterization_( const SDAI_String x );

        SdaiRequirement_version_ptr_c product_version_relationship_related_version_() const;
        SdaiRequirement_version_ptr   product_version_relationship_related_version_();
        void product_version_relationship_related_version_( const SdaiRequirement_version_ptr x );

        SdaiRequirement_version_ptr_c product_version_relationship_relating_version_() const;
        SdaiRequirement_version_ptr   product_version_relationship_relating_version_();
        void product_version_relationship_relating_version_( const SdaiRequirement_version_ptr x );

        SdaiProduct_version_ptr_c related_version_() const;
        SdaiProduct_version_ptr   related_version_();
        void related_version_( const SdaiProduct_version_ptr x );

        SdaiProduct_version_ptr_c relating_version_() const;
        SdaiProduct_version_ptr   relating_version_();
        void relating_version_( const SdaiProduct_version_ptr x );

        SdaiRequirement_view_definition_ptr_c sourced_requirement_() const;
        SdaiRequirement_view_definition_ptr   sourced_requirement_();
        void sourced_requirement_( const SdaiRequirement_view_definition_ptr x );

        SdaiRequirement_source_item_ptr_c source_() const;
        SdaiRequirement_source_item_ptr   source_();
        void source_( const SdaiRequirement_source_item_ptr x );

        SdaiRequirement_view_definition_ptr_c view_definition_relationship_related_view_() const;
        SdaiRequirement_view_definition_ptr   view_definition_relationship_related_view_();
        void view_definition_relationship_related_view_( const SdaiRequirement_view_definition_ptr x );

        SdaiRequirement_view_definition_ptr_c view_definition_relationship_relating_view_() const;
        SdaiRequirement_view_definition_ptr   view_definition_relationship_relating_view_();
        void view_definition_relationship_relating_view_( const SdaiRequirement_view_definition_ptr x );

        SdaiProduct_view_definition_ptr_c related_view_() const;
        SdaiProduct_view_definition_ptr   related_view_();
        void related_view_( const SdaiProduct_view_definition_ptr x );

        SdaiProduct_view_definition_ptr_c relating_view_() const;
        SdaiProduct_view_definition_ptr   relating_view_();
        void relating_view_( const SdaiProduct_view_definition_ptr x );

  const SDAI_String   relation_type_() const;
        SDAI_String   relation_type_();
        void relation_type_( const SDAI_String x );

        SdaiRequirement_assignment_item_ptr_c assigned_to_() const;
        SdaiRequirement_assignment_item_ptr   assigned_to_();
        void assigned_to_( const SdaiRequirement_assignment_item_ptr x );

        SdaiRequirement_view_definition_ptr_c assigned_requirement_() const;
        SdaiRequirement_view_definition_ptr   assigned_requirement_();
        void assigned_requirement_( const SdaiRequirement_view_definition_ptr x );

        SdaiDate_or_date_time_select_ptr_c actual_end_date_() const;
        SdaiDate_or_date_time_select_ptr   actual_end_date_();
        void actual_end_date_( const SdaiDate_or_date_time_select_ptr x );

        SdaiDate_or_date_time_select_ptr_c actual_start_date_() const;
        SdaiDate_or_date_time_select_ptr   actual_start_date_();
        void actual_start_date_( const SdaiDate_or_date_time_select_ptr x );

        SdaiDate_or_event_ptr_c planned_end_date_() const;
        SdaiDate_or_event_ptr   planned_end_date_();
        void planned_end_date_( const SdaiDate_or_event_ptr x );

        SdaiDate_or_event_ptr_c planned_start_date_() const;
        SdaiDate_or_event_ptr   planned_start_date_();
        void planned_start_date_( const SdaiDate_or_event_ptr x );

        EntityAggregate_ptr_c responsible_organizations_() const;
        EntityAggregate_ptr   responsible_organizations_();
        void responsible_organizations_( const EntityAggregate_ptr x );

  const SDAI_String   product_group_context_() const;
        SDAI_String   product_group_context_();
        void product_group_context_( const SDAI_String x );

  const SDAI_String   membership_rule_() const;
        SDAI_String   membership_rule_();
        void membership_rule_( const SDAI_String x );

        EntityAggregate_ptr_c corresponding_design_() const;
        EntityAggregate_ptr   corresponding_design_();
        void corresponding_design_( const EntityAggregate_ptr x );

        SdaiProduct_concept_ptr_c item_context_() const;
        SdaiProduct_concept_ptr   item_context_();
        void item_context_( const SdaiProduct_concept_ptr x );

        SdaiMessage_definer_select_agg_ptr_c defined_by_() const;
        SdaiMessage_definer_select_agg_ptr   defined_by_();
        void defined_by_( const SdaiMessage_definer_select_agg_ptr x );

        EntityAggregate_ptr_c contains_() const;
        EntityAggregate_ptr   contains_();
        void contains_( const EntityAggregate_ptr x );

  const SDAI_String   message_type_() const;
        SDAI_String   message_type_();
        void message_type_( const SDAI_String x );

        SdaiResource_item_ptr_c item_() const;
        SdaiResource_item_ptr   item_();
        void item_( const SdaiResource_item_ptr x );

        SdaiValue_with_unit_ptr_c quantity_() const;
        SdaiValue_with_unit_ptr   quantity_();
        void quantity_( const SdaiValue_with_unit_ptr x );

        EntityAggregate_ptr_c grants_right_() const;
        EntityAggregate_ptr   grants_right_();
        void grants_right_( const EntityAggregate_ptr x );

  const SDAI_String   comment_() const;
        SDAI_String   comment_();
        void comment_( const SDAI_String x );

        SdaiExternal_class_library_ptr_c external_source_() const;
        SdaiExternal_class_library_ptr   external_source_();
        void external_source_( const SdaiExternal_class_library_ptr x );

        EntityAggregate_ptr_c breakdown_of_() const;
        EntityAggregate_ptr   breakdown_of_();
        void breakdown_of_( const EntityAggregate_ptr x );

        SdaiBreakdown_ptr_c product_version_of_product_() const;
        SdaiBreakdown_ptr   product_version_of_product_();
        void product_version_of_product_( const SdaiBreakdown_ptr x );

        SdaiProduct_ptr_c of_product_() const;
        SdaiProduct_ptr   of_product_();
        void of_product_( const SdaiProduct_ptr x );

        SdaiActivity_method_ptr_c assigned_activity_method_() const;
        SdaiActivity_method_ptr   assigned_activity_method_();
        void assigned_activity_method_( const SdaiActivity_method_ptr x );

  const SDAI_String   role_() const;
        SDAI_String   role_();
        void role_( const SDAI_String x );

        SdaiActivity_item_agg_ptr_c items_() const;
        SdaiActivity_item_agg_ptr   items_();
        void items_( const SdaiActivity_item_agg_ptr x );

        SdaiActivity_ptr_c assigned_activity_() const;
        SdaiActivity_ptr   assigned_activity_();
        void assigned_activity_( const SdaiActivity_ptr x );

        SdaiActivity_method_ptr_c related_method_() const;
        SdaiActivity_method_ptr   related_method_();
        void related_method_( const SdaiActivity_method_ptr x );

        SdaiActivity_method_ptr_c relating_method_() const;
        SdaiActivity_method_ptr   relating_method_();
        void relating_method_( const SdaiActivity_method_ptr x );

        SdaiActivity_method_realization_ptr_c related_() const;
        SdaiActivity_method_realization_ptr   related_();
        void related_( const SdaiActivity_method_realization_ptr x );

        SdaiActivity_method_realization_ptr_c relating_() const;
        SdaiActivity_method_realization_ptr   relating_();
        void relating_( const SdaiActivity_method_realization_ptr x );

        SdaiActivity_realization_select_ptr_c realized_by_() const;
        SdaiActivity_realization_select_ptr   realized_by_();
        void realized_by_( const SdaiActivity_realization_select_ptr x );

        SdaiActivity_method_ptr_c activity_method_() const;
        SdaiActivity_method_ptr   activity_method_();
        void activity_method_( const SdaiActivity_method_ptr x );

  const SDAI_String   purpose_() const;
        SDAI_String   purpose_();
        void purpose_( const SDAI_String x );

  const SDAI_String   consequence_() const;
        SDAI_String   consequence_();
        void consequence_( const SDAI_String x );

        SdaiActivity_method_ptr_c chosen_method_() const;
        SdaiActivity_method_ptr   chosen_method_();
        void chosen_method_( const SdaiActivity_method_ptr x );

  const SDAI_String   description_() const;
        SDAI_String   description_();
        void description_( const SDAI_String x );

  const SDAI_String   name_() const;
        SDAI_String   name_();
        void name_( const SDAI_String x );

  const SDAI_String   id_() const;
        SDAI_String   id_();
        void id_( const SDAI_String x );


    //  part 4
    SdaiContract_item& operator =( const SdaiActivity_ptr& );
    SdaiContract_item& operator =( const SdaiActivity_method_ptr& );
    SdaiContract_item& operator =( const SdaiActivity_method_realization_ptr& );
    SdaiContract_item& operator =( const SdaiActivity_method_realization_relationship_ptr& );
    SdaiContract_item& operator =( const SdaiActivity_method_relationship_ptr& );
    SdaiContract_item& operator =( const SdaiApplied_activity_assignment_ptr& );
    SdaiContract_item& operator =( const SdaiApplied_activity_method_assignment_ptr& );
    SdaiContract_item& operator =( const SdaiBreakdown_ptr& );
    SdaiContract_item& operator =( const SdaiBreakdown_element_ptr& );
    SdaiContract_item& operator =( const SdaiBreakdown_version_ptr& );
    SdaiContract_item& operator =( const SdaiDocument_ptr& );
    SdaiContract_item& operator =( const SdaiDocument_version_ptr& );
    SdaiContract_item& operator =( const SdaiExternal_class_ptr& );
    SdaiContract_item& operator =( const SdaiExternal_class_library_ptr& );
    SdaiContract_item& operator =( const SdaiInformation_usage_right_ptr& );
    SdaiContract_item& operator =( const SdaiInterface_connector_as_planned_ptr& );
    SdaiContract_item& operator =( const SdaiInterface_connector_as_realized_ptr& );
    SdaiContract_item& operator =( const SdaiInterface_connector_design_ptr& );
    SdaiContract_item& operator =( const SdaiInterface_connector_version_ptr& );
    SdaiContract_item& operator =( const SdaiInterface_specification_version_ptr& );
    SdaiContract_item& operator =( const SdaiManaged_resource_ptr& );
    SdaiContract_item& operator =( const SdaiMessage_ptr& );
    SdaiContract_item& operator =( const SdaiPart_ptr& );
    SdaiContract_item& operator =( const SdaiPart_version_ptr& );
    SdaiContract_item& operator =( const SdaiProduct_as_individual_ptr& );
    SdaiContract_item& operator =( const SdaiProduct_as_planned_ptr& );
    SdaiContract_item& operator =( const SdaiProduct_as_realized_ptr& );
    SdaiContract_item& operator =( const SdaiProduct_configuration_ptr& );
    SdaiContract_item& operator =( const SdaiProduct_group_ptr& );
    SdaiContract_item& operator =( const SdaiProduct_group_relationship_ptr& );
    SdaiContract_item& operator =( const SdaiProject_ptr& );
    SdaiContract_item& operator =( const SdaiRequirement_ptr& );
    SdaiContract_item& operator =( const SdaiRequirement_assignment_ptr& );
    SdaiContract_item& operator =( const SdaiRequirement_collection_relationship_ptr& );
    SdaiContract_item& operator =( const SdaiRequirement_source_ptr& );
    SdaiContract_item& operator =( const SdaiRequirement_version_ptr& );
    SdaiContract_item& operator =( const SdaiRequirement_version_relationship_ptr& );
    SdaiContract_item& operator =( const SdaiRequirement_view_definition_ptr& );
    SdaiContract_item& operator =( const SdaiResource_event_ptr& );
    SdaiContract_item& operator =( const SdaiResource_item_ptr& );
    SdaiContract_item& operator =( const SdaiSecurity_classification_ptr& );
    SdaiContract_item& operator =( const SdaiTask_element_ptr& );
    SdaiContract_item& operator =( const SdaiTask_element_relationship_ptr& );
    SdaiContract_item& operator =( const SdaiTask_method_ptr& );
    SdaiContract_item& operator =( const SdaiTask_method_assignment_ptr& );
    SdaiContract_item& operator =( const SdaiTask_method_relationship_ptr& );
    SdaiContract_item& operator =( const SdaiTask_method_version_ptr& );
    SdaiContract_item& operator =( const SdaiTask_method_version_assignment_ptr& );
    SdaiContract_item& operator =( const SdaiTask_method_version_relationship_ptr& );
    SdaiContract_item& operator =( const SdaiTask_objective_ptr& );
    SdaiContract_item& operator =( const SdaiTracing_relationship_ptr& );
    // not in SDAI
    SdaiContract_item& ShallowCopy ( const SdaiContract_item& );

#ifdef COMPILER_DEFINES_OPERATOR_EQ
#else
    SdaiContract_item& operator =( SdaiContract_item * const & );
    SDAI_Select& operator =( const SDAI_Select& );
#endif

    //  part 5
    Logical IsActivity() const;
    Logical IsActivity_method() const;
    Logical IsActivity_method_realization() const;
    Logical IsActivity_method_realization_relationship() const;
    Logical IsActivity_method_relationship() const;
    Logical IsApplied_activity_assignment() const;
    Logical IsApplied_activity_method_assignment() const;
    Logical IsBreakdown() const;
    Logical IsBreakdown_element() const;
    Logical IsBreakdown_version() const;
    Logical IsDocument() const;
    Logical IsDocument_version() const;
    Logical IsExternal_class() const;
    Logical IsExternal_class_library() const;
    Logical IsInformation_usage_right() const;
    Logical IsInterface_connector_as_planned() const;
    Logical IsInterface_connector_as_realized() const;
    Logical IsInterface_connector_design() const;
    Logical IsInterface_connector_version() const;
    Logical IsInterface_specification_version() const;
    Logical IsManaged_resource() const;
    Logical IsMessage() const;
    Logical IsPart() const;
    Logical IsPart_version() const;
    Logical IsProduct_as_individual() const;
    Logical IsProduct_as_planned() const;
    Logical IsProduct_as_realized() const;
    Logical IsProduct_configuration() const;
    Logical IsProduct_group() const;
    Logical IsProduct_group_relationship() const;
    Logical IsProject() const;
    Logical IsRequirement() const;
    Logical IsRequirement_assignment() const;
    Logical IsRequirement_collection_relationship() const;
    Logical IsRequirement_source() const;
    Logical IsRequirement_version() const;
    Logical IsRequirement_version_relationship() const;
    Logical IsRequirement_view_definition() const;
    Logical IsResource_event() const;
    Logical IsResource_item() const;
    Logical IsSecurity_classification() const;
    Logical IsTask_element() const;
    Logical IsTask_element_relationship() const;
    Logical IsTask_method() const;
    Logical IsTask_method_assignment() const;
    Logical IsTask_method_relationship() const;
    Logical IsTask_method_version() const;
    Logical IsTask_method_version_assignment() const;
    Logical IsTask_method_version_relationship() const;
    Logical IsTask_objective() const;
    Logical IsTracing_relationship() const;

    //  part 6 ... UnderlyingTypeName () implemented in SDAI_Select class ...

    //  part 7 ... NONE    only for complex selects...
};

inline SDAI_Select * create_SdaiContract_item () { return new SdaiContract_item; }
typedef SdaiContract_item * SdaiContract_itemH;
typedef SdaiContract_item_ptr SdaiContract_item_var;


class SdaiContract_item_agg : public SelectAggregate {
  protected:
    SelectTypeDescriptor *sel_type;

  public:
    SdaiContract_item_agg( SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_contract_item );
    ~SdaiContract_item_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiContract_item( sel_type )); }
};
inline STEPaggregate * create_SdaiContract_item_agg () { return new SdaiContract_item_agg; }
typedef SdaiContract_item_agg_ptr SdaiContract_item_agg_var;

/////  END SELECT TYPE contract_item

void init_SdaiContract_item(Registry& reg);

#endif
