java.lang.Object
com.pervasive.datarush.schema.Rule
Defines a rule that can be used to determine if a particular record discriminator
value fits the definition of a record type. A schema may contain multiple rules,
usually one per record type defined. If a schema only contains one record type,
it will most likely not have any rules.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn case sensitive property.Return the high end of the value range.Return the low end of the value range.getName()Get the rule name.Get the rule operator.Get the record name this rule matches.booleanExecute this rule against the given discriminator value.voidsetCasesensitive(String casesensitive) Set the case sensitive property.voidsetHighvalue(String highvalue) Set the high end of the value range.voidsetLowvalue(String lowvalue) Set the low end of the value range.voidSet the rule name.voidsetOperator(String operator) Set the rule operator.voidsetRecordname(String recordname) Set the record name this rule matches.
-
Constructor Details
-
Rule
public Rule()Default constructor.
-
-
Method Details
-
matches
Execute this rule against the given discriminator value. Return true if the value matches the rule. Otherwise, return false.- Parameters:
discValue- discriminator value- Returns:
- true for a match; false otherwise
-
getCaseSensitive
Return case sensitive property.- Returns:
- case sensitive property
-
setCasesensitive
Set the case sensitive property. Setting case sensitive to true causes all discriminator comparisons to be case sensitive.- Parameters:
casesensitive- case sensitive property.
-
getLowValue
Return the low end of the value range.- Returns:
- low end of value range
-
setLowvalue
Set the low end of the value range.- Parameters:
lowvalue- low end of value range
-
getHighValue
Return the high end of the value range.- Returns:
- high end of value range
-
setHighvalue
Set the high end of the value range.- Parameters:
highvalue- high end of value range
-
getName
Get the rule name.- Returns:
- rule name
-
setName
Set the rule name.- Parameters:
name- rule name
-
getOperator
Get the rule operator.- Returns:
- rule operator
-
setOperator
Set the rule operator.- Parameters:
operator- rule operator
-
getRecordName
Get the record name this rule matches.- Returns:
- record name
-
setRecordname
Set the record name this rule matches.- Parameters:
recordname- record name
-