File tree Expand file tree Collapse file tree
ted_sws/notice_validator/adapters Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010from ted_sws .core .model .notice import Notice
1111from ted_sws .core .model .transform import MappingXPATH , MappingSuite
1212from ted_sws .core .model .validation_report import ReportNotice
13- from ted_sws .data_sampler .services .notice_xml_indexer import index_notice
1413from ted_sws .mapping_suite_processor .adapters .mapping_suite_reader import MappingSuiteReader
1514from ted_sws .notice_transformer .services .notice_transformer import transform_report_notices
1615from ted_sws .notice_validator .resources .templates import TEMPLATE_METADATA_KEY
@@ -34,12 +33,6 @@ def __init__(self, mapping_suite: MappingSuite):
3433 self .mapping_suite_id = mapping_suite .get_mongodb_id ()
3534 self .init_xpath_data (mapping_suite = mapping_suite )
3635
37- @classmethod
38- def notice_xpaths (cls , notice : Notice ) -> List [str ]:
39- if not notice .xml_metadata or not notice .xml_metadata .unique_xpaths :
40- notice = index_notice (notice )
41- return notice .xml_metadata .unique_xpaths
42-
4336 def init_xpath_data (self , mapping_suite : MappingSuite ):
4437 for cm_xpath in MappingSuiteReader .read_mapping_suite_xpaths (mapping_suite ):
4538 self .conceptual_xpaths .add (cm_xpath .xpath )
You can’t perform that action at this time.
0 commit comments