UA Bundle SDK .NET  2.1.0.222
 All Classes Namespaces Functions Variables Enumerations Properties Events Groups Pages
UnifiedAutomation.UaBase.ModelMapper Class Reference

Provides access to a UA information model using classes with special attributes defined. More...

Inherits UnifiedAutomation.UaBase.IModelMapper.

Static Public Member Functions

static DataValue GetValue (IMapperContext context, ModelMapping mapping)
 Gets the value associated with the mapping.
 
static List< DataValueGet (IMapperContext context, object instance, IList< ModelMapping > mappings)
 Get values from the specified instance.
 
static bool SetValue (IMapperContext context, ModelMapping mapping, DataValue value)
 Sets the value associated with the mapping.
 
static void Set (IMapperContext context, object instance, IList< ModelMapping > mappings, IList< DataValue > values)
 Updates the specified instance.
 
static ModelHandle GetModelHandle (StringTable namespaceUris, object instance)
 Gets the metadata handle.
 

Additional Inherited Members

- Public Member Functions inherited from UnifiedAutomation.UaBase.IModelMapper
ModelHandle GetModelHandle (StringTable namespaceUris, object instance)
 Gets the metadata handle.
 
DataValue GetValue (IMapperContext context, ModelMapping mapping)
 Gets the value associated with the mapping.
 
bool SetValue (IMapperContext context, ModelMapping mapping, DataValue value)
 Sets the value associated with the mapping.
 

Detailed Description

Provides access to a UA information model using classes with special attributes defined.

Member Function Documentation

static List<DataValue> UnifiedAutomation.UaBase.ModelMapper.Get ( IMapperContext  context,
object  instance,
IList< ModelMapping mappings 
)
static

Get values from the specified instance.

Parameters
contextThe request context.
instanceThe instance.
mappingsThe mappings.
Returns
static ModelHandle UnifiedAutomation.UaBase.ModelMapper.GetModelHandle ( StringTable  namespaceUris,
object  instance 
)
static

Gets the metadata handle.

Parameters
namespaceUris
instanceThe instance.
Returns
static DataValue UnifiedAutomation.UaBase.ModelMapper.GetValue ( IMapperContext  context,
ModelMapping  mapping 
)
static

Gets the value associated with the mapping.

Parameters
contextThe request context.
mappingThe mapping.
Returns
The value. BadNoData if it does not exist.
static void UnifiedAutomation.UaBase.ModelMapper.Set ( IMapperContext  context,
object  instance,
IList< ModelMapping mappings,
IList< DataValue values 
)
static

Updates the specified instance.

Parameters
contextThe request context.
instanceThe instance.
mappingsThe mappings.
valuesThe values to use when updating.
static bool UnifiedAutomation.UaBase.ModelMapper.SetValue ( IMapperContext  context,
ModelMapping  mapping,
DataValue  value 
)
static

Sets the value associated with the mapping.

Parameters
contextThe request context.
mappingThe mapping.
valueThe value.
Returns
True if the mapping was understood. False otherwise.

The documentation for this class was generated from the following file: