unbbayes.util.extension.dto.impl
Class Dto

java.lang.Object
  extended by unbbayes.util.extension.dto.impl.Dto
All Implemented Interfaces:
IDataTransferObject
Direct Known Subclasses:
NodeDto

public class Dto
extends Object
implements IDataTransferObject

Basic implementation of general data transfer object not using generics

Author:
Shou Matsumoto

Field Summary
protected  Map<String,Object> map
           
 
Constructor Summary
protected Dto()
          The main constructor is not public.
 
Method Summary
 Object getObject(String key)
          These methods can be used to store additional parameters into this DTO.
static Dto newInstance()
           
 void setObject(String key, Object object)
          These methods can be used to store additional parameters into this DTO.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map

protected Map<String,Object> map
Constructor Detail

Dto

protected Dto()
The main constructor is not public. Use newInstance() instead. This is kept protected in order to permit extension.

Method Detail

newInstance

public static Dto newInstance()

getObject

public Object getObject(String key)
Description copied from interface: IDataTransferObject
These methods can be used to store additional parameters into this DTO.

Specified by:
getObject in interface IDataTransferObject
Parameters:
key - : cannot be null
Returns:

setObject

public void setObject(String key,
                      Object object)
Description copied from interface: IDataTransferObject
These methods can be used to store additional parameters into this DTO.

Specified by:
setObject in interface IDataTransferObject


Copyright © 2001-2010 University of Brasilia - UnB. All Rights Reserved.