org.mmbase.richtext.processors.xml
Class MmxfGetString

java.lang.Object
  extended by org.mmbase.richtext.processors.xml.MmxfGetString
All Implemented Interfaces:
Serializable, Processor

public class MmxfGetString
extends Object
implements Processor

This class implements the `get' for `mmxf' fields.

Since:
MMBase-1.8
Version:
$Id: MmxfGetString.java 35335 2009-05-21 08:14:41Z michiel $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
static String MODE_BRS
           
static String MODE_LOADRELATED
           
static String MODE_LOADRELATIONS
           
static String MODE_SHOWBROKEN
           
static String MODE_UNDECORATEIDS
           
 
Constructor Summary
MmxfGetString()
           
 
Method Summary
static Document getDocument(Node node, Field field)
          Returns a 'objects' Document containing the node with the mmxf field plus all idrelated objects
(package private) static DocumentBuilder getDocumentBuilder()
           
protected static Generator getGenerator(Cloud cloud)
           
 Object process(Node node, Field field, Object value)
           
protected  void putParams(Map source, Map dest)
          Stupid Xalan can come with exceptions like: java.lang.IllegalArgumentException: The value of param org.mmbase.cloud.ignore-validation must be a valid Java Object If values are null This avoid setting values to null.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MODE_SHOWBROKEN

public static String MODE_SHOWBROKEN

MODE_LOADRELATIONS

public static String MODE_LOADRELATIONS

MODE_LOADRELATED

public static String MODE_LOADRELATED

MODE_UNDECORATEIDS

public static String MODE_UNDECORATEIDS

MODE_BRS

public static String MODE_BRS
Constructor Detail

MmxfGetString

public MmxfGetString()
Method Detail

getDocumentBuilder

static DocumentBuilder getDocumentBuilder()

getGenerator

protected static Generator getGenerator(Cloud cloud)

getDocument

public static Document getDocument(Node node,
                                   Field field)
Returns a 'objects' Document containing the node with the mmxf field plus all idrelated objects


putParams

protected void putParams(Map source,
                         Map dest)
Stupid Xalan can come with exceptions like: java.lang.IllegalArgumentException: The value of param org.mmbase.cloud.ignore-validation must be a valid Java Object If values are null This avoid setting values to null.


process

public Object process(Node node,
                      Field field,
                      Object value)
Specified by:
process in interface Processor
Parameters:
node - The node object for which the field must be transformed.
field - The field which is set.
value - The (new) field value.

toString

public String toString()
Overrides:
toString in class Object


MMBase 2.0-SNAPSHOT - null