org.mmbase.richtext.transformers
Class XmlField

java.lang.Object
  extended by org.mmbase.util.transformers.StringTransformer
      extended by org.mmbase.util.transformers.ConfigurableStringTransformer
          extended by org.mmbase.util.transformers.XmlField
              extended by org.mmbase.richtext.transformers.XmlField
All Implemented Interfaces:
Serializable, CharTransformer, ConfigurableTransformer, Transformer

public class XmlField
extends XmlField

Like XmlField but adds everything related to the MMXF doctype. This means basicly that it knows how to surround <mmxf />

Version:
$Id: XmlField.java 35335 2009-05-21 08:14:41Z michiel $
Author:
Michiel Meeuwissen
See Also:
Serialized Form
To Do:
THIS CLASS NEEDS A CONCEPT! It gets a bit messy.

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mmbase.util.transformers.XmlField
XmlField.FormatException
 
Field Summary
static int BODY
           
protected static boolean LISTS_INSIDE_P
           
protected static boolean LISTS_OUTSIDE_P
           
static int POOR
           
static int RICH
           
static int WIKI
           
static int WIKIBR
           
static int WIKIBRS
           
static int XML
           
static String XML_DOCTYPE
           
 
Fields inherited from class org.mmbase.util.transformers.XmlField
ASCII, HTML_BLOCK, HTML_BLOCK_BR, HTML_BLOCK_BR_NOSURROUNDINGP, HTML_BLOCK_LIST, HTML_BLOCK_LIST_BR, HTML_BLOCK_LIST_BR_NOSURROUNDINGP, HTML_BLOCK_LIST_NOSURROUNDINGP, HTML_BLOCK_NOSURROUNDINGP, HTML_INLINE, LEAVE_NEWLINES, NO_SECTIONS, NO_SURROUNDING_P, POORBODY, REMOVE_NEWLINES, RICHBODY, SECTIONS, SURROUNDING_P, XHTML
 
Fields inherited from class org.mmbase.util.transformers.ConfigurableStringTransformer
to
 
Constructor Summary
XmlField()
           
XmlField(int to)
           
 
Method Summary
 String getEncoding()
          Returns the encoding that is currently active
 String transform(String data)
           
 String transformBack(String r)
           
 Map transformers()
          Returns which transformations can be done by an object of this class.
static String wikiToXML(String data)
           
static String wikiToXML(String data, boolean leaveExtraNewLines, boolean placeListsInsideP)
           
 
Methods inherited from class org.mmbase.util.transformers.XmlField
handleFormat, handleNewlines, handleRich, handleRich, poorToHTMLInline, poorToXML, poorToXML, poorToXML, prepareData, prepareDataString, richToHTMLBlock, richToHTMLBlock, richToHTMLBlock, richToXML, richToXML, richToXML, validate, XSLTransform
 
Methods inherited from class org.mmbase.util.transformers.ConfigurableStringTransformer
configure, toString
 
Methods inherited from class org.mmbase.util.transformers.StringTransformer
transform, transform, transformBack, transformBack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mmbase.util.transformers.CharTransformer
transform, transform, transformBack, transformBack
 
Methods inherited from interface org.mmbase.util.transformers.Transformer
toString
 

Field Detail

RICH

public static final int RICH
See Also:
Constant Field Values

POOR

public static final int POOR
See Also:
Constant Field Values

BODY

public static final int BODY
See Also:
Constant Field Values

XML

public static final int XML
See Also:
Constant Field Values

WIKI

public static final int WIKI
See Also:
Constant Field Values

WIKIBRS

public static final int WIKIBRS
See Also:
Constant Field Values

WIKIBR

public static final int WIKIBR
See Also:
Constant Field Values

XML_DOCTYPE

public static final String XML_DOCTYPE
See Also:
Constant Field Values

LISTS_INSIDE_P

protected static final boolean LISTS_INSIDE_P
See Also:
Constant Field Values

LISTS_OUTSIDE_P

protected static final boolean LISTS_OUTSIDE_P
See Also:
Constant Field Values
Constructor Detail

XmlField

public XmlField()

XmlField

public XmlField(int to)
Method Detail

wikiToXML

public static String wikiToXML(String data,
                               boolean leaveExtraNewLines,
                               boolean placeListsInsideP)

wikiToXML

public static String wikiToXML(String data)

transformers

public Map transformers()
Description copied from interface: ConfigurableTransformer
Returns which transformations can be done by an object of this class.

Specified by:
transformers in interface ConfigurableTransformer
Overrides:
transformers in class XmlField
Returns:
A Map with String Integer/Class pairs.

transform

public String transform(String data)
Specified by:
transform in interface CharTransformer
Overrides:
transform in class XmlField

transformBack

public String transformBack(String r)
Specified by:
transformBack in interface CharTransformer
Overrides:
transformBack in class XmlField

getEncoding

public String getEncoding()
Description copied from interface: ConfigurableTransformer
Returns the encoding that is currently active

Specified by:
getEncoding in interface ConfigurableTransformer
Overrides:
getEncoding in class XmlField
Returns:
An String representing the coding that is currently used.


MMBase 2.0-SNAPSHOT - null