@Test public void create_operation() throws Exception { DataValue v = m_oi.create_operation("test"); assertEquals("test", m_oi.operation_name(v)); assertEquals(0, m_oi.parameters(v).size()); }
public DataValue create_operation(String name) { Ensure.not_null(name); Map<Field, DataValue> values = new HashMap<>(); values.put(m_operation_name_field, m_pscope.string().make(name)); values.put(m_operation_parameters_field, SetDataType.set_of(m_parameter_type, m_pscope).make()); return m_operation_type.make(values); }
OperationInformation { public DataValue create_operation(String name) { Ensure.not_null(name); Map<Field, DataValue> values = new HashMap<>(); values.put(m_operation_name_field, m_pscope.string().make(name)); values.put(m_operation_parameters_field, SetDataType.set_of(m_parameter_type, m_pscope).make()); return m_operation_type.make(values); } }
OperationInformation { public DataValue create_operation(String name) { Ensure.not_null(name); Map<Field, DataValue> values = new HashMap<>(); values.put(m_operation_name_field, m_pscope.string().make(name)); values.put(m_operation_parameters_field, SetDataType.set_of(m_parameter_type, m_pscope).make()); return m_operation_type.make(values); } OperationInformation(PrimitiveScope pscope); }
OperationInformation { public DataValue create_operation(String name) { Ensure.not_null(name); Map<Field, DataValue> values = new HashMap<>(); values.put(m_operation_name_field, m_pscope.string().make(name)); values.put(m_operation_parameters_field, SetDataType.set_of(m_parameter_type, m_pscope).make()); return m_operation_type.make(values); } 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 DataValue create_operation(String name) { Ensure.not_null(name); Map<Field, DataValue> values = new HashMap<>(); values.put(m_operation_name_field, m_pscope.string().make(name)); values.put(m_operation_parameters_field, SetDataType.set_of(m_parameter_type, m_pscope).make()); return m_operation_type.make(values); } 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; }