C# Class HandCoded.Xml.Logic

The Logic class contains functions the make converting Clix based rules to C# easier. Rule set classes may be derived from this class to make access to the members more efficient.
Not every possible combination of arguments types is provided by all the functions - only those that are currently used in the validation code.
Inheritance: Types
ファイルを表示 Open project: formicary/fpml-toolkit-csharp

Public Methods

Method Description
And ( bool lhs, bool rhs ) : bool

Calculates the logical-and of the given predicate result values.

Count ( XmlNodeList list ) : int

Determines the number of nodes in a XmlNodeList.

Equal ( Date lhs, Date rhs ) : bool

Determines if two Date values have the same contents.

Equal ( HandCoded lhs, HandCoded rhs ) : bool

Determines if two HandCoded.Finance.DateTime values have the same contents.

Equal ( Time lhs, Time rhs ) : bool

Determines if two Time values have the same contents.

Equal ( XmlNode lhs, XmlNode rhs ) : bool

Determines if two nodes contain the same value.

Equal ( XmlNode lhs, int rhs ) : bool

Determines if the value of a XmlNode is the same as a given int.

Equal ( XmlNode lhs, string rhs ) : bool

Determines if the value of a XmlNode is the same as a given string.

Equal ( decimal lhs, decimal rhs ) : bool

Determines if two decimal values have the same contents.

Equal ( int lhs, int rhs ) : bool

Compares two integer values.

Equal ( string lhs, string rhs ) : bool

Determines if two string values have the same contents.

Exists ( XmlNode node ) : bool

Determines if a referenced XmlNode exists.

Exists ( XmlNodeList list ) : bool

Determines if a XmlNodeList is not empty.

Greater ( Date lhs, Date rhs ) : bool

Determines if the value of a Date is greater than the value of another.

Greater ( HandCoded lhs, HandCoded rhs ) : bool

Determines if the value of a HandCoded.Finance.DateTime is greater than the value of another.

Greater ( Time lhs, Time rhs ) : bool

Determines if the value of a Time is greater than the value of another.

Greater ( XmlNode lhs, XmlNode rhs ) : bool

Compares two XmlNode instances to determine if the first is larger than the second.

Greater ( decimal lhs, decimal rhs ) : bool

Determines if the value of a decimal is greater than the value of another.

Greater ( int lhs, int rhs ) : bool

Compares two int instances to determine if the first is larger than the second.

Greater ( string lhs, string rhs ) : bool

Compares two string instances to determine if the first is larger than the second.

GreaterOrEqual ( Date lhs, Date rhs ) : bool

Compares two Date instances to determine if the first is equal to or larger than the second.

GreaterOrEqual ( HandCoded lhs, HandCoded rhs ) : bool

Compares two HandCoded.Finance.DateTime instances to determine if the first is equal to or larger than the second.

GreaterOrEqual ( Time lhs, Time rhs ) : bool

Compares two Time instances to determine if the first is equal to or larger than the second.

GreaterOrEqual ( XmlNode lhs, XmlNode rhs ) : bool

Compares two XmlNode instances to determine if the first is equal to or larger than the second.

GreaterOrEqual ( XmlNode lhs, double rhs ) : bool

Compares a XmlNode instance with a double to determine if the value it holds is larger or the same.

GreaterOrEqual ( decimal lhs, decimal rhs ) : bool

Compares two decimal instances to determine if the first is equal to or larger than the second.

GreaterOrEqual ( string lhs, string rhs ) : bool

Compares two string instances to determine if the first is equal to or larger than the second.

Iff ( bool lhs, bool rhs ) : bool

Calculates the "if and only if" of the given predicate result values.

Implies ( bool lhs, bool rhs ) : bool

Calculates the logical-implication of the given predicate result values.

Less ( Date lhs, Date rhs ) : bool

Determines if the value of a Date is less than the value of another.

Less ( HandCoded lhs, HandCoded rhs ) : bool

