com.rubecula.util
Interface Replaceable

All Superinterfaces:
Presentable
All Known Implementing Classes:
Expression, Operator

public interface Replaceable
extends Presentable

Replaceable: a generic interface which supports the replacement or subsitution of one object by another, typically in some context.

Copyright: Copyright (c) 2003

Company: Rubecula Software

Since:
V_0_3
Version:
$Revision: 1.2 $
Author:
Robin Hillyard

Method Summary
 Presentable getValue(java.lang.Object context)
          This method takes this Replaceable and returns its logical equivalent as defined by the context.
 
Methods inherited from interface com.rubecula.util.Presentable
getType, makePresentableInstance, present
 

Method Detail

getValue

public Presentable getValue(java.lang.Object context)
                     throws PresentableException
This method takes this Replaceable and returns its logical equivalent as defined by the context.

Parameters:
context - an Object which defines the context for the substitution, for example, an operator or variable for a Mill might be evaluated in the context of a current Mill and the result would be the replacement.
Returns:
the value yielded by evaluating this object in context.
Throws:
PresentableException