-
- 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
-
-
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
21/08/2025 20:18:36 Cette version de la page est en cache (à la date du 21/08/2025 20:18:36) afin d'accélérer le traitement.Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la version plus récente de la page.
Document créé le 18/04/2008, dernière modification le 18/08/2025
Source du document imprimé : https://www.gaudry.be/java-api-javaee-rf-javax/xml/registry/infomodel/versionable.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.