public interface RuleSetSpecification
extends java.lang.Comparable
The text representation of a ruleset specification looks like
name[where xx, yy, and zz are two-digit numbers.:
[(xx[-
yy[-
zz]]) |*
]]
The following are valid ruleset specifications:
My-Ruleset
My-Ruleset
.My-Ruleset:
My-Ruleset
.My-Ruleset:*
My-Ruleset
.My-Ruleset:02
My-Ruleset
with major version 2.My-Ruleset:02-03
My-Ruleset
with major version 2 and minor version 3 or below.My-Ruleset:02-03-04
My-Ruleset
with major version 2 and and minor and revision version at or below 3.4.The toString
method returns a standard string representation
of this ruleset specification.
A RulesetSpecification object does not describe anything about the tenant (or shared) context of the ruleset. It is possible to have the same ruleset name and version exist in 2 different tenants with different types (e.g. Validation type). This object does not distinguish which tenant it is associated with
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
static java.lang.String |
sBaseRulesetName
The "base" RuleSet name.
|
static java.lang.String |
VERSION |
Modifier and Type | Method and Description |
---|---|
boolean |
compareNameAndMajorVersion(java.lang.Object aOther)
Compares another ruleset's name and major version to this ruleset.
|
int |
compareTo(java.lang.Object aRuleSet)
Compares another ruleset to this.
|
boolean |
equals(java.lang.Object aRuleset)
Returns true iff this and the given ruleset instance
describe the same ruleset.
|
java.lang.String |
getBranchName()
If this is a branched ruleset, returns the branch name.
|
java.lang.String |
getBranchOriginName()
If this is a branched ruleset, returns the origin ruleset name.
|
java.lang.String |
getLocalePattern()
Other parts of PRPC need to the locale pattern of a ruleset yet don't want to parse the name again.
|
int |
getMajorVersion()
Gets the major version.
|
int |
getMinorVersion()
Gets the minor version.
|
java.lang.String |
getName()
Returns the ruleset name.
|
int |
getRevision()
Gets the revision.
|
java.lang.String |
getRuleSetType() |
java.lang.String |
getVersionString()
Returns the version, as a string.
|
boolean |
isLocalized()
This method tells if the ruleset is a localized.
|
boolean |
isMobilized()
This method tells if the ruleset is a mobilized.
|
boolean |
isPersonal()
if this ruleset is a personal one (contains an '@') return true.
|
boolean |
isRulesetApplicationBasedValidation()
Tells us if this ruleset uses AppBasedValidation
|
boolean |
isRulesetIncluded(RuleSetSpecification aRuleset)
Returns true if this ruleset includes the given specification.
|
boolean |
isTypeBranch() |
boolean |
isTypeBranchPegaOrPega()
Pega ruleset names start with "Pega-"
|
boolean |
isTypeComponent() |
boolean |
isTypeOverride()
Please note Override rulesets are discouraged in release 6.3 & up
|
boolean |
isTypePega() |
boolean |
isTypePegaFW() |
boolean |
isTypeProduction()
Note: This returns the value of the Ruleset category & type -
which is not used to indicate whether a ruleset is being as a Production Ruleset from an Access Group.
|
boolean |
isTypeShared() |
boolean |
isTypeStandard() |
static final java.lang.String VERSION
static final java.lang.String COPYRIGHT
static final java.lang.String sBaseRulesetName
java.lang.String getName()
java.lang.String getBranchName()
java.lang.String getBranchOriginName()
int getMajorVersion()
int getMinorVersion()
int getRevision()
boolean isPersonal()
true
if the rulesetname contains an '@',
false
otherwiseint compareTo(java.lang.Object aRuleSet)
This method and all other comparison methods such as equals(), hashCode(), isRulesetInlcuded() do not compare anything related to the tenant id. RuleSetSpecifications are not tenantized. It is assumed that higher layers of the application will differentiate on tenant id
compareTo
in interface java.lang.Comparable
aRuleSet
- the ruleset to compare to thisaRuleset
; zero if they are the same
version; or a negative number if
aRuleset
has a higher versionboolean compareNameAndMajorVersion(java.lang.Object aOther)
This method and all other comparison methods such as equals(), hashCode(), isRulesetInlcuded() do not compare anything related to the tenant id. RuleSetSpecifications are not tenantized. It is assumed that higher layers of the application will differentiate on tenant id
aOther
- the ruleset to compare to thisboolean equals(java.lang.Object aRuleset)
This method and all other comparison methods such as equals(), hashCode(), isRulesetInlcuded() do not compare anything related to the tenant id. RuleSetSpecifications are not tenantized. It is assumed that higher layers of the application will differentiate on tenant id
equals
in class java.lang.Object
aRuleset
- the ruleset to compare this to. This
must be a RuleSetSpecification
or another RuleSet
.
If it is a RuleSetSpecification
, then
it is equal to this ruleset only if it
has all three version parts specified,
they match the version parts of this ruleset.boolean isRulesetIncluded(RuleSetSpecification aRuleset)
This method and all other comparison methods such as equals(), hashCode(), isRulesetInlcuded() do not compare anything related to the tenant id. RuleSetSpecifications are not tenantized. It is assumed that higher layers of the application will differentiate on tenant id
aRuleset
- the ruleset to checkjava.lang.String getVersionString()
My-RuleSet:02-03
, 02-03
would be returned. If the specification does not include any
version information, then an empty string is returned.boolean isTypeOverride()
boolean isTypeBranch()
boolean isTypeStandard()
java.lang.String getRuleSetType()
boolean isTypeShared()
boolean isTypeComponent()
boolean isTypePega()
boolean isTypePegaFW()
boolean isTypeProduction()
boolean isTypeBranchPegaOrPega()
boolean isLocalized()
boolean isMobilized()
java.lang.String getLocalePattern()
boolean isRulesetApplicationBasedValidation()
Copyright © 2018 Pegasystems Inc. All Rights Reserved.