Package javax.xml.registry.infomodel
Interface Versionable
- All Known Subinterfaces:
ClassificationScheme,ExtrinsicObject,RegistryEntry,RegistryPackage,Service
public interface Versionable
The Versionable interface defines the behavior common to classes that
are capable of creating versions of their instances. At present all
RegistryEntry classes are required to implement the Versionable interface.
- Author:
- Farrukh S. Najmi
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintGets the major revision number for this version of the Versionable object.intGets the minor revision number for this version of the Versionable object.Gets the user-specified revision number for this version of the Versionable object.voidsetMajorVersion(int majorVersion) Sets the major revision number for this version of the Versionable object.voidsetMinorVersion(int minorVersion) Sets the minor revision number for this version of the Versionable object.voidsetUserVersion(String userVersion) Sets the user specified revision number for this version of the Versionable object.
-
Method Details
-
getMajorVersion
Gets the major revision number for this version of the Versionable object.- Capability Level: 1
- Returns:
- the major version for this object
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
setMajorVersion
Sets the major revision number for this version of the Versionable object.- Capability Level: 1
- Parameters:
majorVersion- the major version number- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
getMinorVersion
Gets the minor revision number for this version of the Versionable object.- Capability Level: 1
- Returns:
- the minor version for this object
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
setMinorVersion
Sets the minor revision number for this version of the Versionable object.- Capability Level: 1
- Parameters:
minorVersion- the minor version number- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
getUserVersion
Gets the user-specified revision number for this version of the Versionable object.- Capability Level: 1
- Returns:
- the user-defined version number
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
setUserVersion
Sets the user specified revision number for this version of the Versionable object.- Capability Level: 1
- Parameters:
userVersion- the user-defined version number- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-