use crate::element::IElementTagStructureHandler;
use crate::engine::{AttributeDefinition, AttributeNameValue};
use crate::model::AttributeValueQuotes;
use crate::util::Utf16String;
pub struct StandardProcessorUtils;
impl StandardProcessorUtils {
pub fn replace_attribute(
structure_handler: &mut dyn IElementTagStructureHandler,
old_attribute_name: AttributeNameValue,
_attribute_definition: &AttributeDefinition,
attribute_name: Utf16String,
attribute_value: Option<Utf16String>,
) {
structure_handler.replace_attribute(
old_attribute_name,
attribute_name,
attribute_value,
None::<AttributeValueQuotes>,
);
}
pub fn set_attribute(
structure_handler: &mut dyn IElementTagStructureHandler,
_attribute_definition: &AttributeDefinition,
attribute_name: Utf16String,
attribute_value: Option<Utf16String>,
) {
structure_handler.set_attribute(
attribute_name,
attribute_value,
None::<AttributeValueQuotes>,
);
}
}