Determines if the value of a HandCoded.Finance.DateTime is less than the value of another.

Less ( Time lhs, Time rhs ) : bool

Determines if the value of a Time is less than the value of another.

Less ( XmlNode lhs, XmlNode rhs ) : bool

Determines if the value of one node is less than another. If either node is null then the result is false.

Less ( XmlNode lhs, string rhs ) : bool

Determines if the value of a node is less than a given string. If the node is null then the result is false.

Less ( decimal lhs, decimal rhs ) : bool

Determines if the value of a decimal is less than the value of another.

Less ( string lhs, string rhs ) : bool

Determines if the value of a string is lexiographically less than the value of another.

LessOrEqual ( Date lhs, Date rhs ) : bool

Compares two Date instances to determine if the first is equal to or smaller than the second.

LessOrEqual ( HandCoded lhs, HandCoded rhs ) : bool

Compares two HandCoded.Finance.DateTime instances to determine if the first is equal to or smaller than the second.

LessOrEqual ( Time lhs, Time rhs ) : bool

Compares two Time instances to determine if the first is equal to or smaller than the second.

LessOrEqual ( XmlNode lhs, XmlNode rhs ) : bool

Compares two XmlNode instances to determine if the first is equal to or smaller than the second.

LessOrEqual ( XmlNode lhs, double rhs ) : bool

Compares a XmlNode instance with a double to determine if the value it holds is smaller or the same.

LessOrEqual ( decimal lhs, decimal rhs ) : bool

Compares two decimal instances to determine if the first is equal to or smaller than the second.

LessOrEqual ( string lhs, string rhs ) : bool

Compares two string instances to determine if the first is equal to or smaller than the second.

Not ( bool value ) : bool

Calculates the logical-not of the given predicate result value.

NotEqual ( Date lhs, Date rhs ) : bool

Determines if two Date values are different.

NotEqual ( HandCoded lhs, HandCoded rhs ) : bool

Determines if two HandCoded.Finance.DateTime values are different.

NotEqual ( Time lhs, Time rhs ) : bool

Determines if two Time values are different.

NotEqual ( XmlNode lhs, XmlNode rhs ) : bool

Determines if two nodes contain the different values.

NotEqual ( XmlNode lhs, decimal rhs ) : bool

Determines if the value of a XmlNode is not the same as a given decimal.

NotEqual ( XmlNode lhs, int rhs ) : bool

Determines if the value of a XmlNode is not the same as a given int.

NotEqual ( XmlNode lhs, string rhs ) : bool

Determines if the value of a XmlNode is not the same as a given string.

NotEqual ( decimal lhs, decimal rhs ) : bool

Determines if two decimal values are different.

NotEqual ( string lhs, string rhs ) : bool

Determines if two string values are different.

Or ( bool lhs, bool rhs ) : bool

Calculates the logical-or of the given predicate result values.

Protected Methods

Method Description
Logic ( ) : System.Xml

Constructs a Logic instance.

Method Details

And() public static method

Calculates the logical-and of the given predicate result values.
public static And ( bool lhs, bool rhs ) : bool
lhs bool The first predicate value.
rhs bool The second predicate value.
return bool

Count() public static method

Determines the number of nodes in a XmlNodeList.
public static Count ( XmlNodeList list ) : int
list System.Xml.XmlNodeList The to examine.
return int

Equal() public static method

Determines if two Date values have the same contents.
public static Equal ( Date lhs, Date rhs ) : bool
lhs HandCoded.Finance.Date The to compare.
rhs HandCoded.Finance.Date The to compare with.
return bool

Equal() public static method

Determines if two HandCoded.Finance.DateTime values have the same contents.
public static Equal ( HandCoded lhs, HandCoded rhs ) : bool
lhs HandCoded The to compare.
rhs HandCoded The to compare with.
return bool

Equal() public static method

Determines if two Time values have the same contents.
public static Equal ( Time lhs, Time rhs ) : bool
lhs HandCoded.Finance.Time The to compare.
rhs HandCoded.Finance.Time The to compare with.
return bool

Equal() public static method

Determines if two nodes contain the same value.
public static Equal ( XmlNode lhs, XmlNode rhs ) : bool
lhs System.Xml.XmlNode The first node to compare.
rhs System.Xml.XmlNode The second node to compare.
return bool

Equal() public static method

Determines if the value of a XmlNode is the same as a given int.
public static Equal ( XmlNode lhs, int rhs ) : bool
lhs System.Xml.XmlNode The to compare.
rhs int The value.
return bool

Equal() public static method

Determines if the value of a XmlNode is the same as a given string.
public static Equal ( XmlNode lhs, string rhs ) : bool
lhs System.Xml.XmlNode The to compare.
rhs string The value.
return bool

Equal() public static method

Determines if two decimal values have the same contents.
public static Equal ( decimal lhs, decimal rhs ) : bool
lhs decimal The to compare.
rhs decimal The to compare with.
return bool

Equal() public static method

Compares two integer values.
public static Equal ( int lhs, int rhs ) : bool
lhs int The first value.
rhs int The second value
return bool

Equal() public static method

Determines if two string values have the same contents.
public static Equal ( string lhs, string rhs ) : bool
lhs string The to compare.
rhs string The to compare with.
return bool

Exists() public static method

Determines if a referenced XmlNode exists.
public static Exists ( XmlNode node ) : bool
node System.Xml.XmlNode The or null.
return bool

Exists() public static method

Determines if a XmlNodeList is not empty.
public static Exists ( XmlNodeList list ) : bool
list System.Xml.XmlNodeList The to examine.
return bool

Greater() public static method

Determines if the value of a Date is greater than the value of another.
public static Greater ( Date lhs, Date rhs ) : bool
lhs HandCoded.Finance.Date The to compare.
rhs HandCoded.Finance.Date The to compare with.
return bool

Greater() public static method

Determines if the value of a HandCoded.Finance.DateTime is greater than the value of another.
public static Greater ( HandCoded lhs, HandCoded rhs ) : bool
lhs HandCoded The to compare.
rhs HandCoded The to compare with.
return bool

Greater() public static method

Determines if the value of a Time is greater than the value of another.
public static Greater ( Time lhs, Time rhs ) : bool
lhs HandCoded.Finance.Time The to compare.
rhs HandCoded.Finance.Time The to compare with.
return bool

Greater() public static method

Compares two XmlNode instances to determine if the first is larger than the second.
public static Greater ( XmlNode lhs, XmlNode rhs ) : bool
lhs System.Xml.XmlNode The first node.
rhs System.Xml.XmlNode The second node.
return bool

Greater() public static method

Determines if the value of a decimal is greater than the value of another.
public static Greater ( decimal lhs, decimal rhs ) : bool
lhs decimal The to compare.
rhs decimal The to compare with.
return bool

Greater() public static method

Compares two int instances to determine if the first is larger than the second.
public static Greater ( int lhs, int rhs ) : bool
lhs int The first int.
rhs int The second int.
return bool

Greater() public static method

Compares two string instances to determine if the first is larger than the second.
public static Greater ( string lhs, string rhs ) : bool
lhs string The first string.
rhs string The second string.
return bool

GreaterOrEqual() public static method

Compares two Date instances to determine if the first is equal to or larger than the second.
public static GreaterOrEqual ( Date lhs, Date rhs ) : bool
lhs HandCoded.Finance.Date The first Date.
rhs HandCoded.Finance.Date The second Date.
return bool

GreaterOrEqual() public static method

Compares two HandCoded.Finance.DateTime instances to determine if the first is equal to or larger than the second.
public static GreaterOrEqual ( HandCoded lhs, HandCoded rhs ) : bool
lhs HandCoded The first DateTime.
rhs HandCoded The second DateTime.
return bool

GreaterOrEqual() public static method

