C# Class PackageMatcher, simplexml

The PackageMatcher object is used to match the stock transforms to Java packages. This is used to match useful types from the java.lang and java.util packages as well as other Java packages. This matcher groups types by their package names and attempts to search the stock transforms for a suitable match. If no match can be found this throws an exception.
Inheritance: Matcher
Exibir arquivo Open project: ngallagher/simplexml

Public Methods

Method Description
Match ( Class, type ) : Transform,

This method attempts to perform a resolution of the transform based on its package prefix. This allows this matcher to create a logical group of transforms within a single method based on the types package prefix. If no transform can be found then this will throw an exception.

MatchEnum ( Class, type ) : Transform,

This is used to resolve Transform implementations that are Enum implementations. If the type is not an enumeration then this will return null.

MatchFile ( Class, type ) : Transform,

This is used to resolve Transform implementations that relate to the java.io package. If the type does not resolve to a valid transform then this method will throw an exception to indicate that no stock transform exists for the specified type.

MatchLanguage ( Class, type ) : Transform,

This is used to resolve Transform implementations that relate to the java.lang package. If the type does not resolve to a valid transform then this method will throw an exception to indicate that no stock transform exists for the specified type.

MatchMath ( Class, type ) : Transform,

This is used to resolve Transform implementations that relate to the java.math package. If the type does not resolve to a valid transform then this method will throw an exception to indicate that no stock transform exists for the specified type.

MatchSQL ( Class, type ) : Transform,

This is used to resolve Transform implementations that relate to the java.sql package. If the type does not resolve to a valid transform then this method will throw an exception to indicate that no stock transform exists for the specified type.

MatchURL ( Class, type ) : Transform,

This is used to resolve Transform implementations that relate to the java.net package. If the type does not resolve to a valid transform then this method will throw an exception to indicate that no stock transform exists for the specified type.

MatchUtility ( Class, type ) : Transform,

This is used to resolve Transform implementations that relate to the java.util package. If the type does not resolve to a valid transform then this method will throw an exception to indicate that no stock transform exists for the specified type.

PackageMatcher ( ) : System.Collections.Generic

Constructor for the PackageMatcher object. The package matcher is used to resolve a transform instance to convert object types to an from strings. If a match cannot be found with this matcher then an exception is thrown.

Method Details

Match() public method

This method attempts to perform a resolution of the transform based on its package prefix. This allows this matcher to create a logical group of transforms within a single method based on the types package prefix. If no transform can be found then this will throw an exception.
public Match ( Class, type ) : Transform,
type Class, /// this is the type to resolve a transform for ///
return Transform,

MatchEnum() public method

This is used to resolve Transform implementations that are Enum implementations. If the type is not an enumeration then this will return null.
public MatchEnum ( Class, type ) : Transform,
type Class, /// this is the type to resolve a stock transform for ///
return Transform,

MatchFile() public method

This is used to resolve Transform implementations that relate to the java.io package. If the type does not resolve to a valid transform then this method will throw an exception to indicate that no stock transform exists for the specified type.
public MatchFile ( Class, type ) : Transform,
type Class, /// this is the type to resolve a stock transform for ///
return Transform,

MatchLanguage() public method

This is used to resolve Transform implementations that relate to the java.lang package. If the type does not resolve to a valid transform then this method will throw an exception to indicate that no stock transform exists for the specified type.
public MatchLanguage ( Class, type ) : Transform,
type Class, /// this is the type to resolve a stock transform for ///
return Transform,

MatchMath() public method

This is used to resolve Transform implementations that relate to the java.math package. If the type does not resolve to a valid transform then this method will throw an exception to indicate that no stock transform exists for the specified type.
public MatchMath ( Class, type ) : Transform,
type Class, /// this is the type to resolve a stock transform for ///
return Transform,

MatchSQL() public method

This is used to resolve Transform implementations that relate to the java.sql package. If the type does not resolve to a valid transform then this method will throw an exception to indicate that no stock transform exists for the specified type.
public MatchSQL ( Class, type ) : Transform,
type Class, /// this is the type to resolve a stock transform for ///
return Transform,

MatchURL() public method

This is used to resolve Transform implementations that relate to the java.net package. If the type does not resolve to a valid transform then this method will throw an exception to indicate that no stock transform exists for the specified type.
public MatchURL ( Class, type ) : Transform,
type Class, /// this is the type to resolve a stock transform for ///
return Transform,

MatchUtility() public method

This is used to resolve Transform implementations that relate to the java.util package. If the type does not resolve to a valid transform then this method will throw an exception to indicate that no stock transform exists for the specified type.
public MatchUtility ( Class, type ) : Transform,
type Class, /// this is the type to resolve a stock transform for ///
return Transform,

PackageMatcher() public method

Constructor for the PackageMatcher object. The package matcher is used to resolve a transform instance to convert object types to an from strings. If a match cannot be found with this matcher then an exception is thrown.
public PackageMatcher ( ) : System.Collections.Generic
return System.Collections.Generic