Versionable (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.xml.registry.infomodel Interface Versionable

所有已知子接口:
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.

作者:
Farrukh S. Najmi
另请参见:
RegistryEntry

方法摘要
 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.
 

方法详细信息

getMajorVersion

int getMajorVersion()
                    throws JAXRException
Gets the major revision number for this version of the Versionable object.

Capability Level: 1

返回:
the major version for this object
抛出异常:
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

参数:
majorVersion - the major version number
抛出异常:
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

返回:
the minor version for this object
抛出异常:
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

参数:
minorVersion - the minor version number
抛出异常:
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

返回:
the user-defined version number
抛出异常:
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

参数:
userVersion - the user-defined version number
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.