org.mmbase.richtext.processors.xml
Class Kupu
java.lang.Object
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
|
Constructor Summary |
Kupu()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DIV_ID
final Pattern DIV_ID
Kupu
Kupu()
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