|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Attachments
Attachments Represents a set of attachments
| Method Summary | ||
|---|---|---|
|
getAttachment(Class<T> type)
Get attachment |
|
Object |
getAttachment(String name)
Get attachment |
|
|
getAttachment(String name,
Class<T> expectedType)
Get attachment |
|
Map<String,Object> |
getAttachments()
Get all the attachments |
|
boolean |
hasAttachments()
Are there any attachments |
|
boolean |
isAttachmentPresent(Class<?> type)
Is the attachment present |
|
boolean |
isAttachmentPresent(String name)
Is the attachment present |
|
boolean |
isAttachmentPresent(String name,
Class<?> expectedType)
Is the attachment present |
|
| Method Detail |
|---|
Map<String,Object> getAttachments()
Object getAttachment(String name)
name - the name of the attachment
IllegalArgumentException - for a null name
<T> T getAttachment(String name,
Class<T> expectedType)
T - the expected typename - the name of the attachmentexpectedType - the expected type
IllegalArgumentException - for a null name or expectedType<T> T getAttachment(Class<T> type)
T - the expected typetype - the type
IllegalArgumentException - for a null name or typeboolean isAttachmentPresent(String name)
name - the name of the attachment
IllegalArgumentException - for a null name
boolean isAttachmentPresent(String name,
Class<?> expectedType)
name - the name of the attachmentexpectedType - the expected type
IllegalArgumentException - for a null name or expectedTypeboolean isAttachmentPresent(Class<?> type)
type - the type
IllegalArgumentException - for a null name or typeboolean hasAttachments()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||