|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RuleSetSpecification
An immutable representation of a ruleset specification. A ruleset specification corresponds to one or more specific ruleset versions.
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.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
sBaseRulesetName
The "base" RuleSet name. |
static java.lang.String |
VERSION
|
Method Summary | |
---|---|
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. |
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 |
isPersonal()
if this ruleset is a personal one (contains an '@') return true. |
boolean |
isRulesetIncluded(RuleSetSpecification aRuleset)
Returns true if this ruleset includes the given specification. |
boolean |
isTypeBranch()
|
boolean |
isTypeBranchPegaOrPega()
|
boolean |
isTypeComponent()
|
boolean |
isTypeOverride()
|
boolean |
isTypePega()
|
boolean |
isTypeProduction()
|
boolean |
isTypeShared()
|
boolean |
isTypeStandard()
|
Field Detail |
---|
static final java.lang.String COPYRIGHT
static final java.lang.String VERSION
static final java.lang.String sBaseRulesetName
Method Detail |
---|
java.lang.String getName()
int getMajorVersion()
int getMinorVersion()
int getRevision()
boolean isPersonal()
true
if the rulesetname contains an '@',
false
otherwiseint compareTo(java.lang.Object aRuleSet)
compareTo
in interface java.lang.Comparable
aRuleSet
- the ruleset to compare to this
aRuleset
; zero if they are the same
version; or a negative number if
aRuleset
has a higher versionboolean compareNameAndMajorVersion(java.lang.Object aOther)
aOther
- the ruleset to compare to this
boolean equals(java.lang.Object aRuleset)
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)
aRuleset
- the ruleset to check
java.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 isTypeProduction()
boolean isTypeBranchPegaOrPega()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |