Home > Class Reference > %SYS namespace > %ZHSLIB.PackageManager.Core.SemanticVersion

%ZHSLIB.PackageManager.Core.SemanticVersion

serial class %ZHSLIB.PackageManager.Core.SemanticVersion extends %Library.SerialObject, %XML.Adaptor

Property Inventory (Including Private)

Method Inventory (Including Private)

Parameters

parameter NAMESPACE = http://www.intersystems.com/HealthShare/PackageManager;
Inherited description: NAMESPACE specifies the XML namespace to be used when projecting the class to XML. If NAMESPACE = "", the default namespace is used for the XML schema is used as the namespace for his class.

Properties (Including Private)

property Build as RegExString (MAXLEN = 100, REGEX = "([0-9A-Za-z-])+(\.([0-9A-Za-z-])+)*");
Property methods: BuildDisplayToLogical(), BuildGet(), BuildIsValid(), BuildLogicalToDisplay(), BuildLogicalToOdbc(), BuildNormalize(), BuildSet()
property Major as %Integer (MINVAL = 0) [ Required ];
Property methods: MajorDisplayToLogical(), MajorGet(), MajorIsValid(), MajorLogicalToDisplay(), MajorNormalize(), MajorSet(), MajorXSDToLogical()
property Minor as %Integer (MINVAL = 0) [ Required ];
Property methods: MinorDisplayToLogical(), MinorGet(), MinorIsValid(), MinorLogicalToDisplay(), MinorNormalize(), MinorSet(), MinorXSDToLogical()
property Patch as %Integer (MINVAL = 0) [ Required ];
Property methods: PatchDisplayToLogical(), PatchGet(), PatchIsValid(), PatchLogicalToDisplay(), PatchNormalize(), PatchSet(), PatchXSDToLogical()
property Prerelease as RegExString (MAXLEN = 100, REGEX = "([0-9A-Za-z-])+(\.([0-9A-Za-z-])+)*");
Property methods: PrereleaseDisplayToLogical(), PrereleaseGet(), PrereleaseIsValid(), PrereleaseLogicalToDisplay(), PrereleaseLogicalToOdbc(), PrereleaseNormalize(), PrereleaseSet()

Methods (Including Private)

private method %OnValidateObject() as %Status [ Language = objectscript ]
This callback method is invoked by the %ValidateObject() method to provide notification that the current object is being validated.

If this method returns an error then %ValidateObject() will fail.

method Follows(pVersion As %ZHSLIB.PackageManager.Core.SemanticVersion) as %Boolean [ Language = objectscript ]
Returns 1 if this version is a later version than pVersion.
From the SemVer 2.0.0 specification:
1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-alpha.beta < 1.0.0-beta < 1.0.0-beta.2 < 1.0.0-beta.11 < 1.0.0-rc.1 < 1.0.0 Also, two prerelease versions with mismatched major/minor/patch should *not* follow each other; see: node-semver
classmethod FromListBuild(pList As %List) as %ZHSLIB.PackageManager.Core.SemanticVersion [ Language = objectscript ]
classmethod FromString(pString As %String) as %ZHSLIB.PackageManager.Core.SemanticVersion [ Language = objectscript ]
method IsBackwardCompatibleWith(pVersion As %ZHSLIB.PackageManager.Core.SemanticVersion) as %Boolean [ Language = objectscript ]
Returns 1 if this version's number indicates that it will also support everything in pVersion. That is, it has the same major and a later or equal minor version to pVersion.
method IsCompatibleWith(pVersion As %ZHSLIB.PackageManager.Core.SemanticVersion) as %Boolean [ Language = objectscript ]
Returns 1 if this version's number indicates that it supports in pVersion. That is, it has the same major and minor version as pVersion.
method IsSnapshot() as %Boolean [ Language = objectscript ]
classmethod IsValid(pString As %String) as %Status [ Language = objectscript ]
method Satisfies(pExpression As %ZHSLIB.PackageManager.Core.SemanticVersionExpression) as %Boolean [ Language = objectscript ]
method ToString() as %String [ Language = objectscript ]

Inherited Members

Inherited Methods (Including Private)

FeedbackOpens in a new window