Support interface used by ValueSerializer.
Inheritance Hierarchy
IValueSerializerContext
Implemented Interfaces
Type Details
- yFiles module
- view
Methods
Gets the value serializer for a specific type.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- type - Constructor
- The type to obtain a serializer for.
Returns
- ↪ValueSerializer?
- A serializer or
null
.
Gets the value serializer for a specific Property.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- property - Property
- The descriptor of the property.
Returns
- ↪ValueSerializer?
- A serializer or
null
.
Returns an instance that implements the given type or null
.
Remarks
Typically, this method will be called to obtain a different view or aspect of the current instance. This is quite similar to casting or using a super type or interface of this instance, but is not limited to inheritance or compile-time constraints. An instance implementing this method is not required to return non-
null
implementations for the types, nor does it have to return the same instance any time. Also, it depends on the type and context whether the instance returned stays up to date or needs to be re-obtained for further use.Type Parameters
- T
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- type - Constructor<T>
- the type for which an instance shall be returned
Returns
- ↪T?
- an instance that is assignable to the type or
null