org.mmbase.richtext.processors.xml
Class Wiki
java.lang.Object
org.mmbase.richtext.processors.xml.Wiki
class Wiki
- extends Object
Setting like wiki. A property of wiki-editing is, that you cannot point more then one idrel to
the same anchor. Depending on this, the id's of the idrel can be left unfilled, and in the
wiki-text, a user can simple refer to the node-number (or perhaps in later refinement some other
id of the node).
- Version:
- $Id: Wiki.java 35335 2009-05-21 08:14:41Z michiel $
- Author:
- Michiel Meeuwissen
- To Do:
- something goes wrong if same node relation multiple times.
|
Constructor Summary |
Wiki()
|
|
Method Summary |
(package private) String |
decorateId(String id,
String fieldName)
Prefixes a node number, because the a node number is not a convenient id. |
(package private) Node |
findById(Element a,
NodeList links,
String fieldName,
Set<String> usedIds)
Searches in the existsing relations for a relation with the
given id |
(package private) String |
generateId(String fieldName,
String nodeNumber,
Set<String> usedIds)
|
(package private) Node |
getNode(Cloud cloud,
String id,
String fieldName)
Simply considers the id the node-number, but this could be sophisitcated on. |
(package private) String |
idToNodeNumber(String id,
String fieldName)
|
(package private) Document |
parse(Node editedNode,
Field field,
Document source)
|
(package private) String |
prefix(String fieldName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DECORATED
static final Pattern DECORATED
Wiki
Wiki()
findById
Node findById(Element a,
NodeList links,
String fieldName,
Set<String> usedIds)
- Searches in the existsing relations for a relation with the
given id
- Parameters:
a - The anchor which we are trying to matchlinks - List of alreayd existing relation objectsid - (of a)
prefix
String prefix(String fieldName)
generateId
String generateId(String fieldName,
String nodeNumber,
Set<String> usedIds)
idToNodeNumber
String idToNodeNumber(String id,
String fieldName)
decorateId
String decorateId(String id,
String fieldName)
- Prefixes a node number, because the a node number is not a convenient id. Numbers are already
used in the o: xml. (The _same_ numbers).
getNode
Node getNode(Cloud cloud,
String id,
String fieldName)
- Simply considers the id the node-number, but this could be sophisitcated on.
parse
Document parse(Node editedNode,
Field field,
Document source)
- Parameters:
editedNode - Node that is edited. Anchors will be either changed, or idrels will be
created/modified to be in ordersource -
MMBase 2.0-SNAPSHOT - null