C# Class Simpl.Serialization.SimplTypesScope

Show file Open project: ecologylab/simplCSharp Class Usage Examples

Public Properties

Property Type Description
graphSwitch GRAPH_SWITCH

Public Methods

Method Description
AddTranslation ( ClassDescriptor entry ) : void
AddTranslation ( Type thatClass ) : void

AddTranslations ( SimplTypesScope inheritedSimplTypesScope ) : void

Deserialize ( Stream inputStream, System.Text.Format format ) : Object

Deserialize ( String inputString, StringFormat format ) : Object

Deserialize ( String inputString, TranslationContext translationContext, IDeserializationHookStrategy deserializationHookStrategy, StringFormat format ) : Object

Deserialize ( object file, System.Text.Format format, Encoding encoding = null ) : Task

Deserialize ( object file, TranslationContext translationContext, IDeserializationHookStrategy deserializationHookStrategy, System.Text.Format format, Encoding encoding = null ) : Task

Deserialize ( Stream inputStream, TranslationContext translationContext, IDeserializationHookStrategy deserializationHookStrategy, System.Text.Format format ) : object

DeserializeFile ( string filename, System.Text.Format format, Encoding encoding = null ) : Task

DeserializeUri ( ParsedUri uri, System.Text.Format format = Format.Xml, TranslationContext context = null, IDeserializationHookStrategy deserializationHookStrategy = null ) : Task
DisableGraphSerialization ( ) : void

EnableGraphSerialization ( ) : void

Get ( string name ) : SimplTypesScope

Get ( string name, SimplTypesScope inheritedScope ) : SimplTypesScope
GetAssignableSubset ( string newName, Type superClassCriterion ) : SimplTypesScope
GetClassByTag ( String tag ) : Type

Gets the Type of the tag

GetClassDescriptorByClassName ( string className ) : ClassDescriptor
GetClassDescriptorBySimpleName ( string classSimpleName ) : ClassDescriptor
GetClassDescriptorByTag ( string tagName ) : ClassDescriptor

GetClassDescriptorByTlvId ( int blockType ) : ClassDescriptor

GetClassDescriptors ( ) : List

GetSubtractedSubset ( string newName, Type superClassCriterion ) : SimplTypesScope
Serialize ( object obj, StringFormat format ) : String

Serialize ( object obj, TranslationContext translationContext, StringFormat format ) : String
Serialize ( object obj, object file, TranslationContext translationContext, System.Text.Format format ) : System.Threading.Tasks.Task

Serialize ( object obj, Stream stream, System.Text.Format format ) : void

Serialize ( object obj, Stream stream, TranslationContext translationContext, System.Text.Format format ) : void

Serialize ( object obj, StringBuilder stringBuilder, StringFormat format ) : void

Serialize ( object obj, StringBuilder stringBuilder, TranslationContext translationContext, StringFormat format ) : void

Serialize ( object obj, TextWriter textWriter, StringFormat format ) : void

Serialize ( object obj, TextWriter textWriter, TranslationContext translationContext, StringFormat format ) : void

Serialize ( object obj, object file, System.Text.Format format ) : void

SimplTypesScope ( ) : System

SimplTypesScope ( String name ) : System

SimplTypesScope ( String name, List baseTranslationsSet ) : System

SimplTypesScope ( String name, List inheritedTranslationsSet, Type translations ) : System

SimplTypesScope ( String name, SimplTypesScope inheritedSimplTypesScope ) : System

SimplTypesScope ( String name, SimplTypesScope _inheritedSimplTypesScopes, Type translations ) : System

Private Methods

Method Description
AddTranslationScope ( string name ) : void
AddTranslations ( Type classes ) : void

Lookup ( String name ) : SimplTypesScope

UpdateMapWithEntry ( Scope newMap, string key, ClassDescriptor translationEntry, string warn ) : void

UpdateMapWithValues ( Scope inheritedMap, Scope newMap, string warn ) : void

Method Details

AddTranslation() public method

public AddTranslation ( ClassDescriptor entry ) : void
entry ClassDescriptor
return void

AddTranslation() public method

public AddTranslation ( Type thatClass ) : void
thatClass System.Type
return void

AddTranslations() public method

public AddTranslations ( SimplTypesScope inheritedSimplTypesScope ) : void
inheritedSimplTypesScope SimplTypesScope
return void

Deserialize() public method

public Deserialize ( Stream inputStream, System.Text.Format format ) : Object
inputStream Stream
format System.Text.Format
return Object

Deserialize() public method

public Deserialize ( String inputString, StringFormat format ) : Object
inputString String
format StringFormat
return Object

Deserialize() public method

public Deserialize ( String inputString, TranslationContext translationContext, IDeserializationHookStrategy deserializationHookStrategy, StringFormat format ) : Object
inputString String
translationContext Simpl.Serialization.Context.TranslationContext
deserializationHookStrategy IDeserializationHookStrategy
format StringFormat
return Object

Deserialize() public method

public Deserialize ( object file, System.Text.Format format, Encoding encoding = null ) : Task
file object
format System.Text.Format
encoding System.Text.Encoding
return Task

Deserialize() public method

public Deserialize ( object file, TranslationContext translationContext, IDeserializationHookStrategy deserializationHookStrategy, System.Text.Format format, Encoding encoding = null ) : Task
file object
translationContext Simpl.Serialization.Context.TranslationContext
deserializationHookStrategy IDeserializationHookStrategy
format System.Text.Format
encoding System.Text.Encoding
return Task

Deserialize() public method

