function Create [SWS_CORE_08032] Upstream: RS_AP_00137, RS_AP_00136
static ara::core::Result< InstanceSpecifier > Create ( ara::core::StringView qualifiedShortName) noexcept;
Create a new instance of this class ara::core::InstanceSpecifier, according to the syntax rules given by [SWS_CORE_10200] and [SWS_CORE_10203].
The static factory method ara::core::InstanceSpecifier::Create synchronously creates a new instance of ara::core::InstanceSpecifier based on the syntax rules from [SWS_CORE_10200] and [SWS_CORE_10203] according to [SWS_CORE_08032]. Passed as parameter is qualifiedShortName as ara::core::StringView, which represents the model-based path [SWS_CORE_08032].
Return value and error handling
The call returns a ara::core::Result<InstanceSpecifier> that contains the syntactically valid object in case of success [SWS_CORE_08032]. If creation fails, the result object contains an error code from CoreErrc, which is assigned to ara::core::CoreErrorDomain via [SWS_CORE_05290]:
CoreErrc::kInvalidMetaModelShortname: Occurs when path elements inqualifiedShortNameare missing or contain illegal characters [SWS_CORE_08032].CoreErrc::kInvalidMetaModelPath: Is returned ifqualifiedShortNamedoes not describe a valid path to a model element [SWS_CORE_08032].
Concurrency and Safety
The function is declared as noexcept and specified as exception-safe (exception safe) as well as thread-safe (thread-safe) [SWS_CORE_08032]. Callers can thus use it concurrently from multiple execution contexts without external synchronization. Since it returns a Result, it is likely intended for defensive validations of model paths at runtime without exception handling. Question Q-7cfe36e0657a0008 (open)
This text was created by an AI. It serves as orientation and does not replace studying the referenced AUTOSAR specifications.
| Header-Datei | #include "ara/core/instance_specifier.h" |
|---|---|
| Scope | class ara::core::InstanceSpecifier |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| qualifiedShortName | string representation of a valid |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Result<InstanceSpecifier > | a Result, containing either a syntactically valid ara::core:: InstanceSpecifier, or an ErrorCode |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| CoreErrc::kInvalidMetaModelShortname | rollback_semantics if any of the path elements of qualifiedShortName is missing or contains invalid characters |
| CoreErrc::kInvalidMetaModelPath | rollback_semantics if the qualifiedShortName is not a valid path to a model element |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_CORE_08032- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CORE_08032@rel:R25-11#0c0f55ea- Content hash
0c0f55ea- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_08032
Status: valid/unmigrated
Version: rel:R25-11#3ec7aee3
Versionshistorie & Revisions (1 transition, 8 revision)
- Current State
valid/unmigrated- Reason
- mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
- Campaign
2026-08-13-status-backfill- Active Version
AUTOSAR/AP/record/SWS_CORE_08032@rel:R25-11#3ec7aee3
Recorded Revisions (8):
- R25-11
rel:R25-11#0c0f55ea2026-09-30 - R19-11
rel:R19-11#b273f0182026-10-14 - R20-11
rel:R20-11#725941852026-10-14 - R21-11
rel:R21-11#55f872cf2026-10-14 - R22-11
rel:R22-11#f8a1eb752026-10-14 - R23-11
rel:R23-11#3cfe23cb2026-10-14 - R24-11
rel:R24-11#e790477f2026-10-14 - R25-11
rel:R25-11#3ec7aee32026-10-14 active
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-low· 2026-10-13 · German original