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)
AttachableputAttachment in interface Attachablekey - key for the attachmentpublic <T> T getAttachment(AttachmentKey<T> key)
AttachablegetAttachment in interface Attachablekey - key for the attachmentpublic <T> T removeAttachment(AttachmentKey<T> key)
AttachableremoveAttachment in interface Attachablekey - key for the attachmentCopyright © 2016 JBoss by Red Hat. All rights reserved.