Slot (Java EE 5)

Java EE API


javax.xml.registry.infomodel Interface Slot


public interface Slot


Slot 实例提供向 RegistryObject 实例添加任意属性的动态方式。这种将属性动态添加到 RegistryObject 实例的能力支持注册信息模型 (Registry Information Model) 中的可扩展性。

RegistryObject 可以包含 0 个或多个 Slot。一个 Slot 由一个名称、一个 slotType 和一个值 Collection 组成。Slot 的名称在 RegistryObject 实例中对于本地是唯一的。类似地,Slot 的值在 Slot 实例中对于本地也是唯一的。因为 Slot 表示一个可扩展属性,该属性的值可以是一个 Collection,所以 Slot 可以包含一个值所组成的 Collection,而不是单个值。slotType 属性可以有选择地指定 Slot 的类型和种类。

英文文档:

Slot instances provide a dynamic way to add arbitrary attributes to RegistryObject instances. This ability to add attributes dynamically to RegistryObject instances enables extensibility within the Registry Information Model.

A RegistryObject may have 0 or more Slots. A slot is composed of a name, a slotType and a collection of values. The name of a slot is locally unique within the RegistryObject instance. Similarly, the value of a Slot is locally unique within a slot instance. Since a Slot represents an extensible attribute whose value may be a collection, a Slot is allowed to have a collection of values rather than a single value. The slotType attribute may optionally specify a type or category for the slot.

Author:
Farrukh S. Najmi
See Also:
ExtensibleObject

Field Summary
static String
static String
static String
static String
 
Method Summary
 String
 String
 Collection
 void
 void
 void
 

Field Detail

英文文档:

SORT_CODE_SLOT

static final String SORT_CODE_SLOT
Name for pre-defined Slot used in PostalAddress by JAXR UDDI provider.

See Also:
Constant Field Values


英文文档:

ADDRESS_LINES_SLOT

static final String ADDRESS_LINES_SLOT
Name for pre-defined Slot used in PostalAddress by JAXR UDDI provider.

See Also:
Constant Field Values


英文文档:

AUTHORIZED_NAME_SLOT

static final String AUTHORIZED_NAME_SLOT
Name for pre-defined Slot used in Organization and ClassificationScheme by JAXR UDDI provider.

See Also:
Constant Field Values


英文文档:

OPERATOR_SLOT

static final String OPERATOR_SLOT
Name for pre-defined Slot used in Organization and ClassificationScheme by JAXR UDDI provider.

See Also:
Constant Field Values

Method Detail

public String getName() throws JAXRException
获取此 Slot 的名称。默认值为 NULL 字符串。

功能级别:0
return 名称
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

getName

String getName()
               throws JAXRException
Gets the name for this Slot. Default is a NULL String.

Capability Level: 0

Returns:
the name
Throws:
JAXRException - If the JAXR provider encounters an internal error

public void setName(String name) throws JAXRException
设置此 Slot 的名称。默认值为 NULL 字符串。

功能级别:0
name 名称
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

setName

void setName(String name)
             throws JAXRException
Sets the name for this Slot. Default is a NULL String.

Capability Level: 0

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

public String getSlotType() throws JAXRException
获取此 Slot 的 slotType。默认值为 NULL 字符串。

功能级别:0
return 任意 String 形式的 Slot 类型
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

getSlotType

String getSlotType()
                   throws JAXRException
Gets the slotType for this Slot. Default is a NULL String.

Capability Level: 0

Returns:
the slot type which is an arbitrary String
Throws:
JAXRException - If the JAXR provider encounters an internal error

public void setSlotType(String slotType) throws JAXRException
设置此 Slot 的 slotType。

功能级别:0
slotType 任意 String 形式的 Slot 类型
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

setSlotType

void setSlotType(String slotType)
                 throws JAXRException
Sets the slotType for this Slot.

Capability Level: 0

Parameters:
slotType - the slot type which is an arbitrary String
Throws:
JAXRException - If the JAXR provider encounters an internal error

public java.util.Collection<E> getValues() throws JAXRException
获取此 Slot 的值。

功能级别:0
return 表示此 Slot 的值的 String 实例所组成的 Collection。Collection 可以为空,但不能为 null。
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
See also java.lang.String
英文文档:

getValues

Collection getValues()
                     throws JAXRException
Gets the values for this Slot.

Capability Level: 0

Returns:
Collection of String instances representing the values for this Slot. The Collection may be empty but not null.
Throws:
JAXRException - If the JAXR provider encounters an internal error
See Also:
String

public void setValues(java.util.Collection<E> values) throws JAXRException
设置此 Slot 的值。

功能级别:0
values 此 Slot 的值
ThrowsJAXRException: 如果 JAXR 提供者遇到内部错误
英文文档:

setValues

void setValues(Collection values)
               throws JAXRException
Sets the values for this Slot.

Capability Level: 0

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