|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.richtext.Mmxf
Utilities related to the 'mmxf' rich field format of MMBase and bridge.
XmlField| Field Summary | |
static String |
DOCUMENTTYPE_PUBLIC
|
static String |
DOCUMENTTYPE_SYSTEM
|
static String |
NAMESPACE
|
| Constructor Summary | |
Mmxf()
|
|
| Method Summary | |
static Document |
createMmxfDocument()
Creates an (empty) Mmxf Document |
static Node |
createTree(Node node,
Node root,
RelationManager relationManager,
int depth,
String titleField,
String xmlField,
Writer feedBack)
Creates a a tree of Nodes from an mmxf DOM-Node. |
static Node |
createTree(Node node,
RelationManager relationManager,
int depth,
Writer buf)
Defaulting version of createTree(org.w3c.dom.Node, org.mmbase.bridge.Node, RelationManager, int, String, String, Writer). |
protected static void |
debug(Writer buf,
String message)
|
protected static void |
exception(Writer buf,
String message)
|
static void |
main(String[] argv)
main for testing purposes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String NAMESPACE
public static final String DOCUMENTTYPE_PUBLIC
public static final String DOCUMENTTYPE_SYSTEM
| Constructor Detail |
public Mmxf()
| Method Detail |
public static Node createTree(Node node,
RelationManager relationManager,
int depth,
Writer buf)
createTree(org.w3c.dom.Node, org.mmbase.bridge.Node, RelationManager, int, String, String, Writer).
protected static void exception(Writer buf,
String message)
protected static void debug(Writer buf,
String message)
public static Node createTree(Node node,
Node root,
RelationManager relationManager,
int depth,
String titleField,
String xmlField,
Writer feedBack)
XmlField for creating MMXF from ASCII.
If your MMXF is a Document, you must feed Document.getDocumentElement()
node - Source DOM-Node (it's node-name must be 'mmxf' or 'section').root - Root node (to be used in index relations) Can be null in which case it will be set equal to the first node created.relationManager - Describes the object model in which it must be dispatched. Source and
Destination must be of the same type, the relation must have a field 'pos'.depth - How far to dispatch. If -1 then it will be split up until no sections are
remaining.titleField - The h-tag of the sections are written to this field.xmlField - A new mmxf-document is created for the test and written to this field.feedBack - A string buffer for feedback (can be e.g. used for logging or presenting on import-jsp).public static Document createMmxfDocument()
public static void main(String[] argv)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||