Package 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
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:
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a Slot to this object.voidaddSlots(Collection slots) Adds more Slots to this object.Gets the slot specified by slotName.getSlots()Returns the Slots associated with this object.voidremoveSlot(String slotName) Removes a Slot from this object.voidremoveSlots(Collection slotNames) Removes specified Slots from this object.
-
Method Details
-
addSlot
Adds a Slot to this object.- Capability Level: 0
- Parameters:
slot- the Slot object being added to this object- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
addSlots
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 Jakarta XML Registries provider encounters an internal error- See Also:
-
removeSlot
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 Jakarta XML Registries provider encounters an internal error
-
removeSlots
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 Jakarta XML Registries provider encounters an internal error- See Also:
-
getSlot
Gets the slot specified by slotName.- Capability Level: 0
- Parameters:
slotName- the name of the desired Slot object- Returns:
- Slot object retrieved
- Throws:
JAXRException- If the Jakarta XML Registries provider encounters an internal error
-
getSlots
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 Jakarta XML Registries provider encounters an internal error- See Also:
-