documentationfor yFiles for HTML 3.0.0.3

Usages of IWriteContext

Properties

parentContextin ChildWriteContextGets the parent context to which most calls are delegated.
contextin HandleSerializationEventArgsGets the context to be used for writing.
serializerin MapperOutputHandlerGets or sets the serialization callback to use for serializing the value in writeValueCore.
contextin QueryNameEventArgsGets the context in which the type shall be mapped.
contextin QueryOutputHandlersEventArgsGets the context for which the handlers are queried.
contextin QueryReferenceIdEventArgsGets the current write context that can be used by the event handler for additional information.
contextin WriteEventArgsGets the context that is being used for writing.

Method Return Values

configureWriteContext (IWriteContext)in GraphMLIOHandlerAllows for configuration of the initial IWriteContext that is used for writing a GraphML file.

Method Parameters

ChildWriteContext (IWriteContext, any)in ChildWriteContextInitializes a new instance of the ChildWriteContext class that delegates to the provided context and returns the given value in getCurrent.
ChildWriteContext (IWriteContext)in ChildWriteContextInitializes a new instance of the ChildWriteContext class that delegates to the given parent context.
serializeCore (Constructor<T>, IWriteContext, T)in ChildWriteContext
addGraphOutputData (Constructor<TValue>, string, TValue, function(IWriteContext, TValue, Constructor):void?, KeyType?, string?)in GraphMLIOHandlerRegister graphData as an output data source for data that is written at the graph level.
addGraphOutputData (Constructor<TValue>, string, function(IGraph):TValue, function(IWriteContext, TValue, Constructor):void?, KeyType?, string?)in GraphMLIOHandlerRegister graphData as an output data source for data that is written at the graph level.
addOutputMapper (Constructor<TModelItem>, Constructor<TValue>, string, string, IMapper<TModelItem,TValue>, function(IWriteContext, TValue, Constructor):void, KeyType)in GraphMLIOHandlerRegister an IMapper<K,V> instance for use as an output data source.
configureWriteContext (IWriteContext)in GraphMLIOHandlerAllows for configuration of the initial IWriteContext that is used for writing a GraphML file.
createMapperOutputHandler (Constructor<TKey>, Constructor<TData>, string, IMapper<TKey,TData>, function(IWriteContext, TData, Constructor):void)in GraphMLIOHandlerCreates an IOutputHandler implementation that matches the provided TKey and TData.
GraphMLWriteValueSerializerContext (IWriteContext)in GraphMLWriteValueSerializerContextCreates a new instance that wraps context
HandleSerializationEventArgs (IWriteContext, any, Constructor?)in HandleSerializationEventArgsInitializes a new instance of the HandleSerializationEventArgs class using the provided context to write the item using the given type for serialization.
canConvert (IWriteContext, any)in IMarkupExtensionConverterReturns if the converter can convert the value to a MarkupExtension in the current write context.
convert (IWriteContext, any)in IMarkupExtensionConverterConverts the value to a MarkupExtension using the current write context.
isDefaultValue (IWriteContext)in IOutputHandlerDetermines whether in the current context, the value is the default value and therefore no data element needs to be written.
writeKeyDefinitionContent (IWriteContext)in IOutputHandlerWrites the contents of the key definition.
writeValue (IWriteContext)in IOutputHandlerActually writes the value for the current context.
serializeCore (Constructor<T>, IWriteContext, T)in IWriteContextSerialize item to an XML representation.
getNameForClass (IWriteContext, Constructor)in IXamlNameMapperReturns the XML tag name that belongs to type type.
getValue (IWriteContext, TKey)in MapperOutputHandlerObtains the data for the given key.
writeValueCore (IWriteContext, TData)in MapperOutputHandlerPerforms the actual writing of the data using either the serializer or the serializeCore method.
getValue (IWriteContext, TKey)in OutputHandlerBaseObtains the data for the given key.
isDefaultValue (IWriteContext)in OutputHandlerBaseDetermines whether in the current context, the value is the default value and therefore no data element needs to be written.
writeKeyDefinitionContent (IWriteContext)in OutputHandlerBaseWrites the contents of the key definition.
writeValue (IWriteContext)in OutputHandlerBaseActually writes the value for the current context.
writeValueCore (IWriteContext, TData)in OutputHandlerBasePerforms the actual writing of the data.
QueryNameEventArgs (IWriteContext, Constructor)in QueryNameEventArgsInitializes a new instance of the QueryNameEventArgs class.
QueryOutputHandlersEventArgs (IWriteContext, KeyScope)in QueryOutputHandlersEventArgsInitializes a new instance of the QueryOutputHandlersEventArgs class.
QueryReferenceIdEventArgs (IWriteContext, any)in QueryReferenceIdEventArgsCreates a new instance.
WriteEventArgs (IWriteContext, any)in WriteEventArgsInitializes a new instance of the WriteEventArgs class.
serialize (IWriteContext, any)in XamlSerializerSerialize the given object to a IXmlWriter

Implementing Types

ChildWriteContextAn IWriteContext implementation that wraps a given instance and delegates most of the calls to it but allows for modifying lookup and serialization properties.