@Test public void add_operation_to_group() throws Exception { DataValue g = m_oi.create_group(); DataValue op = m_oi.create_operation("foo"); m_oi.add_operation_to_group(g, op); assertEquals(1, m_oi.group_operation_names(g).size()); assertTrue(m_oi.group_operation_names(g).contains("foo")); DataValue op_2 = m_oi.group_operation(g, "foo"); assertEquals("foo", m_oi.operation_name(op_2)); }
public void add_operation_to_group(DataValue group_v, DataValue op_v) { Ensure.is_true(is_group(group_v)); Ensure.is_true(is_operation(op_v)); Ensure.is_false(group_has_operation(group_v, operation_name(op_v))); StructureDataValue group = (StructureDataValue) group_v; MapDataValue ops = (MapDataValue) group.value( m_group_operations_field); StringValue sv = m_pscope.string().make(operation_name(op_v)); ops.put(sv, op_v); }
OperationInformation { public void add_operation_to_group(DataValue group_v, DataValue op_v) { Ensure.is_true(is_group(group_v)); Ensure.is_true(is_operation(op_v)); Ensure.is_false(group_has_operation(group_v, operation_name(op_v))); StructureDataValue group = (StructureDataValue) group_v; MapDataValue ops = (MapDataValue) group.value( m_group_operations_field); StringValue sv = m_pscope.string().make(operation_name(op_v)); ops.put(sv, op_v); } }
OperationInformation { public void add_operation_to_group(DataValue group_v, DataValue op_v) { Ensure.is_true(is_group(group_v)); Ensure.is_true(is_operation(op_v)); Ensure.is_false(group_has_operation(group_v, operation_name(op_v))); StructureDataValue group = (StructureDataValue) group_v; MapDataValue ops = (MapDataValue) group.value( m_group_operations_field); StringValue sv = m_pscope.string().make(operation_name(op_v)); ops.put(sv, op_v); } OperationInformation(PrimitiveScope pscope); }
OperationInformation { public void add_operation_to_group(DataValue group_v, DataValue op_v) { Ensure.is_true(is_group(group_v)); Ensure.is_true(is_operation(op_v)); Ensure.is_false(group_has_operation(group_v, operation_name(op_v))); StructureDataValue group = (StructureDataValue) group_v; MapDataValue ops = (MapDataValue) group.value( m_group_operations_field); StringValue sv = m_pscope.string().make(operation_name(op_v)); ops.put(sv, op_v); } OperationInformation(PrimitiveScope pscope); DataValue create_operation(String name); boolean is_operation(DataValue op_v); String operation_name(DataValue op_v); void add_parameter(DataValue op_v, DataType type, String name,
			ParameterDirection direction); Set<String> parameters(DataValue op_v); DataType parameter_type(DataValue op_v, String name); ParameterDirection parameter_direction(DataValue op_v, String name); DataValue create_group(); boolean is_group(DataValue group_v); void add_operation_to_group(DataValue group_v, DataValue op_v); Set<String> group_operation_names(DataValue group_v); boolean group_has_operation(DataValue group_v, String name); DataValue group_operation(DataValue group_v, String name); DataValue create_execution_request(long exec_id, String dst_id,
			String obj_id, DataValue op_v, Map<String,
			DataValue> input_arguments); boolean is_execution_request(DataValue ereq_v); long execution_request_id(DataValue ereq_v); String execution_request_dst(DataValue ereq_v); String execution_request_obj_id(DataValue ereq_v); String execution_request_operation(DataValue ereq_v); Map<String, DataValue> execution_request_input_arguments(
			DataValue ereq_v); DataValue create_execution_response(DataValue ereq_v,
			DataValue op_v, Map<String, DataValue> output_arguments); DataValue create_execution_failure(DataValue ereq_v,
			String failure_type, String failure_description,
			String failure_data); boolean is_execution_response(DataValue eres_v); boolean is_successful_execution(DataValue eres_v); long execution_response_id(DataValue eres_v); Map<String, DataValue> execution_response_output_arguments(
			DataValue eres_v); String execution_response_failure_type(DataValue eres_v); String execution_response_failure_description(DataValue eres_v); String execution_response_failure_data(DataValue eres_v); }
