-
- 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:
RegistryEntry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description int
getMajorVersion()
Gets the major revision number for this version of the Versionable object.int
getMinorVersion()
Gets the minor revision number for this version of the Versionable object.String
getUserVersion()
Gets the user-specified revision number for this version of the Versionable object.void
setMajorVersion(int majorVersion)
Sets the major revision number for this version of the Versionable object.void
setMinorVersion(int minorVersion)
Sets the minor revision number for this version of the Versionable object.void
setUserVersion(String userVersion)
Sets the user specified revision number for this version of the Versionable object.
-
-
-
Method Detail
-
getMajorVersion
int getMajorVersion() throws JAXRException
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 JAXR provider encounters an internal error
-
setMajorVersion
void setMajorVersion(int majorVersion) throws JAXRException
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 JAXR provider encounters an internal error
-
getMinorVersion
int getMinorVersion() throws JAXRException
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 JAXR provider encounters an internal error
-
setMinorVersion
void setMinorVersion(int minorVersion) throws JAXRException
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 JAXR provider encounters an internal error
-
getUserVersion
String getUserVersion() throws JAXRException
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 JAXR provider encounters an internal error
-
setUserVersion
void setUserVersion(String userVersion) throws JAXRException
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 JAXR provider encounters an internal error
-
-
Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/xml/registry/infomodel/versionable.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.