Compares two Time instances to determine if the first is equal to or larger than the second.
public static GreaterOrEqual ( Time lhs, Time rhs ) : bool
lhs HandCoded.Finance.Time The first Time.
rhs HandCoded.Finance.Time The second Time.
return bool

GreaterOrEqual() public static method

Compares two XmlNode instances to determine if the first is equal to or larger than the second.
public static GreaterOrEqual ( XmlNode lhs, XmlNode rhs ) : bool
lhs System.Xml.XmlNode The first node.
rhs System.Xml.XmlNode The second node.
return bool

GreaterOrEqual() public static method

Compares a XmlNode instance with a double to determine if the value it holds is larger or the same.
public static GreaterOrEqual ( XmlNode lhs, double rhs ) : bool
lhs System.Xml.XmlNode The node holding the value.
rhs double The value to compare against.
return bool

GreaterOrEqual() public static method

Compares two decimal instances to determine if the first is equal to or larger than the second.
public static GreaterOrEqual ( decimal lhs, decimal rhs ) : bool
lhs decimal The first decimal.
rhs decimal The second decimal.
return bool

GreaterOrEqual() public static method

Compares two string instances to determine if the first is equal to or larger than the second.
public static GreaterOrEqual ( string lhs, string rhs ) : bool
lhs string The first string.
rhs string The second string.
return bool

Iff() public static method

Calculates the "if and only if" of the given predicate result values.
public static Iff ( bool lhs, bool rhs ) : bool
lhs bool The first predicate value.
rhs bool The second predicate value.
return bool

Implies() public static method

Calculates the logical-implication of the given predicate result values.
public static Implies ( bool lhs, bool rhs ) : bool
lhs bool The first predicate value.
rhs bool The second predicate value.
return bool

Less() public static method

Determines if the value of a Date is less than the value of another.
public static Less ( Date lhs, Date rhs ) : bool
lhs HandCoded.Finance.Date The to compare.
rhs HandCoded.Finance.Date The to compare with.
return bool

Less() public static method

Determines if the value of a HandCoded.Finance.DateTime is less than the value of another.
public static Less ( HandCoded lhs, HandCoded rhs ) : bool
lhs HandCoded The to compare.
rhs HandCoded The to compare with.
return bool

Less() public static method

Determines if the value of a Time is less than the value of another.
public static Less ( Time lhs, Time rhs ) : bool
lhs HandCoded.Finance.Time The to compare.
rhs HandCoded.Finance.Time The to compare with.
return bool

Less() public static method

Determines if the value of one node is less than another. If either node is null then the result is false.
public static Less ( XmlNode lhs, XmlNode rhs ) : bool
lhs System.Xml.XmlNode The first node.
rhs System.Xml.XmlNode The second node.
return bool

Less() public static method

Determines if the value of a node is less than a given string. If the node is null then the result is false.
public static Less ( XmlNode lhs, string rhs ) : bool
lhs System.Xml.XmlNode The node to be tested.
rhs string A string value to compare with.
return bool

Less() public static method

Determines if the value of a decimal is less than the value of another.
public static Less ( decimal lhs, decimal rhs ) : bool
lhs decimal The to compare.
rhs decimal The to compare with.
return bool

Less() public static method

Determines if the value of a string is lexiographically less than the value of another.
public static Less ( string lhs, string rhs ) : bool
lhs string The to compare.
rhs string The to compare with.
return bool

LessOrEqual() public static method

Compares two Date instances to determine if the first is equal to or smaller than the second.
public static LessOrEqual ( Date lhs, Date rhs ) : bool
lhs HandCoded.Finance.Date The first date.
rhs HandCoded.Finance.Date The second date.
return bool

LessOrEqual() public static method

Compares two HandCoded.Finance.DateTime instances to determine if the first is equal to or smaller than the second.
public static LessOrEqual ( HandCoded lhs, HandCoded rhs ) : bool
lhs HandCoded The first DateTime.
rhs HandCoded The second DateTime.
return bool

