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

An interface that allows the caller to customize the object to UA mapping. More...

Inherited by UnifiedAutomation.UaBase.ModelMapper, and UnifiedAutomation.UaServer.ModelControllerBase.

Public Member Functions

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

An interface that allows the caller to customize the object to UA mapping.

Member Function Documentation

ModelHandle UnifiedAutomation.UaBase.IModelMapper.GetModelHandle ( StringTable  namespaceUris,
object  instance 
)

Gets the metadata handle.

Parameters
namespaceUrisThe namespace uris.
instanceThe instance.
Returns
DataValue UnifiedAutomation.UaBase.IModelMapper.GetValue ( IMapperContext  context,
ModelMapping  mapping 
)

Gets the value associated with the mapping.

Parameters
contextThe request context.
mappingThe mapping.
Returns
The value. null if he mapping was not understood.
bool UnifiedAutomation.UaBase.IModelMapper.SetValue ( IMapperContext  context,
ModelMapping  mapping,
DataValue  value 
)

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 interface was generated from the following file: