org.n52.security.enforcement.artifact
Class TransferableImpl

java.lang.Object
  extended by org.n52.security.enforcement.artifact.TransferableImpl
All Implemented Interfaces:
Transferable

public class TransferableImpl
extends java.lang.Object
implements Transferable

Default implementation of Transferable.


Field Summary
protected  java.util.Map 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(java.lang.String pName)
          Gets the TransferAttribute which are stored under pName.
 java.util.Collection getAttributeNames()
          Returns the Collection of keys, under which TransferAttributes.
 java.util.Collection getAttributes()
          Returns the Collection of TransferAttributes which stored in.
 java.lang.Object getAttributeValue(java.lang.String pName)
          Gets the Value of the TransferAttribute which are stored under pName.
 Payload getPayload()
          Gets the PayLoad of this 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

m_payload

protected Payload m_payload
Payload tranferred by this Transferable.


m_attributes

protected java.util.Map m_attributes
Attributes associated with this instnace.

Constructor Detail

TransferableImpl

public TransferableImpl()
Method Detail

getPayload

public Payload getPayload()
Description copied from interface: Transferable
Gets the PayLoad of this Transferable.

Specified by:
getPayload in interface Transferable
Returns:

setPayload

public void setPayload(Payload pPayload)
Description copied from interface: Transferable
Sets the Payload of this Transferable.

Specified by:
setPayload in interface Transferable

getAttributeNames

public java.util.Collection getAttributeNames()
Description copied from interface: Transferable
Returns the Collection of keys, under which TransferAttributes. are stored

Specified by:
getAttributeNames in interface Transferable
Returns:

getAttributes

public java.util.Collection getAttributes()
Description copied from interface: Transferable
Returns the Collection of TransferAttributes which stored in. this Transferable

Specified by:
getAttributes in interface Transferable
Returns:

getAttribute

public TransferAttribute getAttribute(java.lang.String pName)
Description copied from interface: Transferable
Gets the TransferAttribute which are stored under pName.

Specified by:
getAttribute in interface Transferable
Returns:
null <==> (!getAttributeNames.contains(pKey) || pKey==null)

getAttributeValue

public java.lang.Object getAttributeValue(java.lang.String pName)
Description copied from interface: Transferable
Gets the Value of the TransferAttribute which are stored under pName.

Specified by:
getAttributeValue in interface Transferable
Returns:
null <==> (!getAttributeNames.contains(pName) || pName==null)
short for getAttribute(pName).getValue();

addAttribute

public void addAttribute(TransferAttribute pAttribute)
Description copied from interface: Transferable
Adds a Attribute to the Set and stores it under pAttribute.getName().

Specified by:
addAttribute in interface Transferable
Parameters:
pAttribute - The Attribute


Copyright © 2004-2009 52north.org. All Rights Reserved.