Package | Description |
---|---|
com.yworks.yfiles.graphml |
Definitions, default implementations, and support classes for GraphML I/O support.
|
Modifier and Type | Method and Description |
---|---|
IEventHandler<HandleDeserializationEventArgs> |
MapperInputHandler.getDeserializer()
Gets the deserializer.
|
Modifier and Type | Method and Description |
---|---|
void |
GraphMLParser.addHandleDeserializationListener(IEventHandler<HandleDeserializationEventArgs> handleDeserializationEvent)
Adds the given listener for the
HandleDeserialization event that occurs when XML content is about to be
deserialized. |
void |
GraphMLIOHandler.addHandleDeserializationListener(IEventHandler<HandleDeserializationEventArgs> handleDeserializationEvent)
Adds the given listener for the
HandleDeserialization event that occurs when XML content is about to be
deserialized. |
<TKey,TData> |
GraphMLIOHandler.addInputMapper(Class<TKey> keyType,
Class<TData> dataType,
Predicate<Element> keyDefinitionPredicate,
IMapper<TKey,TData> mapper,
IEventHandler<HandleDeserializationEventArgs> deserializationCallback)
Register a
IMapper instance for use as an input data target. |
<TKey,TData> |
GraphMLIOHandler.addInputMapperFuture(Class<TKey> keyType,
Class<TData> dataType,
Predicate<Element> keyDefinitionPredicate,
IEventHandler<HandleDeserializationEventArgs> deserializationCallback)
|
<TKey,TData> |
GraphMLIOHandler.addRegistryInputMapper(Class<TKey> keyType,
Class<TData> dataType,
Object tag,
Predicate<Element> keyDefinitionPredicate,
IEventHandler<HandleDeserializationEventArgs> deserializationCallback)
Create a
Future instance that wraps an IInputHandler that stores the data in an IMapper that
will be created in the graph's IMapperRegistry . |
static <TKey,TData> |
GraphMLIOHandler.createMapperInputHandler(Class<TKey> modelItemType,
Class<TData> dataType,
IMapper<TKey,TData> mapper,
IEventHandler<HandleDeserializationEventArgs> deserializationCallback)
Convenience factory method that can create an instance of several predefined
IInputHandler implementations that
match the provided TKey and TData . |
void |
GraphMLParser.removeHandleDeserializationListener(IEventHandler<HandleDeserializationEventArgs> handleDeserializationEvent)
Removes the given listener for the
HandleDeserialization event that occurs when XML content is about to be
deserialized. |
void |
GraphMLIOHandler.removeHandleDeserializationListener(IEventHandler<HandleDeserializationEventArgs> handleDeserializationEvent)
Removes the given listener for the
HandleDeserialization event that occurs when XML content is about to be
deserialized. |
void |
MapperInputHandler.setDeserializer(IEventHandler<HandleDeserializationEventArgs> value)
Sets the deserializer.
|
Constructor and Description |
---|
MapperInputHandler(Class<TKey> keyType,
Class<TData> valueType,
IEventHandler<HandleDeserializationEventArgs> deserializer)
Initializes a new instance of the
MapperInputHandler class that uses the event handler for deserialization and
suggests the provided target type for the deserializer. |
MapperInputHandler(Class<TKey> keyType,
Class<TData> valueType,
IEventHandler<HandleDeserializationEventArgs> deserializer,
Class deserializerTargetType)
Initializes a new instance of the
MapperInputHandler class that uses the event handler for deserialization and
suggests the provided target type for the deserializer. |