General Rule Set

In this section:

General rules are provided by the engine for use by any rule set. The rules are located in com.ibi.edaqm.XDRuleBase, which extends com.ibi.edaqm.XDRuleClass, the base of all rules. To include these rules, your own rule class should extend XDRuleBase instead of EXRuleClass.


Top of page

x
isN

isN validates that a node is numeric with an optional leading sign.

<rule tag="xx" method="isN" />

Attribute

Description

max

Maximum number of digits permitted, not including sign. Optional.

min

Minimum number of digits required, not including sign. Optional.



x
isR

isR validates that a node is numeric with an optional leading sign and a single decimal point.

<rule tag="xx" class="XDHipaaRules" method="isR" />

Attribute

Description

max

Maximum number of digits permitted, not including sign or radix. Optional.

min

Minimum number of digits required, not including sign or radix. Optional.

radix

Single character to be used to separate the decimal parts of the real value. The default is a period character. The radix attribute can be taken from the USING entry.



x
isDate

isDate validates that a node is a CCYYMMDD format.

<rule tag="xx" class="XDHipaaRules" method="isDate" />

Attribute

Description

max

Maximum positions permitted. If omitted, 8 is assumed.

min

Minimum number of positions required. If omitted, 8 is assumed.



x
isTime

isTime validates that a node is in HHMM[SS] format.

<rule tag="xx" method="isTime" />

Attribute

Description

none

NA


iWay Software