C# Class DefaultMatcher, simplexml

The DefaultMatcher is a delegation object that uses several matcher implementations to correctly resolve both the stock Transform implementations and implementations that have been overridden by the user with a custom matcher. This will perform the resolution of the transform using the specified matcher, if this results in no transform then this will look for a transform within the collection of implementations.
Inheritance: Matcher
Mostrar archivo Open project: ngallagher/simplexml Class Usage Examples

Public Methods

Method Description
DefaultMatcher ( Matcher matcher ) : System

Constructor for the DefaultMatcher object. This performs resolution of Transform implementations using the specified matcher. If that matcher fails to resolve a suitable transform then the stock implementations are used.

Match ( Class, type ) : Transform,

This is used to match a Transform for the given type. If a transform cannot be resolved this this will throw an exception to indicate that resolution of a transform failed. A transform is resolved by first searching for a transform within the user specified matcher then searching the stock transforms.

MatchType ( Class, type ) : Transform,

This is used to match a Transform for the given type. If a transform cannot be resolved this this will throw an exception to indicate that resolution of a transform failed. A transform is resolved by first searching for a transform within the user specified matcher then searching the stock transforms.

Method Details

DefaultMatcher() public method

Constructor for the DefaultMatcher object. This performs resolution of Transform implementations using the specified matcher. If that matcher fails to resolve a suitable transform then the stock implementations are used.
public DefaultMatcher ( Matcher matcher ) : System
matcher Matcher /// this is the user specified matcher object ///
return System

Match() public method

This is used to match a Transform for the given type. If a transform cannot be resolved this this will throw an exception to indicate that resolution of a transform failed. A transform is resolved by first searching for a transform within the user specified matcher then searching the stock transforms.
public Match ( Class, type ) : Transform,
type Class, /// this is the type to resolve a transform object for ///
return Transform,

MatchType() public method

This is used to match a Transform for the given type. If a transform cannot be resolved this this will throw an exception to indicate that resolution of a transform failed. A transform is resolved by first searching for a transform within the user specified matcher then searching the stock transforms.
public MatchType ( Class, type ) : Transform,
type Class, /// this is the type to resolve a transform object for ///
return Transform,