|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.n52.security.common.artifact.TransferableImpl
public class TransferableImpl
Default implementation of Transferable
.
Field Summary | |
---|---|
protected Map<String,TransferAttribute> |
m_attributes
Attributes associated with this instnace. |
protected Payload |
m_payload
Payload tranferred by this Transferable. |
Constructor Summary | |
---|---|
TransferableImpl()
|
Method Summary | |
---|---|
void |
addAttribute(TransferAttribute pAttribute)
Adds a 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()
Returns the Collection of keys, under which TransferAttributes. |
Collection<TransferAttribute> |
getAttributes()
Returns the Collection of TransferAttributes which stored in. |
Object |
getAttributeValue(String pName)
Gets the Value of the TransferAttribute which are stored under pName. |
Payload |
getPayload()
Gets the PayLoad of this Transferable. |
void |
removeAttribute(String name)
Removes an attribute from the transferable. |
void |
setPayload(Payload pPayload)
Sets the Payload of this Transferable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Payload m_payload
protected Map<String,TransferAttribute> m_attributes
Constructor Detail |
---|
public TransferableImpl()
Method Detail |
---|
public Payload getPayload()
Transferable
getPayload
in interface Transferable
public void setPayload(Payload pPayload)
Transferable
setPayload
in interface Transferable
public Collection<String> getAttributeNames()
Transferable
getAttributeNames
in interface Transferable
public Collection<TransferAttribute> getAttributes()
Transferable
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |