| Modifier and Type | Field and Description |
|---|---|
static String |
DOCUMENTTYPE_PUBLIC |
static String |
DOCUMENTTYPE_SYSTEM |
static String |
NAMESPACE |
| Constructor and Description |
|---|
Mmxf() |
| Modifier and Type | Method and Description |
|---|---|
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)
|
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.
|
public static final String NAMESPACE
public static final String DOCUMENTTYPE_PUBLIC
public static final String DOCUMENTTYPE_SYSTEM
public static Node createTree(Node node, RelationManager relationManager, int depth, Writer buf)
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)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}