LessOrEqual() public static method

Compares two Time instances to determine if the first is equal to or smaller than the second.
public static LessOrEqual ( Time lhs, Time rhs ) : bool
lhs HandCoded.Finance.Time The first Time.
rhs HandCoded.Finance.Time The second Tie.
return bool

LessOrEqual() public static method

Compares two XmlNode instances to determine if the first is equal to or smaller than the second.
public static LessOrEqual ( XmlNode lhs, XmlNode rhs ) : bool
lhs System.Xml.XmlNode The first node.
rhs System.Xml.XmlNode The second node.
return bool

LessOrEqual() public static method

Compares a XmlNode instance with a double to determine if the value it holds is smaller or the same.
public static LessOrEqual ( XmlNode lhs, double rhs ) : bool
lhs System.Xml.XmlNode The node holding the value.
rhs double The value to compare against.
return bool

LessOrEqual() public static method

Compares two decimal instances to determine if the first is equal to or smaller than the second.
public static LessOrEqual ( decimal lhs, decimal rhs ) : bool
lhs decimal The first decimal.
rhs decimal The second decimal.
return bool

LessOrEqual() public static method

Compares two string instances to determine if the first is equal to or smaller than the second.
public static LessOrEqual ( string lhs, string rhs ) : bool
lhs string The first string.
rhs string The second string.
return bool

Logic() protected method

Constructs a Logic instance.
protected Logic ( ) : System.Xml
return System.Xml

Not() public static method

Calculates the logical-not of the given predicate result value.
public static Not ( bool value ) : bool
value bool The predicate value.
return bool

NotEqual() public static method

Determines if two Date values are different.
public static NotEqual ( Date lhs, Date rhs ) : bool
lhs HandCoded.Finance.Date The to compare.
rhs HandCoded.Finance.Date The to compare to.
return bool

NotEqual() public static method

Determines if two HandCoded.Finance.DateTime values are different.
public static NotEqual ( HandCoded lhs, HandCoded rhs ) : bool
lhs HandCoded The to compare.
rhs HandCoded The to compare to.
return bool

NotEqual() public static method

Determines if two Time values are different.
public static NotEqual ( Time lhs, Time rhs ) : bool
lhs HandCoded.Finance.Time The to compare.
rhs HandCoded.Finance.Time The to compare to.
return bool

NotEqual() public static method

Determines if two nodes contain the different values.
public static NotEqual ( XmlNode lhs, XmlNode rhs ) : bool
lhs System.Xml.XmlNode The first node to compare.
rhs System.Xml.XmlNode The second node to compare.
return bool

NotEqual() public static method

Determines if the value of a XmlNode is not the same as a given decimal.
public static NotEqual ( XmlNode lhs, decimal rhs ) : bool
lhs System.Xml.XmlNode The to compare.
rhs decimal The value.
return bool

NotEqual() public static method

Determines if the value of a XmlNode is not the same as a given int.
public static NotEqual ( XmlNode lhs, int rhs ) : bool
lhs System.Xml.XmlNode The to compare.
rhs int The value.
return bool

NotEqual() public static method

Determines if the value of a XmlNode is not the same as a given string.
public static NotEqual ( XmlNode lhs, string rhs ) : bool
lhs System.Xml.XmlNode The to compare.
rhs string The value.
return bool

NotEqual() public static method

Determines if two decimal values are different.
public static NotEqual ( decimal lhs, decimal rhs ) : bool
lhs decimal The to compare.
rhs decimal The to compare to.
return bool

NotEqual() public static method

Determines if two string values are different.
public static NotEqual ( string lhs, string rhs ) : bool
lhs string The to compare.
rhs string The to compare to.
return bool

Or() public static method

Calculates the logical-or of the given predicate result values.
public static Or ( bool lhs, bool rhs ) : bool
lhs bool The first predicate value.
rhs bool The second predicate value.
return bool