org.mmbase.datatypes.processors
Class Readonly
java.lang.Object
org.mmbase.datatypes.processors.Readonly
- All Implemented Interfaces:
- Serializable, Processor
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). In the builder XML you should also add the
'readonly' attribute on the field, to indicate to generic editors
that this field should not be presented editable.
- Since:
- MMBase-1.8
- Version:
- $Id: Readonly.java 41987 2010-04-20 16:14:35Z michiel $
- 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 2.0-SNAPSHOT - null