|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.datatypes.processors.xml.Modes
XML-modes. XML-modes can be attributed to a Cloud (using Cloud.setProperty(java.lang.Object, java.lang.Object)
and Cloud.PROP_XMLMODE) and influence how an XML field must behave
itself. XML is all about flexibility of presentation, and this mode regulates that.
It boils down to the fact that 'processors' can be plugged on XML fields which can use
this 'mode' to behave differently.
Most modes will influence especially Node.setStringValue(String,
String) and Node.getStringValue(String). (depending on the
datatypes.xml), but some modes could also set/get XMLValue.
| Field Summary | |
static int |
DOCBOOK
Makes the field look like Docbook XML. |
static int |
FLAT
FLAT would return only the text from an XML field, so plain text without all XML markup. |
static int |
KUPU
KUPU-mode should trigger relations to be followed (on get) and be created (on set), and should give and receive XHTML which will be (on get) or was (on set) edited by the 'kupu' editor. |
static int |
PRETTYXML
PRETTYXML is like XML, but one could expect extra indentation and newlines to make the XML more readable for humans. |
static int |
WIKI
WIKI is a bit like FLAT, but effort is made to give a better representation of the XML in plain text. |
static int |
XML
The 'XML' mode should mean that the XML will be sent and expected as 'pure' as possible. |
| Constructor Summary | |
Modes()
|
|
| Method Summary | |
static int |
getMode(Object m)
Converts a String identifier to one of the constants in this class |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int XML
public static final int PRETTYXML
public static final int FLAT
public static final int WIKI
public static final int KUPU
public static final int DOCBOOK
| Constructor Detail |
public Modes()
| Method Detail |
public static int getMode(Object m)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||