JsonExSerializer.Collections.CollectionHandler Class Reference

Inherited by JsonExSerializer.Collections.ArrayHandler, JsonExSerializer.Collections.CollectionConstructorHandler, JsonExSerializer.Collections.GenericCollectionHandler, JsonExSerializer.Collections.GenericStackHandler, JsonExSerializer.Collections.ListHandler, and JsonExSerializer.Collections.StackHandler.

List of all members.

Public Member Functions

abstract bool IsCollection (Type collectionType)
 Checks to see if the collection type is handled by this handler.
abstract ICollectionBuilder ConstructBuilder (Type collectionType, int itemCount)
 Constructs a collection builder for the given collection type. The type must be supported by this handler.
abstract ICollectionBuilder ConstructBuilder (object collection)
 Constructs a collection builder to update an existing collection. The type must be supported by this handler.
virtual Type GetItemType (Type CollectionType)
 Gets the type of items that this collection type holds. The default is System.Object.
virtual IEnumerable GetEnumerable (object collection)
 Gets the enumerable property of the collection. This is normally just the collection itself, but can be implemented to provide a custom enumerable.


Member Function Documentation

abstract bool JsonExSerializer.Collections.CollectionHandler.IsCollection ( Type  collectionType  )  [pure virtual]

Checks to see if the collection type is handled by this handler.

Parameters:
collectionType the type to check
Returns:
true if this handler can process the collection type

Implemented in JsonExSerializer.Collections.ArrayHandler, JsonExSerializer.Collections.CollectionConstructorHandler, JsonExSerializer.Collections.GenericCollectionHandler, JsonExSerializer.Collections.GenericStackHandler, JsonExSerializer.Collections.ListHandler, and JsonExSerializer.Collections.StackHandler.

abstract ICollectionBuilder JsonExSerializer.Collections.CollectionHandler.ConstructBuilder ( Type  collectionType,
int  itemCount 
) [pure virtual]

Constructs a collection builder for the given collection type. The type must be supported by this handler.

Parameters:
collectionType the type to construct a builder for
Returns:
a collection builder

Implemented in JsonExSerializer.Collections.ArrayHandler, JsonExSerializer.Collections.CollectionConstructorHandler, JsonExSerializer.Collections.GenericCollectionHandler, JsonExSerializer.Collections.GenericStackHandler, JsonExSerializer.Collections.ListHandler, and JsonExSerializer.Collections.StackHandler.

abstract ICollectionBuilder JsonExSerializer.Collections.CollectionHandler.ConstructBuilder ( object  collection  )  [pure virtual]

Constructs a collection builder to update an existing collection. The type must be supported by this handler.

Parameters:
collection an existing istance of the collection class to be populated
collectionType the type to construct a builder for
Returns:
a collection builder

Implemented in JsonExSerializer.Collections.ArrayHandler, JsonExSerializer.Collections.CollectionConstructorHandler, JsonExSerializer.Collections.GenericCollectionHandler, JsonExSerializer.Collections.GenericStackHandler, JsonExSerializer.Collections.ListHandler, and JsonExSerializer.Collections.StackHandler.

virtual Type JsonExSerializer.Collections.CollectionHandler.GetItemType ( Type  CollectionType  )  [virtual]

Gets the type of items that this collection type holds. The default is System.Object.

Parameters:
CollectionType the type of the collection
Returns:
the item type

Reimplemented in JsonExSerializer.Collections.ArrayHandler, JsonExSerializer.Collections.CollectionConstructorHandler, JsonExSerializer.Collections.GenericCollectionHandler, and JsonExSerializer.Collections.GenericStackHandler.

virtual IEnumerable JsonExSerializer.Collections.CollectionHandler.GetEnumerable ( object  collection  )  [virtual]

Gets the enumerable property of the collection. This is normally just the collection itself, but can be implemented to provide a custom enumerable.

Parameters:
collection the collection
Returns:
an IEnumerable object

Reimplemented in JsonExSerializer.Collections.GenericStackHandler, and JsonExSerializer.Collections.StackHandler.


Generated on Fri Feb 15 23:33:58 2008 for JsonExSerializer by  doxygen 1.5.2