org.mmbase.richtext.processors
Class GetIndex
java.lang.Object
org.mmbase.richtext.processors.GetIndex
- All Implemented Interfaces:
- Serializable, Processor
public class GetIndex
- extends Object
- implements Processor
This (get)processor can be used on a 'index' field. If the field is actually filled, it will
return that value. If the field is not filled, it will use the surrounding cloud, to return the
logical value. If e.g. the sibling node just 'before' this node has index '4' this one has '5'. Fields
using the processor implement automatic numbering of chapters and such.
- Since:
- MMBase-1.8
- Version:
- $Id: GetIndex.java 35335 2009-05-21 08:14:41Z michiel $
- Author:
- Michiel Meeuwissen
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLOUDPROP_INDEXROOT
public static final String CLOUDPROP_INDEXROOT
- See Also:
- Constant Field Values
GetIndex
public GetIndex()
process
public Object process(Node node,
Field field,
Object value)
- 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