Package | Description |
---|---|
com.yworks.yfiles.graphml |
Definitions, default implementations, and support classes for GraphML I/O support.
|
Modifier and Type | Class and Description |
---|---|
class |
ChildParseContext
An implementation of
IParseContext that delegates most calls to a ParentContext , but
adds the capability to locally add ChildParseContext.lookup(Class) results and
deserialization properties . |
Modifier and Type | Method and Description |
---|---|
protected IParseContext |
GraphMLParser.createParseContext(IGraph graph)
Create the initial
IParseContext instance. |
IParseContext |
ResolveReferenceEventArgs.getContext()
The current parse context that can be used by the event handler for additional information.
|
IParseContext |
QueryInputHandlersEventArgs.getContext()
The
IParseContext instance that can queried for further information. |
IParseContext |
ParseEventArgs.getContext()
Gets the context that is being used for parsing.
|
IParseContext |
HandleDeserializationEventArgs.getContext()
Gets the context in which the
XmlNode shall be deserialized. |
IParseContext |
ChildParseContext.getParentContext()
Gets the parent context.
|
Modifier and Type | Method and Description |
---|---|
IPort |
IGraphElementFactory.addPort(IParseContext context,
IPortOwner owner)
Adds a new port to the given
IPortOwner . |
void |
MapperInputHandler.applyDefault(IParseContext context)
Overridden to take the
DefaultValueOverridingEnabled property into account. |
void |
IInputHandler.applyDefault(IParseContext context)
This method is invoked when no data tag is defined, and the default value should be applied.
|
void |
AbstractInputHandler.applyDefault(IParseContext context)
This method is invoked when no data tag is defined, and the default value should be applied.
|
IEdge |
IGraphElementFactory.createEdge(IParseContext context,
INode sourceNode,
IPort sourcePort,
INode targetNode,
IPort targetPort)
Creates an edge for the given context and the provided source and target nodes or ports.
|
protected <TKey,TData> |
GraphMLIOHandler.createMapper(Class<TKey> keyType,
Class<TData> dataType,
IParseContext context,
Object registryTag)
Callback used by
GraphMLIOHandler.addRegistryInputMapper(Class, Class, String) and its overloads to creates the mapper
instance. |
INode |
IGraphElementFactory.createNode(IParseContext context)
Creates a node for the given context.
|
<T> T |
IParseContext.deserialize(Class<T> targetType,
IParseContext context,
Node targetNode)
Deserialize the object representation in .
|
<T> T |
GraphMLParser.deserialize(Class<T> targetType,
IParseContext context,
Node element)
Deserialize the content of
element . |
<T> T |
ChildParseContext.deserialize(Class<T> targetType,
IParseContext context,
Node targetNode) |
Object |
XamlReader.deserialize(IParseContext context,
Element element)
Deserializes the specified element node in the context to an instance.
|
protected Node |
MapperInputHandler.getDeserializationXmlNode(IParseContext context,
Node node)
Gets the node to pass to
Deserializer or IParseContext.Deserialize
respectively, given the 'data' or 'default' element from the GraphML. |
List<IInputHandler> |
GraphMLParser.getInputHandlers(IParseContext context,
Element keyDefinition)
Dynamically retrieve all
IInputHandler instances that process a GraphML attribute with key definition
keyDefinition . |
Class |
IXamlNameMapper.getType(IParseContext context,
XmlName fqTagName)
Returns a
Class that matches the given fqTagName of an XML element. |
void |
AbstractInputHandler.initializeFromKeyDefinition(IParseContext context,
Element definition)
Initializes this instance from the GraphML key definition.
|
void |
IInputHandler.parseData(IParseContext context,
Node node)
This method is invoked each time a data element with matching key is processed.
|
void |
AbstractInputHandler.parseData(IParseContext context,
Node node)
This method is invoked each time a data element with matching key is processed.
|
protected TData |
MapperInputHandler.parseDataCore(IParseContext context,
Node node)
Parses the data using either the
Deserializer or the deserialize(Class, IParseContext, Node)
call. |
protected abstract TData |
AbstractInputHandler.parseDataCore(IParseContext context,
Node node)
Abstract method callback that actually parses the data.
|
IEdge |
IGraphElementResolver.resolveEdge(IParseContext context,
String id)
Resolve the GraphML
id to an IEdge instance. |
IEdge |
GraphElementIdAcceptor.resolveEdge(IParseContext context,
String id) |
IGraph |
IGraphElementResolver.resolveGraph(IParseContext context,
String id)
Resolve the GraphML
id to an IGraph instance. |
IGraph |
GraphElementIdAcceptor.resolveGraph(IParseContext context,
String id) |
INode |
IGraphElementResolver.resolveNode(IParseContext context,
String id)
Resolve the GraphML
id to an INode instance. |
INode |
GraphElementIdAcceptor.resolveNode(IParseContext context,
String id) |
IPort |
IGraphElementResolver.resolvePort(IParseContext context,
String ownerId,
String id)
Resolve the GraphML
id to an IPort instance. |
IPort |
GraphElementIdAcceptor.resolvePort(IParseContext context,
String ownerId,
String id) |
protected void |
MapperInputHandler.setValue(IParseContext context,
TKey key,
TData data)
This method uses the
Mapper to associate the data with the key. |
protected abstract void |
AbstractInputHandler.setValue(IParseContext context,
TKey key,
TData data)
Abstract method callback that actually stores the value with the keys.
|
void |
IGraphElementIdAcceptor.storeId(IParseContext context,
IEdge edge,
String id)
Store the value of the id attribute for the given edge.
|
void |
GraphElementIdAcceptor.storeId(IParseContext context,
IEdge edge,
String id) |
void |
IGraphElementIdAcceptor.storeId(IParseContext context,
IGraph graph,
String id)
Store the value of the id attribute for the given graph.
|
void |
GraphElementIdAcceptor.storeId(IParseContext context,
IGraph graph,
String id) |
void |
IGraphElementIdAcceptor.storeId(IParseContext context,
INode node,
String id)
Store the value of the id attribute for the given node.
|
void |
GraphElementIdAcceptor.storeId(IParseContext context,
INode node,
String id) |
void |
IGraphElementIdAcceptor.storeId(IParseContext context,
IPort port,
String id)
Store the value of the id attribute for the given port.
|
void |
GraphElementIdAcceptor.storeId(IParseContext context,
IPort port,
String id) |
Constructor and Description |
---|
ChildParseContext(IParseContext parentContext)
Initializes a new instance of the
ChildParseContext class that delegates to the provided context. |
ChildParseContext(IParseContext parentContext,
Object currentObject)
Initializes a new instance of the
ChildParseContext class that delegates to the provided context and adds the currentObject
to the ObjectStack . |
GraphMLParseValueSerializerContext(IParseContext context)
Creates a new instance that wraps .
|
HandleDeserializationEventArgs(IParseContext context,
Node xmlNode,
Class targetType)
Initializes a new instance of the
HandleDeserializationEventArgs class. |
ParseEventArgs(IParseContext context,
Element element)
Initializes a new instance of the
ParseEventArgs class. |
QueryInputHandlersEventArgs(IParseContext context,
Element keyDefinition,
List<IInputHandler> handlers)
Create a new instance.
|
ResolveReferenceEventArgs(IParseContext context,
String referenceId)
Creates a new instance of
ResolveReferenceEventArgs . |