C# (CSharp) SimpleFramework.Xml.Util Namespace

Classes

Name Description
AnnotationCycleStrategyTest
AnnotationCycleStrategyTest.EntryListExample
AnnotationStrategy The AnnotationStrategy object is used to intercept the serialization process and delegate to custom converters. This strategy uses the Convert annotation to specify the converter to use for serialization and deserialization. If there is no annotation present on the field or method representing the object instance to be serialized then this acts as a transparent proxy to an internal strategy.

By default the TreeStrategy is used to perform the normal serialization process should there be no annotation specifying a converter to use. However, any implementation can be used, including the CycleStrategy, which handles cycles in the object graph. To specify the internal strategy to use it can be provided in the constructor.

CombinedStrategyTest.Item
CombinedStrategyTest.Item.CombinationExample
CombinedStrategyTest.Item.ExtendedItem
CombinedStrategyTest.Item.ExtendedItemConverter
CombinedStrategyTest.Item.RegistryItemConverter
ContactEntryTest
ContactEntryTest.EntryList
Convert
ConverterFactory The ConverterFactory is used to instantiate objects based on a provided type or annotation. This provides a single point of creation for all converters within the framework. For performance all the instantiated converters are cached against the class for that converter. This ensures the converters can be acquired without the overhead of instantiation.
ConverterFactoryTest
ConverterFactoryTest.A
ConverterScanner The ConverterScanner is used to create a converter given a method or field representation. Creation of the converter is done using the Convert annotation, which may be used to annotate a field, method or class. This describes the implementation to use for object serialization. To account for polymorphism the type scanned for annotations can be overridden from type provided in the Type object. This ensures that if a collection of objects are serialized the correct implementation will be used for each type or subtype.
DictionaryTest
DictionaryTest.Property
DictionaryTest.Property.PropertySet
LanguageConverter
LineStripper
Reference The Reference object represents a value that holds an object instance. If an object instance is to be provided from a Strategy implementation it must be wrapped in a value object. The value object can then provide the details of the instance and the actual object instance to the serializer.
Registry The Registry represents an object that is used to register bindings between a class and a converter implementation. Converter instances created by this registry are lazily created and cached so that they are instantiated only once. This ensures that the overhead of serialization is reduced.
RegistryBinder The RegistryBinder object is used acquire converters using a binding between a type and its converter. All converters instantiated are cached internally to ensure that the overhead of acquiring a converter is reduced. Converters are created on demand to ensure they are instantiated only if required.
RegistryCycleStrategyTest.PetBucket
RegistryStrategy The RegistryStrategy object is used to intercept the serialization process and delegate to custom converters. The custom converters are resolved from a Registry object, which is provided to the constructor. If there is no binding for a particular object then serialization is delegated to an internal strategy. All converters resolved by this are instantiated once and cached internally for performance.

By default the TreeStrategy is used to perform the normal serialization process should there be no class binding specifying a converter to use. However, any implementation can be used, including the CycleStrategy, which handles cycles in the object graph. To specify the internal strategy to use it can be provided in the constructor.

RegistryStrategyTest
RegistryStrategyTest.PetShop
Replace
ResolverTest
ResolverTest.ContentType
ScannerBuilderTest
ScannerBuilderTest.One
ScannerBuilderTest.One.Two
ScannerBuilderTest.One.Two.Three
ScannerBuilderTest.One.Two.Three.Four
WeakCacheTest