Top Description Methods
javax.xml.registry.infomodel

public Interface Versionable

Known Direct Subinterfaces
javax.xml.registry.infomodel.RegistryEntry
Imports
java.util.*, javax.xml.registry.*

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

Modifier and TypeMethod and Description
public int

Returns:

the major version for this object
getMajorVersion
()

Gets the major revision number for this version of the Versionable object.

public int

Returns:

the minor version for this object
getMinorVersion
()

Gets the minor revision number for this version of the Versionable object.

public String

Returns:

the user-defined version number
getUserVersion
()

Gets the user-specified revision number for this version of the Versionable object.

public void
setMajorVersion(int
the major version number
majorVersion
)

Sets the major revision number for this version of the Versionable object.

public void
setMinorVersion(int
the minor version number
minorVersion
)

Sets the minor revision number for this version of the Versionable object.

public void
setUserVersion(String
the user-defined version number
userVersion
)

Sets the user specified revision number for this version of the Versionable object.

Method Detail

getMajorVersionback to summary
public int getMajorVersion() throws JAXRException

Gets the major revision number for this version of the Versionable object.

Capability Level: 1
Returns:int

the major version for this object

Exceptions
JAXRException:
If the JAXR provider encounters an internal error
getMinorVersionback to summary
public int getMinorVersion() throws JAXRException

Gets the minor revision number for this version of the Versionable object.

Capability Level: 1
Returns:int

the minor version for this object

Exceptions
JAXRException:
If the JAXR provider encounters an internal error
getUserVersionback to summary
public String getUserVersion() throws JAXRException

Gets the user-specified revision number for this version of the Versionable object.

Capability Level: 1
Returns:String

the user-defined version number

Exceptions
JAXRException:
If the JAXR provider encounters an internal error
setMajorVersionback to summary
public void setMajorVersion(int majorVersion) throws JAXRException

Sets the major revision number for this version of the Versionable object.

Capability Level: 1
Parameters
majorVersion:int

the major version number

Exceptions
JAXRException:
If the JAXR provider encounters an internal error
setMinorVersionback to summary
public void setMinorVersion(int minorVersion) throws JAXRException

Sets the minor revision number for this version of the Versionable object.

Capability Level: 1
Parameters
minorVersion:int

the minor version number

Exceptions
JAXRException:
If the JAXR provider encounters an internal error
setUserVersionback to summary
public void setUserVersion(String userVersion) throws JAXRException

Sets the user specified revision number for this version of the Versionable object.

Capability Level: 1
Parameters
userVersion:String

the user-defined version number

Exceptions
JAXRException:
If the JAXR provider encounters an internal error