public class PrimitiveRuleBuilder extends RuleTypeBuilder<PrimitiveRuleBuilder,PrimitiveTypeRule>
PrimitiveTypeRule
sRuleTypeBuilder.MessageExpressionBuilder
Modifier | Constructor and Description |
---|---|
protected |
PrimitiveRuleBuilder(List<RuleBinding<? extends Rule<?>>> rules,
Set<Version> versions,
Set<String> types) |
Modifier and Type | Method and Description |
---|---|
PrimitiveRuleBuilder |
allTrim()
Builds a
PrimitiveTypeRule that always evaluates to true and trims
leading and trailing whitespaces. |
PrimitiveRuleBuilder |
allTrim(Predicate predicate)
Builds a
PrimitiveTypeRule that evaluates the specified Predicate against the
primitive value with leading and trailing whitespaces trimmed. |
protected Collection<RuleBinding<PrimitiveTypeRule>> |
getRuleBindings(PrimitiveTypeRule rule,
String version)
Builder implementation must overwrite this method to return all
RuleBinding s for
rules that have been built. |
PrimitiveRuleBuilder |
is(Predicate predicate)
Builds a
PrimitiveTypeRule that evaluates the specified Predicate against the
primitive value. |
PrimitiveRuleBuilder |
leftTrim()
Builds a
PrimitiveTypeRule that always evaluates to true and trims
leading whitespaces. |
PrimitiveRuleBuilder |
leftTrim(Predicate predicate)
Builds a
PrimitiveTypeRule that evaluates the specified Predicate against the
primitive value with leading whitespaces trimmed. |
PrimitiveRuleBuilder |
rightTrim()
Builds a
PrimitiveTypeRule that always evaluates to true and trims
trailing whitespaces. |
PrimitiveRuleBuilder |
rightTrim(Predicate predicate)
Builds a
PrimitiveTypeRule that evaluates the specified Predicate against the
primitive value with trailing whitespaces trimmed. |
activate, active, addRuleBindings, description, encoding, getRules, instance, message, message, prepareRule, primitive, refersToSection, severity, test
allOf, allOf, always, alwaysFails, anyOf, anyOf, date, dateTime, dateTime25, empty, emptyOr, in, in, isEqual, isEqualIgnoreCase, matches, matches, matches, maxLength, nonNegativeInteger, not, number, oid, startsWith, time, usPhoneNumber, uuid, withdrawn
protected PrimitiveRuleBuilder(List<RuleBinding<? extends Rule<?>>> rules, Set<Version> versions, Set<String> types)
public PrimitiveRuleBuilder is(Predicate predicate)
PrimitiveTypeRule
that evaluates the specified Predicate
against the
primitive value.predicate
- predicate to evaluate the primitive value againstpublic PrimitiveRuleBuilder leftTrim(Predicate predicate)
PrimitiveTypeRule
that evaluates the specified Predicate
against the
primitive value with leading whitespaces trimmed.predicate
- predicate to evaluate the primitive value againstpublic PrimitiveRuleBuilder leftTrim()
PrimitiveTypeRule
that always evaluates to true
and trims
leading whitespaces.public PrimitiveRuleBuilder rightTrim()
PrimitiveTypeRule
that always evaluates to true
and trims
trailing whitespaces.public PrimitiveRuleBuilder rightTrim(Predicate predicate)
PrimitiveTypeRule
that evaluates the specified Predicate
against the
primitive value with trailing whitespaces trimmed.predicate
- predicate to evaluate the primitive value againstpublic PrimitiveRuleBuilder allTrim()
PrimitiveTypeRule
that always evaluates to true
and trims
leading and trailing whitespaces.public PrimitiveRuleBuilder allTrim(Predicate predicate)
PrimitiveTypeRule
that evaluates the specified Predicate
against the
primitive value with leading and trailing whitespaces trimmed.predicate
- predicate to evaluate the primitive value againstprotected Collection<RuleBinding<PrimitiveTypeRule>> getRuleBindings(PrimitiveTypeRule rule, String version)
RuleTypeBuilder
RuleBinding
s for
rules that have been built.getRuleBindings
in class RuleTypeBuilder<PrimitiveRuleBuilder,PrimitiveTypeRule>
rule
- the rule for which bindings shall be retrievedversion
- the HL7 version for which bindings shall be retrievedRuleBinding
sCopyright © 2001–2017 University Health Network. All rights reserved.