Name

Versionable

Synopsis

public interface Versionable {
// Public Instance Methods
    public abstract int getMajorVersion( )
       throws javax.xml.registry.JAXRException;             //L1
    public abstract int getMinorVersion(  )
       throws javax.xml.registry.JAXRException;             //L1
    public abstract String getUserVersion( )
       throws javax.xml.registry.JAXRException;             //L1
    public abstract void setMajorVersion(int majorVersion)
       throws javax.xml.registry.JAXRException;             //L1
    public abstract void setMinorVersion(int minorVersion)
       throws javax.xml.registry.JAXRException;             //L1
    public abstract void setUserVersion(String userVersion)
       throws javax.xml.registry.JAXRException;             //L1
}

Some RegistryObjects, specifically those derived from RegistryEntry, include version information, access to which is possible using the methods of the Versionable interface. The major and minor version numbers, which can be read and set using the getMajorVersion( ), getMinorVersion( ), setMajorVersion( ), and setMinorVersion( ) methods, are intended to be maintained by the registry and may be modified by the registry as changes are made to the object. By contrast, there is also a user version number, which is intended to be a number that might be quoted to a registry user. This value is manipulated using the getUserVersion( ) and setUserVersion( ) methods and is not modified by the registry itself. Versioning is a level 1 registry feature.

Implementations

RegistryEntry

Get Java Web Services in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.