public Deserialize ( Stream inputStream, TranslationContext translationContext, IDeserializationHookStrategy deserializationHookStrategy, System.Text.Format format ) : object
inputStream Stream
translationContext Simpl.Serialization.Context.TranslationContext
deserializationHookStrategy IDeserializationHookStrategy
format System.Text.Format
return object

DeserializeFile() public method

public DeserializeFile ( string filename, System.Text.Format format, Encoding encoding = null ) : Task
filename string
format System.Text.Format
encoding System.Text.Encoding
return Task

DeserializeUri() public method

public DeserializeUri ( ParsedUri uri, System.Text.Format format = Format.Xml, TranslationContext context = null, IDeserializationHookStrategy deserializationHookStrategy = null ) : Task
uri Simpl.Fundamental.Net.ParsedUri
format System.Text.Format
context Simpl.Serialization.Context.TranslationContext
deserializationHookStrategy IDeserializationHookStrategy
return Task

DisableGraphSerialization() public static method

public static DisableGraphSerialization ( ) : void
return void

EnableGraphSerialization() public static method

public static EnableGraphSerialization ( ) : void
return void

Get() public static method

public static Get ( string name ) : SimplTypesScope
name string
return SimplTypesScope

Get() public static method

public static Get ( string name, SimplTypesScope inheritedScope ) : SimplTypesScope
name string
inheritedScope SimplTypesScope
return SimplTypesScope

GetAssignableSubset() public method

public GetAssignableSubset ( string newName, Type superClassCriterion ) : SimplTypesScope
newName string
superClassCriterion System.Type
return SimplTypesScope

GetClassByTag() public method

Gets the Type of the tag
public GetClassByTag ( String tag ) : Type
tag String
return System.Type

GetClassDescriptorByClassName() public method

public GetClassDescriptorByClassName ( string className ) : ClassDescriptor
className string
return ClassDescriptor

GetClassDescriptorBySimpleName() public method

public GetClassDescriptorBySimpleName ( string classSimpleName ) : ClassDescriptor
classSimpleName string
return ClassDescriptor

GetClassDescriptorByTag() public method

public GetClassDescriptorByTag ( string tagName ) : ClassDescriptor
tagName string
return ClassDescriptor

GetClassDescriptorByTlvId() public method

public GetClassDescriptorByTlvId ( int blockType ) : ClassDescriptor
blockType int
return ClassDescriptor

GetClassDescriptors() public method

public GetClassDescriptors ( ) : List
return List

GetSubtractedSubset() public method

public GetSubtractedSubset ( string newName, Type superClassCriterion ) : SimplTypesScope
newName string
superClassCriterion System.Type
return SimplTypesScope

Serialize() public static method

public static Serialize ( object obj, StringFormat format ) : String
obj object
format StringFormat
return String

Serialize() public static method

public static Serialize ( object obj, TranslationContext translationContext, StringFormat format ) : String
obj object
translationContext Simpl.Serialization.Context.TranslationContext
format StringFormat
return String

Serialize() public static method

public static Serialize ( object obj, object file, TranslationContext translationContext, System.Text.Format format ) : System.Threading.Tasks.Task
obj object
file object
translationContext Simpl.Serialization.Context.TranslationContext
format System.Text.Format
return System.Threading.Tasks.Task

Serialize() public static method

public static Serialize ( object obj, Stream stream, System.Text.Format format ) : void
obj object
stream Stream
format System.Text.Format
return void

Serialize() public static method

public static Serialize ( object obj, Stream stream, TranslationContext translationContext, System.Text.Format format ) : void
obj object
stream Stream
translationContext Simpl.Serialization.Context.TranslationContext
format System.Text.Format
return void

Serialize() public static method

public static Serialize ( object obj, StringBuilder stringBuilder, StringFormat format ) : void
obj object
stringBuilder StringBuilder
format StringFormat
return void

Serialize() public static method

public static Serialize ( object obj, StringBuilder stringBuilder, TranslationContext translationContext, StringFormat format ) : void
obj object
stringBuilder StringBuilder
translationContext Simpl.Serialization.Context.TranslationContext
format StringFormat
return void

Serialize() public static method

public static Serialize ( object obj, TextWriter textWriter, StringFormat format ) : void
obj object
textWriter System.IO.TextWriter
format StringFormat
return void

Serialize() public static method

public static Serialize ( object obj, TextWriter textWriter, TranslationContext translationContext, StringFormat format ) : void
obj object
textWriter System.IO.TextWriter
translationContext Simpl.Serialization.Context.TranslationContext
format StringFormat
return void

Serialize() public static method

public static Serialize ( object obj, object file, System.Text.Format format ) : void
obj object
file object
format System.Text.Format
return void

SimplTypesScope() public method

public SimplTypesScope ( ) : System
return System

SimplTypesScope() public method

public SimplTypesScope ( String name ) : System
name String
return System

SimplTypesScope() public method

public SimplTypesScope ( String name, List baseTranslationsSet ) : System
name String
baseTranslationsSet List
return System

SimplTypesScope() public method

public SimplTypesScope ( String name, List inheritedTranslationsSet, Type translations ) : System
name String
inheritedTranslationsSet List
translations System.Type
return System

SimplTypesScope() public method

public SimplTypesScope ( String name, SimplTypesScope inheritedSimplTypesScope ) : System
name String
inheritedSimplTypesScope SimplTypesScope
return System

SimplTypesScope() public method

public SimplTypesScope ( String name, SimplTypesScope _inheritedSimplTypesScopes, Type translations ) : System
name String
_inheritedSimplTypesScopes SimplTypesScope
translations System.Type
return System

Property Details

graphSwitch public static property

Initialising graph switch to be off by default
public static GRAPH_SWITCH graphSwitch
return GRAPH_SWITCH