|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.xml.registry.infomodel Interface Versionable
- All Known Subinterfaces:
- ClassificationScheme, ExtrinsicObject, RegistryEntry, RegistryPackage, Service
public interface Versionable
Implemented by:
RegistryEntry
Versionable 接口定义能够创建自己的实例版本的那些类的共同行为。目前,所有 RegistryEntry 类都必须实现 Versionable 接口。
See also | javax.xml.registry.infomodel.RegistryEntry |
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 |
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 |
---|
public int
getMajorVersion() throws JAXRException
获取此 Versionable 对象版本的主版本号。
- 功能级别:1
return | 此对象的主版本 |
Throws | JAXRException: 如果 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 | 主版本号 |
Throws | JAXRException: 如果 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 | 此对象的次版本 |
Throws | JAXRException: 如果 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 | 次版本号 |
Throws | JAXRException: 如果 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 | 用户定义的版本号 |
Throws | JAXRException: 如果 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 | 用户定义的版本号 |
Throws | JAXRException: 如果 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!