RegistryEntry (Java EE 5)

Java EE API


javax.xml.registry.infomodel Interface RegistryEntry

All Superinterfaces:
ExtensibleObject, RegistryObject, Versionable
All Known Subinterfaces:
ClassificationScheme, ExtrinsicObject, RegistryPackage, Service

public interface RegistryEntry
extends RegistryObject, Versionable


RegistryEntry 接口是模型中各个接口的基本接口,除了 RegistryObject 接口提供的元数据以外,该模型还需要其他元数据。模型中的少数接口表示注册表中的高级(粗粒度)对象,该注册表需要其他元数据,比如版本信息和指示稳定性和易失性的信息。
英文文档:

The RegistryEntry interface is a base interface for interfaces in the model that require additional metadata beyond what is provided by the RegistryObject interface. A few interfaces in the model represent high level (coarse grain) objects in the registry that require additional metadata such as version information and indication of the stability or volatility of the information.

Author:
Farrukh S. Najmi

Field Summary
static int
static int
static int
static int
static int
static int
static int
 
Method Summary
 Date
 int
 int
 void
 void
 
Methods inherited from interface javax.xml.registry.infomodel.RegistryObject
 
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject
 
Methods inherited from interface javax.xml.registry.infomodel.Versionable
 

Field Detail

英文文档:

STATUS_SUBMITTED

static final int STATUS_SUBMITTED
RegistryEntry has been submitted.

See Also:
Constant Field Values


英文文档:

STATUS_APPROVED

static final int STATUS_APPROVED
RegistryEntry has been submitted and approved.

See Also:
Constant Field Values


英文文档:

STATUS_DEPRECATED

static final int STATUS_DEPRECATED
RegistryEntry has been deprecated.

See Also:
Constant Field Values


英文文档:

STATUS_WITHDRAWN

static final int STATUS_WITHDRAWN
RegistryEntry has been withdrawn by the submitter.

See Also:
Constant Field Values


英文文档:

STABILITY_DYNAMIC

static final int STABILITY_DYNAMIC
RegistryEntry may change at any time.

See Also:
Constant Field Values


英文文档:

STABILITY_DYNAMIC_COMPATIBLE

static final int STABILITY_DYNAMIC_COMPATIBLE
RegistryEntry may change at any time, however the changes will be backward compatible.

See Also:
Constant Field Values


英文文档:

STABILITY_STATIC

static final int STABILITY_STATIC
RegistryEntry will not change.

See Also:
Constant Field Values

Method Detail

public int getStatus() throws JAXRException
获取注册表中 RegistryEntry 的生命周期状态。

功能级别:1
在更低的功能级别中,此方法必须抛出 UnsupportedCapabilityException。
See
RegistryEntry#STATUS_SUBMITTED
return 整数枚举形式的生命周期状态
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

getStatus

int getStatus()
              throws JAXRException
Gets the life cycle status of the RegistryEntry within the registry.

Capability Level: 1
This method must throw UnsupportedCapabilityException in lower capability levels.

Returns:
the life cycle status as an integer enumeration
Throws:
JAXRException - If the JAXR provider encounters an internal error

public int getStability() throws JAXRException
获取 Registry 中 RegistryEntry 的稳定性指示符。稳定性指示符由提交者提供,它指示内容的稳定性级别。

功能级别:1
在更低的功能级别中,此方法必须抛出 UnsupportedCapabilityException。
return 整数枚举形式的稳定性指示符
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
See also STABILITY_DYNAMIC
英文文档:

getStability

int getStability()
                 throws JAXRException
Gets the stability indicator for the RegistryEntry within the Registry. The stability indicator is provided by the submitter as an indication of the level of stability for the content.

Capability Level: 1
This method must throw UnsupportedCapabilityException in lower capability levels.

Returns:
the stability indicator as an integer enumeration
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
STABILITY_DYNAMIC

public void setStability(int stability) throws JAXRException
设置 RegistryEntry 的稳定性指示符。

功能级别:1
在更低的功能级别中,此方法必须抛出 UnsupportedCapabilityException。
stability 稳定性指示符
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

setStability

void setStability(int stability)
                  throws JAXRException
Sets the stability indicator for the RegistryEntry.

Capability Level: 1
This method must throw UnsupportedCapabilityException in lower capability levels.

Parameters:
stability - the stability indicator
Throws:
JAXRException - If the JAXR provider encounters an internal error

public java.util.Date getExpiration() throws JAXRException
获取 Registry 中 RegistryEntry 的 expirationDate 属性。此属性对稳定性属性提供的稳定性指示定义了一个时间限制。到达 expirationDate 时间后,生效的稳定性属性变为 STABILITY_DYNAMIC,这意味着内容可能在任意时间以任意方式发生更改。null 值意味着稳定性属性没有到期时间。

功能级别:1
在更低的功能级别中,此方法必须抛出 UnsupportedCapabilityException。
return 稳定性指示符的到期 Date
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

getExpiration

Date getExpiration()
                   throws JAXRException
Gets expirationDate attribute of the RegistryEntry within the Registry. This attribute defines a time limit upon the stability indication provided by the stability attribute. Once the expirationDate has been reached the stability attribute in effect becomes STABILITY_DYNAMIC implying that content can change at any time and in any manner. A null value implies that there is no expiration on stability attribute.

Capability Level: 1
This method must throw UnsupportedCapabilityException in lower capability levels.

Returns:
the expiration Date for the stability indicator
Throws:
JAXRException - If the JAXR provider encounters an internal error

public void setExpiration(java.util.Date expiration) throws JAXRException
设置 expirationDate。

功能级别:1
expiration 稳定性指示符的到期 Date
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

setExpiration

void setExpiration(Date expiration)
                   throws JAXRException
Sets the expirationDate.

Capability Level: 1

Parameters:
expiration - the expiration Date for the stability indicator
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 : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!