org.n52.security.common.protocol.artifact
Interface Transferable

All Known Implementing Classes:
TransferableImpl

public interface Transferable

Tasks of Interface Transferable:

  1. A Transferable is a Object, wich is Transported between the Backend and Frontend of the System
  2. It holds a PayLoad wich could be writen to different DCPs
  3. It holds a Set of TransferAttributes, wich describe the special aspects of the payload, or holds other special Information for different DCPs

Author:
reiprecht

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
 

Method Detail

getPayload

public Payload getPayload()
Gets the PayLoad of this Transferable

Returns:

setPayload

public void setPayload(Payload pPayload)
Sets the Payload of this Transferable


getAttributeNames

public java.util.Collection getAttributeNames()
Returns the Collection of keys, under wich TransferAttributes are stored

Returns:

getAttributes

public java.util.Collection getAttributes()
Returns the Collection of TransferAttributes wich stored in this Transferable

Returns:

getAttribute

public TransferAttribute getAttribute(java.lang.String pName)
Gets the TransferAttribute wich are stored under pName

Parameters:
pName -
Returns:
null <==> (!getAttributeNames.contains(pKey) || pKey==null)

getAttributeValue

public java.lang.Object getAttributeValue(java.lang.String pName)
Gets the Value of the TransferAttribute wich are stored under pName

Parameters:
pName -
Returns:
null <==> (!getAttributeNames.contains(pName) || pName==null)
short for getAttribute(pName).getValue();

addAttribute

public void addAttribute(TransferAttribute pAttribute)
Adds a Attribute to the Set and stores it under pAttribute.getName()

Parameters:
pAttribute - The Attribute


Copyright © 2004-2007 52 North. All Rights Reserved.