|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISedManager<SedClass>
SED managers provide centralized management of SED instances. This interface is generic to support the transition from Iris v1.0 to v2.0, where SEDLib changes are expected but not yet designed. The parameter must be constrained to the class of SEDs that is managed by the SED Manager implementation. Iris Components should use a SED manager as the only means of keeping track of opened SEDs.
Method Summary | |
---|---|
void |
add(SedClass sed)
Add an SED to be managed by this manager. |
void |
addAttachment(SedClass sed,
String attachmentId,
Object attachment)
Components can attach any kind of objects to the SED, identifying them by a string. |
void |
addAttachment(String id,
String attachmentId,
Object attachment)
Add an attachment using the SED ID as a key |
boolean |
existsSed(SedClass sed)
Check whether an SED is managed by this SED Manager. |
boolean |
existsSed(String id)
Check whether an SED is managed by this SED Manager. |
Object |
getAttachment(SedClass sed,
String attachmentId)
Retrieve an attachment from a given SED. |
Object |
getAttachment(String id,
String attachmentId)
Retrieve an attachment from a given SED. |
IList<SedClass> |
getSeds()
Return the list of SEDs managed by this SED Manager. |
SedClass |
getSelected()
All the time a single SED can be considered as "selected". |
SedClass |
newSed(String id)
Create a new, empty managed SED. |
void |
remove(String id)
Remove an SED from this manager. |
void |
removeAttachment(SedClass sed,
String attachmentId)
Remove an attachment from a SED. |
void |
removeAttachment(String id,
String attachmentId)
Remove an attachment from an SED. |
void |
rename(SedClass sed,
String newId)
Rename a managed sed; |
void |
select(SedClass sed)
Set the selected SED. |
Method Detail |
---|
IList<SedClass> getSeds()
boolean existsSed(String id)
id
- The ID of the SED to be queried.
boolean existsSed(SedClass sed)
sed
- The SED instance to be queried.
void addAttachment(SedClass sed, String attachmentId, Object attachment)
sed
- The SED to which attach the new object.attachmentId
- The String ID of the attachment.attachment
- The actual object to be attached.void removeAttachment(SedClass sed, String attachmentId)
sed
- The SED to which the attachment has to be removed.attachmentId
- The ID of the attachment that has to be removed.void addAttachment(String id, String attachmentId, Object attachment)
id
- The ID of the SED to which the attachment has to be added.attachmentId
- The ID of the attachment.attachment
- The actual object to be attached.Object getAttachment(SedClass sed, String attachmentId)
sed
- The SED object from which the attachment has to be retrieved.attachmentId
- the ID of the attachment to be retrieved.
Object getAttachment(String id, String attachmentId)
sed
- The ID of the SED from which the attachment has to be retrieved.attachmentId
- the ID of the attachment to be retrieved.
void removeAttachment(String id, String attachmentId)
id
- The ID of the SED from which the attachment has to be removed.attachmentId
- The ID of the attachment to be removed.SedClass getSelected()
void add(SedClass sed)
sed
- The SED to add.SedClass newSed(String id)
id
- The ID of the new SED.
void remove(String id)
id
- The ID of the SED that has to be dropped.void select(SedClass sed)
sed
- The SED that has to be selected.void rename(SedClass sed, String newId)
sed
- The SED to be renamednewId
- the new SED name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |