Struct dmntk_model::model::Definitions
source · pub struct Definitions { /* private fields */ }
Expand description
Definitions element is the outermost containing object for all elements of a DMN decision model. It defines the scope of visibility and the namespace for all contained elements.
Implementations§
source§impl Definitions
impl Definitions
sourcepub fn namespace(&self) -> &str
pub fn namespace(&self) -> &str
Returns the reference to the namespace associated with this Definitions.
sourcepub fn expression_language(&self) -> &Option<String>
pub fn expression_language(&self) -> &Option<String>
Returns the reference to optional expression language used within the scope of this Definitions.
sourcepub fn type_language(&self) -> &Option<String>
pub fn type_language(&self) -> &Option<String>
Returns reference to the type language used within the scope of this Definitions.
sourcepub fn exporter(&self) -> &Option<String>
pub fn exporter(&self) -> &Option<String>
Returns reference to the name of the tool used to export the XML serialization.
sourcepub fn exporter_version(&self) -> &Option<String>
pub fn exporter_version(&self) -> &Option<String>
Returns reference to the version of the tool used to export the XML serialization.
sourcepub fn item_definitions(&self) -> &Vec<ItemDefinition> ⓘ
pub fn item_definitions(&self) -> &Vec<ItemDefinition> ⓘ
Returns reference to the container of instances of ItemDefinition contained in this Definitions.
sourcepub fn item_definitions_mut(&mut self) -> &mut Vec<ItemDefinition> ⓘ
pub fn item_definitions_mut(&mut self) -> &mut Vec<ItemDefinition> ⓘ
Returns mutable reference to the container of instances of ItemDefinition contained in this Definitions.
sourcepub fn item_definition_by_name(&self, name: &str) -> Option<&ItemDefinition>
pub fn item_definition_by_name(&self, name: &str) -> Option<&ItemDefinition>
Returns an optional reference to ItemDefinition with specified name or None when such ItemDefinition was not found in this Definitions.
sourcepub fn decision_by_id(&self, id: &str) -> Option<&Decision>
pub fn decision_by_id(&self, id: &str) -> Option<&Decision>
Returns an optional reference to Decision with specified identifier or None when such Decision was not found among instances of DrgElement.
sourcepub fn decision_by_name(&self, name: &str) -> Option<&Decision>
pub fn decision_by_name(&self, name: &str) -> Option<&Decision>
Returns an optional reference to Decision with specified name or None when such Decision was not found among instances of DrgElement.
sourcepub fn business_knowledge_models(&self) -> Vec<&BusinessKnowledgeModel> ⓘ
pub fn business_knowledge_models(&self) -> Vec<&BusinessKnowledgeModel> ⓘ
Returns a vector of references to business knowledge models.
sourcepub fn business_knowledge_model_by_id(
&self,
id: &str
) -> Option<&BusinessKnowledgeModel>
pub fn business_knowledge_model_by_id(
&self,
id: &str
) -> Option<&BusinessKnowledgeModel>
Returns an optional reference to BusinessKnowledgeModel with specified identifier or None when such BusinessKnowledgeModel was not found among instances of DrgElement.
sourcepub fn business_knowledge_model_by_name(
&self,
name: &str
) -> Option<&BusinessKnowledgeModel>
pub fn business_knowledge_model_by_name(
&self,
name: &str
) -> Option<&BusinessKnowledgeModel>
Returns an optional reference to BusinessKnowledgeModel with specified name or None when such BusinessKnowledgeModel was not found among instances of DrgElement.
sourcepub fn decision_services(&self) -> Vec<&DecisionService> ⓘ
pub fn decision_services(&self) -> Vec<&DecisionService> ⓘ
Returns a vector of references to decision services.
sourcepub fn decision_service_by_id(&self, id: &str) -> Option<&DecisionService>
pub fn decision_service_by_id(&self, id: &str) -> Option<&DecisionService>
Returns an optional reference to DecisionService with specified identifier or None when such DecisionService was not found among instances of DrgElement.
sourcepub fn decision_service_by_name(&self, name: &str) -> Option<&DecisionService>
pub fn decision_service_by_name(&self, name: &str) -> Option<&DecisionService>
Returns an optional reference to DecisionService with specified name or None when such DecisionService was not found among instances of DrgElement.
sourcepub fn input_data_by_id(&self, id: &str) -> Option<&InputData>
pub fn input_data_by_id(&self, id: &str) -> Option<&InputData>
Returns an optional reference to InputData with specified identifier or None when such InputData was not found among instances of DrgElement).
sourcepub fn input_data(&self) -> Vec<&InputData> ⓘ
pub fn input_data(&self) -> Vec<&InputData> ⓘ
sourcepub fn knowledge_source_by_id(&self, id: &str) -> Option<&KnowledgeSource>
pub fn knowledge_source_by_id(&self, id: &str) -> Option<&KnowledgeSource>
Returns an optional reference to KnowledgeSource with specified identifier or None when such KnowledgeSource was not found among instances of DrgElements).
sourcepub fn business_context_elements(&self) -> &Vec<BusinessContextElementInstance> ⓘ
pub fn business_context_elements(&self) -> &Vec<BusinessContextElementInstance> ⓘ
Returns reference to the container of instances of BusinessContextElement contained in this Definitions.
sourcepub fn imports(&self) -> &Vec<Import> ⓘ
pub fn imports(&self) -> &Vec<Import> ⓘ
Returns reference to the container of instances of Import contained in this Definitions.
sourcepub fn drg_elements_mut(&mut self) -> &mut Vec<Arc<DrgElement>> ⓘ
pub fn drg_elements_mut(&mut self) -> &mut Vec<Arc<DrgElement>> ⓘ
Returns reference to DrgElements container.
sourcepub fn drg_elements_by_id(&self) -> &HashMap<String, Arc<DrgElement>>
pub fn drg_elements_by_id(&self) -> &HashMap<String, Arc<DrgElement>>
Returns reference to DrgElements indexed by identifiers.
sourcepub fn requirements_by_id(&self) -> &HashMap<String, Requirement>
pub fn requirements_by_id(&self) -> &HashMap<String, Requirement>
Returns reference to Requirements indexed by identifiers.
Trait Implementations§
source§impl Clone for Definitions
impl Clone for Definitions
source§fn clone(&self) -> Definitions
fn clone(&self) -> Definitions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Definitions
impl Debug for Definitions
source§impl DmnElement for Definitions
impl DmnElement for Definitions
source§fn id(&self) -> &Option<String>
fn id(&self) -> &Option<String>
Returns reference to optional identifier for this Definitions.
source§fn description(&self) -> &Option<String>
fn description(&self) -> &Option<String>
Returns reference to optional description of this Definitions.
source§fn label(&self) -> &Option<String>
fn label(&self) -> &Option<String>
Returns reference to optional alternative short description of this Definitions.
source§fn extension_elements(&self) -> &Option<ExtensionElement>
fn extension_elements(&self) -> &Option<ExtensionElement>
Returns reference to attached additional elements to any Definitions.
source§fn extension_attributes(&self) -> &Vec<ExtensionAttribute> ⓘ
fn extension_attributes(&self) -> &Vec<ExtensionAttribute> ⓘ
Returns reference to attached named extended attributes and model associations to any Definitions.