org.mmbase.datatypes.processors
Class Readonly
java.lang.Object
org.mmbase.datatypes.processors.Readonly
- All Implemented Interfaces:
- Processor, Serializable
- public class Readonly
- extends Object
- implements Processor
This processor can be used as a 'set' processor on a field.
If the field is set an exception is thrown (in other words, the field is read only).
- Since:
- MMBase-1.8
- Version:
- $Id: Readonly.java,v 1.2 2005/12/10 14:33:36 michiel Exp $
- Author:
- Nico Klasens
- See Also:
- Serialized Form
|
Method Summary |
Object |
process(Node node,
Field field,
Object value)
You can plug this in on every set-action besides 'object' which will make this
field unmodifiable, except for set(Object) itself (which is never used from editors). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Readonly
public Readonly()
process
public Object process(Node node,
Field field,
Object value)
- You can plug this in on every set-action besides 'object' which will make this
field unmodifiable, except for set(Object) itself (which is never used from editors).
- Specified by:
process in interface Processor
- Parameters:
node - The node object for which the field must be transformed.field - The field which is set.value - The (new) field value.
MMBase build 1.8.1.20060716