C# Class PrimitiveMatcher, simplexml

The PrimitiveMatcher object is used to resolve the primitive types to a stock transform. This will basically use a transform that is used with the primitives language object. This will always return a suitable transform for a primitive.
Inheritance: Matcher
ファイルを表示 Open project: ngallagher/simplexml

Public Methods

Method Description
Match ( Class, type ) : Transform,

This method is used to match the specified type to primitive transform implementations. If this is given a primitive then it will always return a suitable Transform. If however it is given an object type an exception is thrown.

PrimitiveMatcher ( ) : System

Constructor for the PrimitiveMatcher object. The primitive matcher is used to resolve a transform instance to convert primitive types to an from strings. If a match is not found with this matcher then an exception is thrown.

Method Details

Match() public method

This method is used to match the specified type to primitive transform implementations. If this is given a primitive then it will always return a suitable Transform. If however it is given an object type an exception is thrown.
public Match ( Class, type ) : Transform,
type Class, /// this is the primitive type to be transformed ///
return Transform,

PrimitiveMatcher() public method

Constructor for the PrimitiveMatcher object. The primitive matcher is used to resolve a transform instance to convert primitive types to an from strings. If a match is not found with this matcher then an exception is thrown.
public PrimitiveMatcher ( ) : System
return System