|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.xml.registry.infomodel Interface ExtensibleObject
- All Known Subinterfaces:
- Association, AuditableEvent, Classification, ClassificationScheme, Concept, ExternalIdentifier, ExternalLink, ExtrinsicObject, Organization, PostalAddress, RegistryEntry, RegistryObject, RegistryPackage, Service, ServiceBinding, SpecificationLink, User
public interface ExtensibleObject
Implemented by:
PostalAddress, RegistryObject
ExtensibleObject 可以利用动态添加的 Slot 扩展自身,这些 Slot 以实例为单位向对象添加任意属性。
See also | javax.xml.registry.infomodel.Slot |
An ExtensibleObject is one that allows itself to be extended by utilizing dynamically added Slots that add arbitrary attributes to the object on a per instance basis.
- Author:
- Farrukh S. Najmi
- See Also:
Slot
Method Summary | |
---|---|
void |
addSlot(Slot slot)
Adds a Slot to this object. |
void |
addSlots(Collection slots)
Adds more Slots to this object. |
Slot |
getSlot(String slotName)
Gets the slot specified by slotName. |
Collection |
getSlots()
Returns the Slots associated with this object. |
void |
removeSlot(String slotName)
Removes a Slot from this object. |
void |
removeSlots(Collection slotNames)
Removes specified Slots from this object. |
Method Detail |
---|
public void
addSlot(Slot slot) throws JAXRException
将 Slot 添加到此对象。
- 功能级别:0
slot | 将添加到此对象的 Slot 对象 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
addSlot
void addSlot(Slot slot) throws JAXRException
- Adds a Slot to this object.
- Capability Level: 0
- Parameters:
slot
- the Slot object being added to this object- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
addSlots(java.util.Collection<E> slots) throws JAXRException
将多个 Slot 添加到此对象。
将多个 Slot 添加到此对象。
- 功能级别:0
slots | 将添加到此对象的 Slot 对象所组成的 Collection | |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 | |
supplierCardinality | 0..* | |
associates | <{Slot}> | |
undirected | ||
supplierRole |
| |
link |
|
addSlots
void addSlots(Collection slots) throws JAXRException
- Adds more Slots to this object.
- Capability Level: 0
- Parameters:
slots
- the Collection of Slot objects being added to this object- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
removeSlot(String slotName) throws JAXRException
从此对象中移除一个 Slot。Slot 通过其名称识别。
- 功能级别:0
slotName | 将从此对象中移除的 Slot 对象的名称 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
removeSlot
void removeSlot(String slotName) throws JAXRException
- Removes a Slot from this object. The Slot is identified by its name.
- Capability Level: 0
- Parameters:
slotName
- the name for the Slot object being removed from this object- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
removeSlots(java.util.Collection<E> slotNames) throws JAXRException
从此对象中移除指定的 Slot。Slot 通过其名称识别。
从此对象中移除指定的 Slot。Slot 通过其名称识别。
- 功能级别:0
slotNames | 将从此对象中移除的 Slot 对象的名称所组成的 Collection。必须是 String 所组成的 Collection | |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 | |
supplierCardinality | 0..* | |
associates | <{Slot}> | |
undirected | ||
supplierRole |
| |
link |
|
removeSlots
void removeSlots(Collection slotNames) throws JAXRException
- Removes specified Slots from this object. The Slots are identified by its name.
- Capability Level: 0
- Parameters:
slotNames
- the Collection of names for Slot objects being removed from this object. Must be a Collection of Strings- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public Slot
getSlot(String slotName) throws JAXRException
获取用 slotName 指定的 slot。
- 功能级别:0
slotName | 所需 Slot 对象的名称 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getSlot
Slot getSlot(String slotName) throws JAXRException
- Gets the slot specified by slotName.
- Capability Level: 0
- Parameters:
slotName
- the name of the desired Slot object- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public java.util.Collection<E>
getSlots() throws JAXRException
返回与此对象关联的 Slot。
- 功能级别:0
return | Slot 实例所组成的 Collection。Collection 可以为空,但不能为 null。 | |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 | |
supplierCardinality | 0..* | |
associates | <{Slot}> | |
undirected | ||
supplierRole |
| |
link |
|
getSlots
Collection getSlots() throws JAXRException
- Returns the Slots associated with this object.
- Capability Level: 0
- Returns:
- Collection of Slot instances. The Collection may be empty but not null.
- 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 : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!