documentationfor yFiles for HTML 3.0.0.3

Usages of IParseContext

Properties

parentContextin ChildParseContextGets the parent context.
contextin HandleDeserializationEventArgsGets the context in which the xmlNode shall be deserialized.
deserializerin MapperInputHandlerGets or sets the deserializer.
contextin ParseEventArgsGets the context that is being used for parsing.
contextin QueryInputHandlersEventArgsGets the IParseContext instance that can be queried for further information.
contextin QueryTypeEventArgsGets the context in which the Constructor shall be mapped.
contextin ResolveReferenceEventArgsGets the current parse context that can be used by the event handler for additional information.

Method Return Values

configureParseContext (IParseContext)in GraphMLIOHandlerAllows for configuration of the initial IParseContext that is used for reading a GraphML file.

Method Parameters

ChildParseContext (IParseContext, any)in ChildParseContextInitializes a new instance of the ChildParseContext class that delegates to the provided context and adds the currentObject to the objectStack.
ChildParseContext (IParseContext)in ChildParseContextInitializes a new instance of the ChildParseContext class that delegates to the provided context.
deserializeCore (Constructor<T>, IParseContext, Node)in ChildParseContext
addGraphInputData (Constructor<TValue>, string, function(IGraph, TValue):void, function(IParseContext, Node, Constructor):TValue?, string?)in GraphMLIOHandlerRegister graphData as an input data target for GraphML data that is present at the graph level.
addGraphInputData (Constructor<TValue>, function(Element):boolean, function(IGraph, TValue):void, function(IParseContext, Node, Constructor):TValue?)in GraphMLIOHandlerRegister graphData as an input data target for GraphML data that is present at the graph level.
addInputMapper (Constructor<TKey>, Constructor<TData>, function(Element):boolean, IMapper<TKey,TData>, function(IParseContext, Node, Constructor):TData)in GraphMLIOHandlerRegister an IMapper<K,V> instance for use as an input data target.
configureParseContext (IParseContext)in GraphMLIOHandlerAllows for configuration of the initial IParseContext that is used for reading a GraphML file.
createMapperInputHandler (Constructor<TKey>, Constructor<TData>, IMapper<TKey,TData>, function(IParseContext, Node, Constructor):TData)in GraphMLIOHandlerCreates an IInputHandler implementation that matches the provided TKey and TData.
parse (IGraph, Document, IParseContext)in GraphMLIOHandlerParses the XML document document into an graph instance.
GraphMLParseValueSerializerContext (IParseContext)in GraphMLParseValueSerializerContextCreates a new instance that wraps context
HandleDeserializationEventArgs (IParseContext, Node, Constructor)in HandleDeserializationEventArgsInitializes a new instance of the HandleDeserializationEventArgs class.
addPort (IParseContext, IPortOwner)in IGraphElementFactoryAdds a new port to the given IPortOwner.
create ()in IGraphElementFactory
createEdge (IParseContext, INode, IPort, INode, IPort)in IGraphElementFactoryCreates an edge for the given context and the provided source and target nodes or ports.
createNode (IParseContext)in IGraphElementFactoryCreates a node for the given context.
create ()in IGraphElementResolver
resolveEdge (IParseContext, string)in IGraphElementResolverResolve the GraphML id to an IEdge instance.
resolveGraph (IParseContext, string)in IGraphElementResolverResolve the GraphML id to an IGraph instance.
resolveNode (IParseContext, string)in IGraphElementResolverResolve the GraphML id to an INode instance.
resolvePort (IParseContext, string, string)in IGraphElementResolverResolve the GraphML id to an IPort instance.
applyDefault (IParseContext)in IInputHandlerThis method is invoked when no data tag is defined, and the default value should be applied.
create ()in IInputHandler
parseData (IParseContext, Node)in IInputHandlerThis method is invoked each time a data element with a matching key is processed.
deserializeCore (Constructor<T>, IParseContext, Node)in IParseContextDeserialize the object representation in targetNode
getClassForName (IParseContext, XmlName)in IXamlNameMapperReturns a Constructor that matches the given fqTagName of an XML element.
applyDefault (IParseContext)in InputHandlerBaseThis method is invoked when no data tag is defined, and the default value should be applied.
initializeFromKeyDefinition (IParseContext, Element)in InputHandlerBaseInitializes this instance from the GraphML key definition.
parseData (IParseContext, Node)in InputHandlerBaseThis method is invoked each time a data element with a matching key is processed.
parseDataCore (IParseContext, Node)in InputHandlerBaseAbstract method callback that actually parses the data.
setValue (IParseContext, TKey, TData)in InputHandlerBaseAbstract method callback that actually stores the value with the keys.
MapperInputHandler (Constructor<TKey>, Constructor<TData>, function(IParseContext, Node, Constructor):TData, Constructor?)in MapperInputHandlerInitializes a new instance of the MapperInputHandler<TKey,TData> class that uses the provided callback for deserialization and suggests the provided target type for the deserializer.
applyDefault (IParseContext)in MapperInputHandlerOverridden to take the overrideDefaultValue property into account.
getDeserializationXmlNode (IParseContext, Node)in MapperInputHandlerGets the node to pass to deserializer or IParseContext.Deserialize respectively, given the 'data' or 'default' element from the GraphML.
parseDataCore (IParseContext, Node)in MapperInputHandlerParses the data using either the deserializer or the deserializeCore call.
setValue (IParseContext, TKey, TData)in MapperInputHandlerThis method uses the mapper to associate the data with the key.
ParseEventArgs (IParseContext, Element)in ParseEventArgsInitializes a new instance of the ParseEventArgs class.
QueryInputHandlersEventArgs (IParseContext, Element, IList<IInputHandler>)in QueryInputHandlersEventArgsCreate a new instance.
QueryTypeEventArgs (IParseContext, XmlName)in QueryTypeEventArgsInitializes a new instance of the QueryTypeEventArgs class.
ResolveReferenceEventArgs (IParseContext, string)in ResolveReferenceEventArgsCreates a new instance of ResolveReferenceEventArgs.
deserialize (IParseContext, Element)in XamlReaderDeserializes the specified element node in the context to an instance.

Implementing Types

ChildParseContextAn implementation of IParseContext that delegates most calls to a parentContext, but adds the capability to locally add lookup results and deserialization properties