public class VersionRegistryObject
extends java.lang.Object
For those objects the version numbers are maintained in Slots of the object with the following names:
Constructor and Description |
---|
VersionRegistryObject(com.centrasite.jaxr.JAXRAccessor jaxr)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getMajorVersion(RegistryObject regObj)
Returns the major version of a RegistryObject by inspecting the appropriate slot.
|
int |
getMinorVersion(RegistryObject regObj)
Returns the minor version of a RegistryObject by inspecting the appropriate slot.
|
java.lang.String |
getUserVersion(RegistryObject regObj)
Returns the user version of a RegistryObject by inspecting the appropriate slot.
|
void |
setUserVersion(RegistryObject regObj,
int versionNumber)
Sets the given user version into the registry object by appending/reusing the
appropriate slot.
|
void |
setUserVersion(RegistryObject regObj,
java.lang.String userVersion)
Sets the given user version into the registry object by appending/reusing the
appropriate slot.
|
public VersionRegistryObject(com.centrasite.jaxr.JAXRAccessor jaxr)
jaxr
- opened JAXR sessionpublic void setUserVersion(RegistryObject regObj, int versionNumber) throws JAXRException
regObj
- a registry objectversionNumber
- a version number for the user versionJAXRException
- if an internal error occurs error on updating the user versionpublic void setUserVersion(RegistryObject regObj, java.lang.String userVersion) throws JAXRException
regObj
- a registry objectuserVersion
- a user supplied version is null removes the slot else add to the slotJAXRException
- if an internal error occurs error on updating the user versionpublic int getMajorVersion(RegistryObject regObj) throws JAXRException
regObj
- a registry objectJAXRException
- if an internal error occurs error on retrieving major versionpublic int getMinorVersion(RegistryObject regObj) throws JAXRException
regObj
- a registry objectJAXRException
- if an internal error occurs error on retrieving the minor versionpublic java.lang.String getUserVersion(RegistryObject regObj) throws JAXRException
regObj
- a registry objectJAXRException
- if an internal error occurs error on retrieving the user version