org.n52.security.common.protocol.artifact
Class TransferableImpl

java.lang.Object
  extended byorg.n52.security.common.protocol.artifact.TransferableImpl
All Implemented Interfaces:
Transferable

public class TransferableImpl
extends java.lang.Object
implements Transferable

Tasks of Class TransferableImpl:

  1. Implements Transferable

Author:
reiprecht
See Also:
Transferable

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

mPayload

protected Payload mPayload

mAttributes

protected java.util.Map mAttributes
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 wich 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 wich 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 wich are stored under pName

Specified by:
getAttribute in interface Transferable
Parameters:
pName -
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 wich are stored under pName

Specified by:
getAttributeValue in interface Transferable
Parameters:
pName -
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-2007 52 North. All Rights Reserved.