public class TransferableImpl extends Object implements Transferable
Transferable
.Modifier and Type | Field and Description |
---|---|
protected Map<String,TransferAttribute> |
m_attributes
Attributes associated with this instnace.
|
protected Payload |
m_payload
Payload tranferred by this Transferable.
|
Constructor and Description |
---|
TransferableImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(TransferAttribute pAttribute)
Adds an attribute to the set and stores it under pAttribute.getName().
|
TransferAttribute |
getAttribute(String pName)
Gets the TransferAttribute which are stored under pName.
|
Collection<String> |
getAttributeNames() |
Collection<TransferAttribute> |
getAttributes() |
Object |
getAttributeValue(String pName)
Gets the value of the TransferAttribute which are stored under pName.
|
Payload |
getPayload() |
void |
removeAttribute(String name)
Removes an attribute from the transferable.
|
void |
setPayload(Payload pPayload) |
protected Payload m_payload
protected Map<String,TransferAttribute> m_attributes
public Payload getPayload()
getPayload
in interface Transferable
public void setPayload(Payload pPayload)
setPayload
in interface Transferable
public Collection<String> getAttributeNames()
getAttributeNames
in interface Transferable
public Collection<TransferAttribute> getAttributes()
getAttributes
in interface Transferable
public TransferAttribute getAttribute(String pName)
Transferable
getAttribute
in interface Transferable
public Object getAttributeValue(String pName)
Transferable
getAttributeValue
in interface Transferable
public void addAttribute(TransferAttribute pAttribute)
Transferable
addAttribute
in interface Transferable
pAttribute
- The Attributepublic void removeAttribute(String name)
Transferable
removeAttribute
in interface Transferable
name
- the attribute name.Copyright © 2004–2018 52north.org. All rights reserved.