|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 的类型和种类。
See also | javax.xml.registry.infomodel.ExtensibleObject |
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 |
ADDRESS_LINES_SLOT
Name for pre-defined Slot used in PostalAddress by JAXR UDDI provider. |
static String |
AUTHORIZED_NAME_SLOT
Name for pre-defined Slot used in Organization and ClassificationScheme by JAXR UDDI provider. |
static String |
OPERATOR_SLOT
Name for pre-defined Slot used in Organization and ClassificationScheme by JAXR UDDI provider. |
static String |
SORT_CODE_SLOT
Name for pre-defined Slot used in PostalAddress by JAXR UDDI provider. |
Method Summary | |
---|---|
String |
getName()
Gets the name for this Slot. |
String |
getSlotType()
Gets the slotType for this Slot. |
Collection |
getValues()
Gets the values for this Slot. |
void |
setName(String name)
Sets the name for this Slot. |
void |
setSlotType(String slotType)
Sets the slotType for this Slot. |
void |
setValues(Collection values)
Sets the values for this Slot. |
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 | 名称 |
Throws | JAXRException: 如果 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 | 名称 |
Throws | JAXRException: 如果 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 类型 |
Throws | JAXRException: 如果 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 类型 |
Throws | JAXRException: 如果 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。 |
Throws | JAXRException: 如果 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 的值。
设置此 Slot 的值。
- 功能级别:0
values | 此 Slot 的值 |
Throws | JAXRException: 如果 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
|
|||||||||
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 : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!