org.mmbase.richtext.processors.xml
Class Kupu

java.lang.Object
  extended by org.mmbase.richtext.processors.xml.Kupu

 class Kupu
extends Object

This implements 'Kupu' Mode of MmxfSetString.

Version:
$Id: Kupu.java 35335 2009-05-21 08:14:41Z michiel $
Author:
Michiel Meeuwissen

Field Summary
(package private)  Pattern DIV_ID
           
 
Constructor Summary
Kupu()
           
 
Method Summary
protected  void cleanDanglingIdRels(NodeList clusterNodes, List<Map.Entry<String,Node>> usedNodes, String type)
          At the end of stage 2 of parse all relations are removed which are not used any more, using this function.
(package private)  Document parse(Node editedNode, Document document)
          Parses kupu-output for a certain node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIV_ID

final Pattern DIV_ID
Constructor Detail

Kupu

Kupu()
Method Detail

parse

Document parse(Node editedNode,
               Document document)
Parses kupu-output for a certain node. First it will translate the XHTML like kupu-output to something very similar to MMXF, while collecting the 'links'. Then in a second stage these links are compared with related nodes. So the side-effect may be removed, updated, and new related nodes.

Parameters:
editedNode - MMBase node containing the MMXF field.
document - XML received from Kupu
Returns:
An MMXF document.

cleanDanglingIdRels

protected void cleanDanglingIdRels(NodeList clusterNodes,
                                   List<Map.Entry<String,Node>> usedNodes,
                                   String type)
At the end of stage 2 of parse all relations are removed which are not used any more, using this function.



MMBase 2.0-SNAPSHOT - null