Skip to content

Commit 412d99d

Browse files
author
Conny Gustafsson
committed
Fix naming of classes
- ParameterInAtomicSwcTypeInstanceRef - PortApiOption
1 parent a7a7f45 commit 412d99d

File tree

5 files changed

+54
-54
lines changed

5 files changed

+54
-54
lines changed

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ ROperationInAtomicSwcInstanceRef | R-OPERATION-IN-ATOMIC-SWC-INSTANCE-REF
2727
* ModeAccessPointIdent | MODE-ACCESS-POINT-IDENT
2828
* ModeSwitchPoint | MODE-SWITCH-POINT
2929
* ParameterAccess | PARAMETER-ACCESS
30-
* ParameterInAtomicSWCTypeInstanceRef | PARAMETER-IN-ATOMIC-SWC-TYPE-INSTANCE-REF
31-
* PortAPIOption | PORT-API-OPTION
30+
* ParameterInAtomicSwcTypeInstanceRef | PARAMETER-IN-ATOMIC-SWC-TYPE-INSTANCE-REF
31+
* PortApiOption | PORT-API-OPTION
3232
* PortDefinedArgumentValue | PORT-DEFINED-ARGUMENT-VALUE
3333
* RunnableEntityArgument | RUNNABLE-ENTITY-ARGUMENT
3434
* SynchronousServerCallPoint | SYNCHRONOUS-SERVER-CALL-POINT

