def as_raw(self): artifact_name = self.artifact_name if hasattr(artifact_name, 'as_raw'): artifact_name = as_raw(artifact_name) location = self.location if location is not None: if hasattr(location, 'as_raw'): location = as_raw(location) remove = self.remove if hasattr(remove, 'as_raw'): remove = as_raw(remove) if remove is not None: return { 'get_artifact': [ self.modelable_entity_name, artifact_name, location, remove ] } else: return { 'get_artifact': [self.modelable_entity_name, artifact_name, location] } else: return { 'get_artifact': [self.modelable_entity_name, artifact_name] }
def as_raw(self): string_with_tokens = self.string_with_tokens if hasattr(string_with_tokens, 'as_raw'): string_with_tokens = as_raw(string_with_tokens) string_of_token_chars = self.string_of_token_chars if hasattr(string_of_token_chars, 'as_raw'): string_of_token_chars = as_raw(string_of_token_chars) return {'token': [string_with_tokens, string_of_token_chars, self.substring_index]}
def as_raw(self): artifact_name = self.artifact_name if hasattr(artifact_name, 'as_raw'): artifact_name = as_raw(artifact_name) location = self.location if hasattr(location, 'as_raw'): location = as_raw(location) return {'get_artifacts': [self.modelable_entity_name, artifact_name, location, self.remove]}
def as_raw(self): interface_name = self.interface_name if hasattr(interface_name, 'as_raw'): interface_name = as_raw(interface_name) operation_name = self.operation_name if hasattr(operation_name, 'as_raw'): operation_name = as_raw(operation_name) output_variable_name = self.output_variable_name if hasattr(output_variable_name, 'as_raw'): output_variable_name = as_raw(output_variable_name) return {'get_operation_output': [self.modelable_entity_name, interface_name, operation_name, output_variable_name]}
def as_raw(self): string_expressions = [] for string_expression in self.string_expressions: if hasattr(string_expression, 'as_raw'): string_expression = as_raw(string_expression) string_expressions.append(string_expression) return {'concat': string_expressions}
def as_raw(self): node_type_name = self.node_type_name if hasattr(node_type_name, 'as_raw'): node_type_name = as_raw(node_type_name) return {'get_nodes_of_type': node_type_name}
def as_raw(self): return {'get_input': as_raw(self.input_property_name)}
def _dump(self, context): value = as_raw(self.value) puts(context.style.meta(value))