Main Content

getXmlOptions

Get XML option for AUTOSAR architecture model

Since R2020a

Description

example

pValue = getXmlOptions(archModel,property) returns the current value pValue of XML option property in architecture model archModel. The archModel argument is a model handle returned by a previous call to autosar.arch.createModel or autosar.arch.loadModel. For more information about XML options, see Configure AUTOSAR XML Options for classic architecture modeling and Configure AUTOSAR Adaptive XML Options for adaptive architecture modeling.

Examples

collapse all

For a new AUTOSAR architecture model, get the initial value of the AUTOSAR XML data type package path.

archModel = autosar.arch.createModel('MyArchModel');
pValue = getXmlOptions(archModel,'DataTypePackage')
pValue =
    '/DataTypes'

Input Arguments

collapse all

AUTOSAR architecture model for which to return the current value of an XML option value. The argument is a model handle returned by a previous call to autosar.arch.createModel or autosar.arch.loadModel.

Example: archModel

XML option for which to return a value.

For more information about XML options, see Configure AUTOSAR XML Options for classic architecture modeling and Configure AUTOSAR Adaptive XML Options for adaptive architecture modeling..

Example: 'DataTypePackage'

Output Arguments

collapse all

Returns the value of the specified XML option of the specified AUTOSAR architecture model.

Version History

Introduced in R2020a