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
Afficher le fichier Open project: formicary/fpml-toolkit-csharp

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Logic ( ) : System.Xml

Constructs a Logic instance.

Method Details

And() public static méthode

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.
Résultat bool

Count() public static méthode

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

Equal() public static méthode

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.
Résultat bool

Equal() public static méthode

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.
Résultat bool

Equal() public static méthode

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.
Résultat bool

Equal() public static méthode

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.
Résultat bool

Equal() public static méthode

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.
Résultat bool

Equal() public static méthode

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.
Résultat bool

Equal() public static méthode

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.
Résultat bool

Equal() public static méthode

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

Equal() public static méthode

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.
Résultat bool

Exists() public static méthode

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

Exists() public static méthode

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

Greater() public static méthode

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.
Résultat bool

Greater() public static méthode

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.
Résultat bool

Greater() public static méthode

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.
Résultat bool

Greater() public static méthode

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.
Résultat bool

Greater() public static méthode

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.
Résultat bool

Greater() public static méthode

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.
Résultat bool

Greater() public static méthode

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.
Résultat bool

GreaterOrEqual() public static méthode

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.
Résultat bool

GreaterOrEqual() public static méthode

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.
Résultat bool

GreaterOrEqual() public static méthode

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.
Résultat bool

GreaterOrEqual() public static méthode

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.
Résultat bool

GreaterOrEqual() public static méthode

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.
Résultat bool

GreaterOrEqual() public static méthode

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.
Résultat bool

GreaterOrEqual() public static méthode

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.
Résultat bool

Iff() public static méthode

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.
Résultat bool

Implies() public static méthode

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.
Résultat bool

Less() public static méthode

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.
Résultat bool

Less() public static méthode

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.
Résultat bool

Less() public static méthode

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.
Résultat bool

Less() public static méthode

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.
Résultat bool

Less() public static méthode

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.
Résultat bool

Less() public static méthode

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.
Résultat bool

Less() public static méthode

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.
Résultat bool

LessOrEqual() public static méthode

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.
Résultat bool

LessOrEqual() public static méthode

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.
Résultat bool

LessOrEqual() public static méthode

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.
Résultat bool

LessOrEqual() public static méthode

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.
Résultat bool

LessOrEqual() public static méthode

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.
Résultat bool

LessOrEqual() public static méthode

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.
Résultat bool

LessOrEqual() public static méthode

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.
Résultat bool

Logic() protected méthode

Constructs a Logic instance.
protected Logic ( ) : System.Xml
Résultat System.Xml

Not() public static méthode

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

NotEqual() public static méthode

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.
Résultat bool

NotEqual() public static méthode

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.
Résultat bool

NotEqual() public static méthode

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.
Résultat bool

NotEqual() public static méthode

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.
Résultat bool

NotEqual() public static méthode

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.
Résultat bool

NotEqual() public static méthode

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.
Résultat bool

NotEqual() public static méthode

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.
Résultat bool

NotEqual() public static méthode

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.
Résultat bool

NotEqual() public static méthode

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.
Résultat bool

Or() public static méthode

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.
Résultat bool