src/autosar/xml/element.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -6035,7 +6035,7 @@ def __init__(self,
60356035
self._assign_optional_strict("mode_group", mode_group, PModeGroupInAtomicSwcInstanceRef)
60366036

60376037

6038-
class ParameterInAtomicSWCTypeInstanceRef(ARObject):
6038+
class ParameterInAtomicSwcTypeInstanceRef(ARObject):
60396039
"""
60406040
Complex type AR:PARAMETER-IN-ATOMIC-SWC-TYPE-INSTANCE-REF
60416041
Tag variants: 'AUTOSAR-PARAMETER-IREF'
@@ -6071,15 +6071,15 @@ class AutosarParameterRef(ARObject):
60716071
"""
60726072

60736073
def __init__(self,
6074-
autosar_parameter: ParameterInAtomicSWCTypeInstanceRef | None = None,
6074+
autosar_parameter: ParameterInAtomicSwcTypeInstanceRef | None = None,
60756075
local_parameter: DataPrototypeRef | None = None) -> None:
60766076
super().__init__()
60776077
# .AUTOSAR-PARAMETER-IREF
6078-
self.autosar_parameter: ParameterInAtomicSWCTypeInstanceRef | None = None
6078+
self.autosar_parameter: ParameterInAtomicSwcTypeInstanceRef | None = None
60796079
# .LOCAL-PARAMETER-REF
60806080
self.local_parameter: DataPrototypeRef | None = None
60816081

6082-
self._assign_optional_strict("autosar_parameter", autosar_parameter, ParameterInAtomicSWCTypeInstanceRef)
6082+
self._assign_optional_strict("autosar_parameter", autosar_parameter, ParameterInAtomicSwcTypeInstanceRef)
60836083
self._assign_optional("local_parameter", local_parameter, DataPrototypeRef)
60846084

60856085

@@ -6648,7 +6648,7 @@ def __init__(self,
66486648
SwcSupportedFeatureArgType = SwcSupportedFeature | list[SwcSupportedFeature] | None
66496649

66506650

6651-
class PortAPIOption(ARObject):
6651+
class PortApiOption(ARObject):
66526652
"""
66536653
Complex type AR:PORT-API-OPTION
66546654
Tag variants: 'PORT-API-OPTION'

src/autosar/xml/reader.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -4916,7 +4916,7 @@ def _read_mode_switch_point(self, xml_element: ElementTree.Element) -> ar_elemen
49164916

49174917
def _read_parameter_in_atomic_swc_type_instance_ref(self,
49184918
xml_element: ElementTree.Element
4919-
) -> ar_element.ParameterInAtomicSWCTypeInstanceRef:
4919+
) -> ar_element.ParameterInAtomicSwcTypeInstanceRef:
49204920
"""
49214921
Reads complex type AR:PARAMETER-IN-ATOMIC-SWC-TYPE-INSTANCE-REF
49224922
Tag variants: 'AUTOSAR-PARAMETER-IREF'
@@ -4938,7 +4938,7 @@ def _read_parameter_in_atomic_swc_type_instance_ref(self,
49384938
xml_child = child_elements.get("MODE-GROUP-IREF")
49394939
child_elements.skip("VARIATION-POINT")
49404940
self._report_unprocessed_elements(child_elements)
4941-
return ar_element.ParameterInAtomicSWCTypeInstanceRef(**data)
4941+
return ar_element.ParameterInAtomicSwcTypeInstanceRef(**data)
49424942

49434943
def _read_autosar_parameter_ref(self, xml_element: ElementTree.Element) -> ar_element.AutosarParameterRef:
49444944
"""
@@ -5488,7 +5488,7 @@ def _read_communication_buffer_locking(self,
54885488

54895489
def _read_port_api_option(self,
54905490
xml_element: ElementTree.Element
5491-
) -> ar_element.PortAPIOption:
5491+
) -> ar_element.PortApiOption:
54925492
"""
54935493
Reads complex type AR:PORT-API-OPTION
54945494
Tag variants: 'PORT-API-OPTION'
@@ -5497,7 +5497,7 @@ def _read_port_api_option(self,
54975497
child_elements = ChildElementMap(xml_element)
54985498
self._read_port_api_option_group(child_elements, data)
54995499
self._report_unprocessed_elements(child_elements)
5500-
return ar_element.PortAPIOption(**data)
5500+
return ar_element.PortApiOption(**data)
55015501

55025502
def _read_port_api_option_group(self, child_elements: ChildElementMap, data: dict) -> None:
55035503
"""

src/autosar/xml/writer.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -376,15 +376,15 @@ def __init__(self,
376376
'TransformerHardErrorEvent': self._write_transformer_hard_error_event,
377377
'PortDefinedArgumentValue': self._write_port_defined_argument_value,
378378
'CommunicationBufferLocking': self._write_communication_buffer_locking,
379-
'PortAPIOption': self._write_port_api_option,
379+
'PortApiOption': self._write_port_api_option,
380380
'AsynchronousServerCallPoint': self._write_async_server_call_point,
381381
'SynchronousServerCallPoint': self._write_sync_server_call_point,
382382
'AsynchronousServerCallResultPoint': self._write_async_server_call_result_point,
383383
'ExternalTriggeringPoint': self._write_external_triggering_point,
384384
'InternalTriggeringPoint': self._write_internal_triggering_point,
385385
'ModeAccessPoint': self._write_mode_access_point,
386386
'ModeSwitchPoint': self._write_mode_switch_point,
387-
'ParameterInAtomicSWCTypeInstanceRef': self._write_parameter_in_atomic_swc_type_instance_ref,
387+
'ParameterInAtomicSwcTypeInstanceRef': self._write_parameter_in_atomic_swc_type_instance_ref,
388388
'AutosarParameterRef': self._write_autosar_parameter_ref,
389389
'ParameterAccess': self._write_parameter_access,
390390
'WaitPoint': self._write_wait_point,
@@ -4279,13 +4279,13 @@ def _write_mode_switch_point(self, elem: ar_element.ModeSwitchPoint) -> None:
42794279
self._leave_child()
42804280

42814281
def _write_parameter_in_atomic_swc_type_instance_ref(self,
4282-
elem: ar_element.ParameterInAtomicSWCTypeInstanceRef
4282+
elem: ar_element.ParameterInAtomicSwcTypeInstanceRef
42834283
) -> None:
42844284
"""
42854285
Writes complex type AR:PARAMETER-IN-ATOMIC-SWC-TYPE-INSTANCE-REF
42864286
Tag variants: 'AUTOSAR-PARAMETER-IREF'
42874287
"""
4288-
assert isinstance(elem, ar_element.ParameterInAtomicSWCTypeInstanceRef)
4288+
assert isinstance(elem, ar_element.ParameterInAtomicSwcTypeInstanceRef)
42894289
tag = "AUTOSAR-PARAMETER-IREF"
42904290
if elem.is_empty:
42914291
self._add_content(tag)
@@ -4736,12 +4736,12 @@ def _write_communication_buffer_locking(self, elem: ar_element.CommunicationBuff
47364736
self._add_content("SUPPORT-BUFFER-LOCKING", ar_enum.enum_to_xml(elem.support_buffer_locking))
47374737
self._leave_child()
47384738

4739-
def _write_port_api_option(self, elem: ar_element.PortAPIOption) -> None:
4739+
def _write_port_api_option(self, elem: ar_element.PortApiOption) -> None:
47404740
"""
47414741
Writes complex type AR:PORT-API-OPTION
47424742
Tag variants: 'PORT-API-OPTION'
47434743
"""
4744-
assert isinstance(elem, ar_element.PortAPIOption)
4744+
assert isinstance(elem, ar_element.PortApiOption)
47454745
tag = "PORT-API-OPTION"
47464746
if elem.is_empty:
47474747
self._add_content(tag)
@@ -4750,7 +4750,7 @@ def _write_port_api_option(self, elem: ar_element.PortAPIOption) -> None:
47504750
self._write_port_api_option_group(elem)
47514751
self._leave_child()
47524752

4753-
def _write_port_api_option_group(self, elem: ar_element.PortAPIOption) -> None:
4753+
def _write_port_api_option_group(self, elem: ar_element.PortApiOption) -> None:
47544754
"""
47554755
Writes group AR:PORT-API-OPTION
47564756
Tag variants: 'PORT-API-OPTION'

0 commit comments

Comments
 (0)