y.base
Interface DataAcceptor

All Known Subinterfaces:
EdgeMap, NodeMap
All Known Implementing Classes:
DataAcceptorAdapter, EdgeMapAdapter, NodeMapAdapter

public interface DataAcceptor

A general interface for setting data. A data acceptor associates data with data holders. It constitutes a write only view on particular data.


Method Summary
 void set(Object dataHolder, Object value)
          Sets an object value associated with the given data holder.
 void setBool(Object dataHolder, boolean value)
          Sets a boolean value associated with the given data holder.
 void setDouble(Object dataHolder, double value)
          Sets a double value associated with the given data holder.
 void setInt(Object dataHolder, int value)
          Sets an integer value associated with the given data holder.
 

Method Detail

set

public void set(Object dataHolder,
                Object value)
Sets an object value associated with the given data holder. This method may throw an UnsupportedOperationException.


setInt

public void setInt(Object dataHolder,
                   int value)
Sets an integer value associated with the given data holder. This method may throw an UnsupportedOperationException.


setDouble

public void setDouble(Object dataHolder,
                      double value)
Sets a double value associated with the given data holder. This method may throw an UnsupportedOperationException.


setBool

public void setBool(Object dataHolder,
                    boolean value)
Sets a boolean value associated with the given data holder. This method may throw an UnsupportedOperationException.


© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003