#ifndef  TYPE_SDAIJUSTIFICATION_ITEM_H
#define  TYPE_SDAIJUSTIFICATION_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 SdaiJustification_item
class SC_SCHEMA_EXPORT SdaiJustification_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
    //   ACTIVITY_PROPERTY    --  sdaiINSTANCE
    //   APPLIED_ACTIVITY_ASSIGNMENT    --  sdaiINSTANCE
    //   APPLIED_ACTIVITY_METHOD_ASSIGNMENT    --  sdaiINSTANCE
    //   APPLIED_STATE_ASSIGNMENT    --  sdaiINSTANCE
    //   APPROVAL    --  sdaiINSTANCE
    //   APPROVAL_ASSIGNMENT    --  sdaiINSTANCE
    //   ASSIGNED_PROPERTY    --  sdaiINSTANCE
    //   CLASSIFICATION_ASSIGNMENT    --  sdaiINSTANCE
    //   DESCRIPTIVE_DOCUMENT_PROPERTY    --  sdaiINSTANCE
    //   DOCUMENT_ASSIGNMENT    --  sdaiINSTANCE
    //   DOCUMENT_DEFINITION    --  sdaiINSTANCE
    //   DOCUMENT_DEFINITION_RELATIONSHIP    --  sdaiINSTANCE
    //   EFFECTIVITY    --  sdaiINSTANCE
    //   FILE_RELATIONSHIP    --  sdaiINSTANCE
    //   INDEPENDENT_PROPERTY    --  sdaiINSTANCE
    //   INDEPENDENT_PROPERTY_RELATIONSHIP    --  sdaiINSTANCE
    //   INTERFACE_CONNECTION    --  sdaiINSTANCE
    //   INTERFACE_CONNECTOR_OCCURRENCE    --  sdaiINSTANCE
    //   INTERFACE_DEFINITION_CONNECTION    --  sdaiINSTANCE
    //   LOCATION_ASSIGNMENT    --  sdaiINSTANCE
    //   MANAGED_RESOURCE_RELATIONSHIP    --  sdaiINSTANCE
    //   MESSAGE    --  sdaiINSTANCE
    //   NUMERICAL_DOCUMENT_PROPERTY    --  sdaiINSTANCE
    //   PRODUCT    --  sdaiINSTANCE
    //   PRODUCT_VERSION    --  sdaiINSTANCE
    //   PRODUCT_VERSION_RELATIONSHIP    --  sdaiINSTANCE
    //   PRODUCT_VIEW_DEFINITION    --  sdaiINSTANCE
    //   REQUIRED_RESOURCE    --  sdaiINSTANCE
    //   REQUIRED_RESOURCE_ASSIGNMENT    --  sdaiINSTANCE
    //   REQUIRED_RESOURCE_RELATIONSHIP    --  sdaiINSTANCE
    //   RESOURCE_AS_REALIZED    --  sdaiINSTANCE
    //   RESOURCE_EVENT    --  sdaiINSTANCE
    //   RESOURCE_ITEM    --  sdaiINSTANCE
    //   RESOURCE_ITEM_ASSIGNMENT    --  sdaiINSTANCE
    //   RESOURCE_ITEM_RELATIONSHIP    --  sdaiINSTANCE
    //   RESOURCE_PROPERTY    --  sdaiINSTANCE
    //   STATE_ASSERTION    --  sdaiINSTANCE
    //   STATE_ASSESSMENT    --  sdaiINSTANCE
    //   TASK_ELEMENT    --  sdaiINSTANCE
    //   TASK_ELEMENT_RELATIONSHIP    --  sdaiINSTANCE
    //   TASK_ELEMENT_STATE_RELATIONSHIP    --  sdaiINSTANCE
    //   TASK_METHOD    --  sdaiINSTANCE
    //   TASK_METHOD_ASSIGNMENT    --  sdaiINSTANCE
    //   TASK_METHOD_RELATIONSHIP    --  sdaiINSTANCE
    //   TASK_METHOD_STATE_RELATIONSHIP    --  sdaiINSTANCE
    //   TASK_METHOD_VERSION    --  sdaiINSTANCE
    //   TASK_METHOD_VERSION_ASSIGNMENT    --  sdaiINSTANCE
    //   TASK_METHOD_VERSION_RELATIONSHIP    --  sdaiINSTANCE
    //   TASK_OBJECTIVE    --  sdaiINSTANCE
    //   TASK_OBJECTIVE_STATE_RELATIONSHIP    --  sdaiINSTANCE
    //   VIEW_DEFINITION_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
    SdaiJustification_item( const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    //  part 1
    SdaiJustification_item( const SdaiActivity_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiActivity_method_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiActivity_method_realization_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiActivity_method_realization_relationship_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiActivity_method_relationship_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiActivity_property_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiApplied_activity_assignment_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiApplied_activity_method_assignment_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiApplied_state_assignment_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiApproval_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiApproval_assignment_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiAssigned_property_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiClassification_assignment_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiDescriptive_document_property_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiDocument_assignment_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiDocument_definition_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiDocument_definition_relationship_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiEffectivity_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiFile_relationship_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiIndependent_property_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiIndependent_property_relationship_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiInterface_connection_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiInterface_connector_occurrence_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiInterface_definition_connection_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiLocation_assignment_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiManaged_resource_relationship_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiMessage_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiNumerical_document_property_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiProduct_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiProduct_version_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiProduct_version_relationship_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiProduct_view_definition_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiRequired_resource_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiRequired_resource_assignment_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiRequired_resource_relationship_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiResource_as_realized_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiResource_event_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiResource_item_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiResource_item_assignment_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiResource_item_relationship_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiResource_property_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiState_assertion_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiState_assessment_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiTask_element_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiTask_element_relationship_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiTask_element_state_relationship_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiTask_method_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiTask_method_assignment_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiTask_method_relationship_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiTask_method_state_relationship_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiTask_method_version_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiTask_method_version_assignment_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiTask_method_version_relationship_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiTask_objective_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiTask_objective_state_relationship_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    SdaiJustification_item( const SdaiView_definition_relationship_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    virtual ~SdaiJustification_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 SdaiActivity_property_ptr();
    operator SdaiApplied_activity_assignment_ptr();
    operator SdaiApplied_activity_method_assignment_ptr();
    operator SdaiApplied_state_assignment_ptr();
    operator SdaiApproval_ptr();
    operator SdaiApproval_assignment_ptr();
    operator SdaiAssigned_property_ptr();
    operator SdaiClassification_assignment_ptr();
    operator SdaiDescriptive_document_property_ptr();
    operator SdaiDocument_assignment_ptr();
    operator SdaiDocument_definition_ptr();
    operator SdaiDocument_definition_relationship_ptr();
    operator SdaiEffectivity_ptr();
    operator SdaiFile_relationship_ptr();
    operator SdaiIndependent_property_ptr();
    operator SdaiIndependent_property_relationship_ptr();
    operator SdaiInterface_connection_ptr();
    operator SdaiInterface_connector_occurrence_ptr();
    operator SdaiInterface_definition_connection_ptr();
    operator SdaiLocation_assignment_ptr();
    operator SdaiManaged_resource_relationship_ptr();
    operator SdaiMessage_ptr();
    operator SdaiNumerical_document_property_ptr();
    operator SdaiProduct_ptr();
    operator SdaiProduct_version_ptr();
    operator SdaiProduct_version_relationship_ptr();
    operator SdaiProduct_view_definition_ptr();
    operator SdaiRequired_resource_ptr();
    operator SdaiRequired_resource_assignment_ptr();
    operator SdaiRequired_resource_relationship_ptr();
    operator SdaiResource_as_realized_ptr();
    operator SdaiResource_event_ptr();
    operator SdaiResource_item_ptr();
    operator SdaiResource_item_assignment_ptr();
    operator SdaiResource_item_relationship_ptr();
    operator SdaiResource_property_ptr();
    operator SdaiState_assertion_ptr();
    operator SdaiState_assessment_ptr();
    operator SdaiTask_element_ptr();
    operator SdaiTask_element_relationship_ptr();
    operator SdaiTask_element_state_relationship_ptr();
    operator SdaiTask_method_ptr();
    operator SdaiTask_method_assignment_ptr();
    operator SdaiTask_method_relationship_ptr();
    operator SdaiTask_method_state_relationship_ptr();
    operator SdaiTask_method_version_ptr();
    operator SdaiTask_method_version_assignment_ptr();
    operator SdaiTask_method_version_relationship_ptr();
    operator SdaiTask_objective_ptr();
    operator SdaiTask_objective_state_relationship_ptr();
    operator SdaiView_definition_relationship_ptr();

    //  part 3
        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 );

        SdaiTask_objective_ptr_c task_objective_() const;
        SdaiTask_objective_ptr   task_objective_();
        void task_objective_( const SdaiTask_objective_ptr x );

        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_method_version_ptr_c task_method_() const;
        SdaiTask_method_version_ptr   task_method_();
        void task_method_( const SdaiTask_method_version_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 task_element_() const;
        SdaiTask_element_ptr   task_element_();
        void task_element_( const SdaiTask_element_ptr x );

        SdaiState_or_state_definition_select_ptr_c state_() const;
        SdaiState_or_state_definition_select_ptr   state_();
        void state_( const SdaiState_or_state_definition_select_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 );

        SdaiState_definition_ptr_c comparable_state_() const;
        SdaiState_definition_ptr   comparable_state_();
        void comparable_state_( const SdaiState_definition_ptr x );

        SdaiState_ptr_c assessed_state_() const;
        SdaiState_ptr   assessed_state_();
        void assessed_state_( const SdaiState_ptr x );

        SdaiState_definition_ptr_c conformance_state_() const;
        SdaiState_definition_ptr   conformance_state_();
        void conformance_state_( const SdaiState_definition_ptr x );

        SdaiState_ptr_c asserted_state_() const;
        SdaiState_ptr   asserted_state_();
        void asserted_state_( const SdaiState_ptr 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 );

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

        SdaiRequired_resource_item_ptr_c item_() const;
        SdaiRequired_resource_item_ptr   item_();
        void item_( const SdaiRequired_resource_item_ptr x );

        SdaiRequired_resource_ptr_c assigned_resource_() const;
        SdaiRequired_resource_ptr   assigned_resource_();
        void assigned_resource_( const SdaiRequired_resource_ptr x );

        SdaiValue_with_unit_ptr_c required_quantity_() const;
        SdaiValue_with_unit_ptr   required_quantity_();
        void required_quantity_( const SdaiValue_with_unit_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 );

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

        SdaiMeasure_value_ptr_c value_component_() const;
        SdaiMeasure_value_ptr   value_component_();
        void value_component_( const SdaiMeasure_value_ptr x );

        SdaiUnit_ptr_c unit_() const;
        SdaiUnit_ptr   unit_();
        void unit_( const SdaiUnit_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 );

        SdaiLocation_ptr_c location_for_assignment_() const;
        SdaiLocation_ptr   location_for_assignment_();
        void location_for_assignment_( const SdaiLocation_ptr x );

        SdaiLocation_assignment_select_ptr_c entity_for_location_() const;
        SdaiLocation_assignment_select_ptr   entity_for_location_();
        void entity_for_location_( const SdaiLocation_assignment_select_ptr x );

        SdaiConnector_on_item_ptr_c connector_on_() const;
        SdaiConnector_on_item_ptr   connector_on_();
        void connector_on_( const SdaiConnector_on_item_ptr x );

        SdaiInterface_connector_definition_ptr_c occurrence_of_() const;
        SdaiInterface_connector_definition_ptr   occurrence_of_();
        void occurrence_of_( const SdaiInterface_connector_definition_ptr x );

        SdaiConnection_items_ptr_c connected_() const;
        SdaiConnection_items_ptr   connected_();
        void connected_( const SdaiConnection_items_ptr x );

        SdaiConnection_items_ptr_c connecting_() const;
        SdaiConnection_items_ptr   connecting_();
        void connecting_( const SdaiConnection_items_ptr x );

  const SDAI_String   connection_type_() const;
        SDAI_String   connection_type_();
        void connection_type_( const SDAI_String x );

  const SDAI_String   property_type_() const;
        SDAI_String   property_type_();
        void property_type_( const SDAI_String x );

        SdaiFile_ptr_c related_document_file_() const;
        SdaiFile_ptr   related_document_file_();
        void related_document_file_( const SdaiFile_ptr x );

        SdaiFile_ptr_c relating_document_file_() const;
        SdaiFile_ptr   relating_document_file_();
        void relating_document_file_( const SdaiFile_ptr x );

        SdaiDocument_definition_ptr_c related_document_definition_() const;
        SdaiDocument_definition_ptr   related_document_definition_();
        void related_document_definition_( const SdaiDocument_definition_ptr x );

        SdaiDocument_definition_ptr_c relating_document_definition_() const;
        SdaiDocument_definition_ptr   relating_document_definition_();
        void relating_document_definition_( const SdaiDocument_definition_ptr x );

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

        SdaiDocument_version_ptr_c product_view_definition_defined_version_() const;
        SdaiDocument_version_ptr   product_view_definition_defined_version_();
        void product_view_definition_defined_version_( const SdaiDocument_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 );

        SdaiDocumented_element_select_ptr_c is_assigned_to_() const;
        SdaiDocumented_element_select_ptr   is_assigned_to_();
        void is_assigned_to_( const SdaiDocumented_element_select_ptr x );

        SdaiAssigned_document_select_ptr_c assigned_document_() const;
        SdaiAssigned_document_select_ptr   assigned_document_();
        void assigned_document_( const SdaiAssigned_document_select_ptr x );

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

  const SDAI_String   string_value_() const;
        SDAI_String   string_value_();
        void string_value_( const SDAI_String x );

        SdaiClass_ptr_c assigned_class_() const;
        SdaiClass_ptr   assigned_class_();
        void assigned_class_( const SdaiClass_ptr x );

        SdaiApproval_ptr_c assigned_approval_() const;
        SdaiApproval_ptr   assigned_approval_();
        void assigned_approval_( const SdaiApproval_ptr x );

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

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

        SdaiApproval_status_ptr_c status_() const;
        SdaiApproval_status_ptr   status_();
        void status_( const SdaiApproval_status_ptr x );

        SdaiState_of_item_ptr_c assigned_to_() const;
        SdaiState_of_item_ptr   assigned_to_();
        void assigned_to_( const SdaiState_of_item_ptr x );

        SdaiState_ptr_c described_state_() const;
        SdaiState_ptr   described_state_();
        void described_state_( const SdaiState_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 );

        SdaiCharacterized_activity_definition_ptr_c described_element_() const;
        SdaiCharacterized_activity_definition_ptr   described_element_();
        void described_element_( const SdaiCharacterized_activity_definition_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
    SdaiJustification_item& operator =( const SdaiActivity_ptr& );
    SdaiJustification_item& operator =( const SdaiActivity_method_ptr& );
    SdaiJustification_item& operator =( const SdaiActivity_method_realization_ptr& );
    SdaiJustification_item& operator =( const SdaiActivity_method_realization_relationship_ptr& );
    SdaiJustification_item& operator =( const SdaiActivity_method_relationship_ptr& );
    SdaiJustification_item& operator =( const SdaiActivity_property_ptr& );
    SdaiJustification_item& operator =( const SdaiApplied_activity_assignment_ptr& );
    SdaiJustification_item& operator =( const SdaiApplied_activity_method_assignment_ptr& );
    SdaiJustification_item& operator =( const SdaiApplied_state_assignment_ptr& );
    SdaiJustification_item& operator =( const SdaiApproval_ptr& );
    SdaiJustification_item& operator =( const SdaiApproval_assignment_ptr& );
    SdaiJustification_item& operator =( const SdaiAssigned_property_ptr& );
    SdaiJustification_item& operator =( const SdaiClassification_assignment_ptr& );
    SdaiJustification_item& operator =( const SdaiDescriptive_document_property_ptr& );
    SdaiJustification_item& operator =( const SdaiDocument_assignment_ptr& );
    SdaiJustification_item& operator =( const SdaiDocument_definition_ptr& );
    SdaiJustification_item& operator =( const SdaiDocument_definition_relationship_ptr& );
    SdaiJustification_item& operator =( const SdaiEffectivity_ptr& );
    SdaiJustification_item& operator =( const SdaiFile_relationship_ptr& );
    SdaiJustification_item& operator =( const SdaiIndependent_property_ptr& );
    SdaiJustification_item& operator =( const SdaiIndependent_property_relationship_ptr& );
    SdaiJustification_item& operator =( const SdaiInterface_connection_ptr& );
    SdaiJustification_item& operator =( const SdaiInterface_connector_occurrence_ptr& );
    SdaiJustification_item& operator =( const SdaiInterface_definition_connection_ptr& );
    SdaiJustification_item& operator =( const SdaiLocation_assignment_ptr& );
    SdaiJustification_item& operator =( const SdaiManaged_resource_relationship_ptr& );
    SdaiJustification_item& operator =( const SdaiMessage_ptr& );
    SdaiJustification_item& operator =( const SdaiNumerical_document_property_ptr& );
    SdaiJustification_item& operator =( const SdaiProduct_ptr& );
    SdaiJustification_item& operator =( const SdaiProduct_version_ptr& );
    SdaiJustification_item& operator =( const SdaiProduct_version_relationship_ptr& );
    SdaiJustification_item& operator =( const SdaiProduct_view_definition_ptr& );
    SdaiJustification_item& operator =( const SdaiRequired_resource_ptr& );
    SdaiJustification_item& operator =( const SdaiRequired_resource_assignment_ptr& );
    SdaiJustification_item& operator =( const SdaiRequired_resource_relationship_ptr& );
    SdaiJustification_item& operator =( const SdaiResource_as_realized_ptr& );
    SdaiJustification_item& operator =( const SdaiResource_event_ptr& );
    SdaiJustification_item& operator =( const SdaiResource_item_ptr& );
    SdaiJustification_item& operator =( const SdaiResource_item_assignment_ptr& );
    SdaiJustification_item& operator =( const SdaiResource_item_relationship_ptr& );
    SdaiJustification_item& operator =( const SdaiResource_property_ptr& );
    SdaiJustification_item& operator =( const SdaiState_assertion_ptr& );
    SdaiJustification_item& operator =( const SdaiState_assessment_ptr& );
    SdaiJustification_item& operator =( const SdaiTask_element_ptr& );
    SdaiJustification_item& operator =( const SdaiTask_element_relationship_ptr& );
    SdaiJustification_item& operator =( const SdaiTask_element_state_relationship_ptr& );
    SdaiJustification_item& operator =( const SdaiTask_method_ptr& );
    SdaiJustification_item& operator =( const SdaiTask_method_assignment_ptr& );
    SdaiJustification_item& operator =( const SdaiTask_method_relationship_ptr& );
    SdaiJustification_item& operator =( const SdaiTask_method_state_relationship_ptr& );
    SdaiJustification_item& operator =( const SdaiTask_method_version_ptr& );
    SdaiJustification_item& operator =( const SdaiTask_method_version_assignment_ptr& );
    SdaiJustification_item& operator =( const SdaiTask_method_version_relationship_ptr& );
    SdaiJustification_item& operator =( const SdaiTask_objective_ptr& );
    SdaiJustification_item& operator =( const SdaiTask_objective_state_relationship_ptr& );
    SdaiJustification_item& operator =( const SdaiView_definition_relationship_ptr& );
    // not in SDAI
    SdaiJustification_item& ShallowCopy ( const SdaiJustification_item& );

#ifdef COMPILER_DEFINES_OPERATOR_EQ
#else
    SdaiJustification_item& operator =( SdaiJustification_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 IsActivity_property() const;
    Logical IsApplied_activity_assignment() const;
    Logical IsApplied_activity_method_assignment() const;
    Logical IsApplied_state_assignment() const;
    Logical IsApproval() const;
    Logical IsApproval_assignment() const;
    Logical IsAssigned_property() const;
    Logical IsClassification_assignment() const;
    Logical IsDescriptive_document_property() const;
    Logical IsDocument_assignment() const;
    Logical IsDocument_definition() const;
    Logical IsDocument_definition_relationship() const;
    Logical IsEffectivity() const;
    Logical IsFile_relationship() const;
    Logical IsIndependent_property() const;
    Logical IsIndependent_property_relationship() const;
    Logical IsInterface_connection() const;
    Logical IsInterface_connector_occurrence() const;
    Logical IsInterface_definition_connection() const;
    Logical IsLocation_assignment() const;
    Logical IsManaged_resource_relationship() const;
    Logical IsMessage() const;
    Logical IsNumerical_document_property() const;
    Logical IsProduct() const;
    Logical IsProduct_version() const;
    Logical IsProduct_version_relationship() const;
    Logical IsProduct_view_definition() const;
    Logical IsRequired_resource() const;
    Logical IsRequired_resource_assignment() const;
    Logical IsRequired_resource_relationship() const;
    Logical IsResource_as_realized() const;
    Logical IsResource_event() const;
    Logical IsResource_item() const;
    Logical IsResource_item_assignment() const;
    Logical IsResource_item_relationship() const;
    Logical IsResource_property() const;
    Logical IsState_assertion() const;
    Logical IsState_assessment() const;
    Logical IsTask_element() const;
    Logical IsTask_element_relationship() const;
    Logical IsTask_element_state_relationship() const;
    Logical IsTask_method() const;
    Logical IsTask_method_assignment() const;
    Logical IsTask_method_relationship() const;
    Logical IsTask_method_state_relationship() const;
    Logical IsTask_method_version() const;
    Logical IsTask_method_version_assignment() const;
    Logical IsTask_method_version_relationship() const;
    Logical IsTask_objective() const;
    Logical IsTask_objective_state_relationship() const;
    Logical IsView_definition_relationship() const;

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

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

inline SDAI_Select * create_SdaiJustification_item () { return new SdaiJustification_item; }
typedef SdaiJustification_item * SdaiJustification_itemH;
typedef SdaiJustification_item_ptr SdaiJustification_item_var;


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

  public:
    SdaiJustification_item_agg( SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_justification_item );
    ~SdaiJustification_item_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiJustification_item( sel_type )); }
};
inline STEPaggregate * create_SdaiJustification_item_agg () { return new SdaiJustification_item_agg; }
typedef SdaiJustification_item_agg_ptr SdaiJustification_item_agg_var;

/////  END SELECT TYPE justification_item

void init_SdaiJustification_item(Registry& reg);

#endif
