The meta data that is associated with IMapper<K,V>s in a IMapperRegistry.
Inheritance Hierarchy
MapperMetadata
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.graph.MapperMetadata
See Also
Constructors
Initializes a new instance of the MapperMetadata from the given instance class.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- metadata - MapperMetadata
- The metadata to copy key and value type from.
Initializes a new instance of the MapperMetadata class.
Properties
The type of element the associated mapper accepts as keys for the mapping.
The type of element the associated mapper accepts as Values for the mapping.
Static Methods
create
<TKey,TValue>(keyType: Class, valueType: Class, mapper: IMapper<TKey,TValue>) : MapperMetadataCreates an instance for the specified mapper.
Type Parameters
- TKey
- The type of the keys.
- TValue
- The type of the values.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- keyType - Class
- The type of the keys.
- valueType - Class
- The type of the values.
- mapper - IMapper<TKey,TValue>
- The mapper instance to create the metadata for.