public abstract class AbstractElement extends Object implements XElement
XElement
.Constructor and Description |
---|
AbstractElement() |
Modifier and Type | Method and Description |
---|---|
<T> T |
getAttachment(AttachmentKey<T> key)
Get the attached object for a given key
|
<T> T |
putAttachment(AttachmentKey<T> key,
T value)
Attach an arbirtary object with this element.
|
<T> T |
removeAttachment(AttachmentKey<T> key)
Remove an attached object for a given key
|
public <T> T putAttachment(AttachmentKey<T> key, T value)
Attachable
putAttachment
in interface Attachable
key
- key for the attachmentpublic <T> T getAttachment(AttachmentKey<T> key)
Attachable
getAttachment
in interface Attachable
key
- key for the attachmentpublic <T> T removeAttachment(AttachmentKey<T> key)
Attachable
removeAttachment
in interface Attachable
key
- key for the attachmentCopyright © 2013 JBoss by Red Hat. All Rights Reserved.