Trait dsntk_model::DmnElement
source · pub trait DmnElement {
// Required methods
fn namespace(&self) -> &str;
fn model_name(&self) -> &str;
fn id(&self) -> &String;
fn opt_id(&self) -> Option<&String>;
fn description(&self) -> &Option<String>;
fn label(&self) -> &Option<String>;
fn extension_elements(&self) -> &Vec<ExtensionElement>;
fn extension_attributes(&self) -> &Vec<ExtensionAttribute>;
}Expand description
DmnElement is the abstract superclass for the Decision Model elements.
It provides the optional attributes id, description and label,
which other elements will inherit.
Required Methods§
sourcefn model_name(&self) -> &str
fn model_name(&self) -> &str
Name of the model the element was defined in.
sourcefn id(&self) -> &String
fn id(&self) -> &String
Returns a reference to identifier for this DmnElement. This identifier SHALL be unique within its containing Definitions element.
sourcefn opt_id(&self) -> Option<&String>
fn opt_id(&self) -> Option<&String>
Returns a reference to optional identifier for this DmnElement.
sourcefn description(&self) -> &Option<String>
fn description(&self) -> &Option<String>
Returns reference to optional description of this DmnElement.
sourcefn label(&self) -> &Option<String>
fn label(&self) -> &Option<String>
Returns reference to optional alternative short description of this DmnElement.
sourcefn extension_elements(&self) -> &Vec<ExtensionElement>
fn extension_elements(&self) -> &Vec<ExtensionElement>
Returns reference to attached additional elements to any DmnElement.
sourcefn extension_attributes(&self) -> &Vec<ExtensionAttribute>
fn extension_attributes(&self) -> &Vec<ExtensionAttribute>
Returns reference to attached named extended attributes and model associations to any DmnElement.