Versionable (Java EE 5)

Java EE API


javax.xml.registry.infomodel Interface Versionable

All Known Subinterfaces:
ClassificationScheme, ExtrinsicObject, RegistryEntry, RegistryPackage, Service

public interface Versionable

Implemented by: RegistryEntry

Versionable 接口定义能够创建自己的实例版本的那些类的共同行为。目前,所有 RegistryEntry 类都必须实现 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
 int
 int
 String
 void
 void
 void
 

Method Detail

public int getMajorVersion() throws JAXRException
获取此 Versionable 对象版本的主版本号。

功能级别:1
return 此对象的主版本
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

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

public void setMajorVersion(int majorVersion) throws JAXRException
设置此 Versionable 对象版本的主版本号。

功能级别:1
majorVersion 主版本号
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

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

public int getMinorVersion() throws JAXRException
获取此 Versionable 对象版本的次版本号。

功能级别:1
return 此对象的次版本
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

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

public void setMinorVersion(int minorVersion) throws JAXRException
设置此 Versionable 对象版本的次版本号。

功能级别:1
minorVersion 次版本号
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

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

public String getUserVersion() throws JAXRException
获取此 Versionable 对象版本的用户定义的版本号。

功能级别:1
return 用户定义的版本号
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

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

public void setUserVersion(String userVersion) throws JAXRException
设置此 Versionable 对象版本的用户定义的版本号。

功能级别:1
userVersion 用户定义的版本号
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

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


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!