OperationInformation { public void add_operation_to_group(DataValue group_v, DataValue op_v) { Ensure.is_true(is_group(group_v)); Ensure.is_true(is_operation(op_v)); Ensure.is_false(group_has_operation(group_v, operation_name(op_v))); StructureDataValue group = (StructureDataValue) group_v; MapDataValue ops = (MapDataValue) group.value( m_group_operations_field); StringValue sv = m_pscope.string().make(operation_name(op_v)); ops.put(sv, op_v); } OperationInformation(PrimitiveScope pscope); DataValue create_operation(String name); boolean is_operation(DataValue op_v); String operation_name(DataValue op_v); void add_parameter(DataValue op_v, DataType type, String name,
			ParameterDirection direction); Set<String> parameters(DataValue op_v); DataType parameter_type(DataValue op_v, String name); ParameterDirection parameter_direction(DataValue op_v, String name); DataValue create_group(); boolean is_group(DataValue group_v); void add_operation_to_group(DataValue group_v, DataValue op_v); Set<String> group_operation_names(DataValue group_v); boolean group_has_operation(DataValue group_v, String name); DataValue group_operation(DataValue group_v, String name); DataValue create_execution_request(long exec_id, String dst_id,
			String obj_id, DataValue op_v, Map<String,
			DataValue> input_arguments); boolean is_execution_request(DataValue ereq_v); long execution_request_id(DataValue ereq_v); String execution_request_dst(DataValue ereq_v); String execution_request_obj_id(DataValue ereq_v); String execution_request_operation(DataValue ereq_v); Map<String, DataValue> execution_request_input_arguments(
			DataValue ereq_v); DataValue create_execution_response(DataValue ereq_v,
			DataValue op_v, Map<String, DataValue> output_arguments); DataValue create_execution_failure(DataValue ereq_v,
			String failure_type, String failure_description,
			String failure_data); boolean is_execution_response(DataValue eres_v); boolean is_successful_execution(DataValue eres_v); long execution_response_id(DataValue eres_v); Map<String, DataValue> execution_response_output_arguments(
			DataValue eres_v); String execution_response_failure_type(DataValue eres_v); String execution_response_failure_description(DataValue eres_v); String execution_response_failure_data(DataValue eres_v); static final String TDL_RESOURCE; static final String ESEB_NAMESPACE; static final String OPERATION_NAMESPACE; static final String PARAMETER_DIRECTION_ENUM_NAME; static final String PARAMETER_DIRECTION_INPUT_ENUM_VALUE; static final String PARAMETER_DIRECTION_OUTPUT_ENUM_VALUE; static final String PARAMETER_STRUCTURE_NAME; static final String PARAMETER_NAME_FIELD_NAME; static final String PARAMETER_DIRECTION_FIELD_NAME; static final String PARAMETER_TYPE_FIELD_NAME; static final String OPERATION_STRUCTURE_NAME; static final String OPERATION_NAME_FIELD_NAME; static final String OPERATION_PARAMETERS_FIELD_NAME; static final String GROUP_STRUCTURE_NAME; static final String GROUP_OPERATIONS_FIELD_NAME; static final String REQUEST_STRUCTURE_NAME; static final String REQUEST_EXEC_ID_FIELD_NAME; static final String REQUEST_DST_ID_FIELD_NAME; static final String REQUEST_OBJ_ID_FIELD_NAME; static final String REQUEST_OPERATION_FIELD_NAME; static final String REQUEST_INPUTS_FIELD_NAME; static final String RESPONSE_STRUCTURE_NAME; static final String RESPONSE_EXEC_ID_FIELD_NAME; static final String RESPONSE_SUCCESS_STRUCTURE_NAME; static final String RESPONSE_OUTPUT_FIELD_NAME; static final String RESPONSE_FAILURE_STRUCTURE_NAME; static final String RESPONSE_FAILURE_TYPE_FIELD_NAME; static final String RESPONSE_FAILURE_DESCRIPTION_FIELD_NAME; static final String RESPONSE_FAILURE_DATA_FIELD_NAME; }