org.mmbase.richtext.transformers
Class XmlField

java.lang.Object
  extended byorg.mmbase.util.transformers.StringTransformer
      extended byorg.mmbase.util.transformers.ConfigurableStringTransformer
          extended byorg.mmbase.util.transformers.XmlField
              extended byorg.mmbase.richtext.transformers.XmlField
All Implemented Interfaces:
CharTransformer, ConfigurableTransformer, Serializable, 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,v 1.2 2006/01/02 16:57:46 michiel Exp $
Author:
Michiel Meeuwissen
See Also:
Serialized Form
To Do:
THIS CLASS NEEDS A CONCEPT! It gets a bit messy.

Nested Class Summary
 
Nested classes inherited from class org.mmbase.util.transformers.XmlField
XmlField.FormatException
 
Field Summary
static int BODY
           
static int POOR
           
static int RICH
           
static int WIKI
           
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, POORBODY, RICHBODY, 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)
           
 
Methods inherited from class org.mmbase.util.transformers.XmlField
handleFormat, handleRich, handleRich, poorToHTMLInline, poorToXML, poorToXML, prepareData, prepareDataString, richToHTMLBlock, richToHTMLBlock, richToHTMLBlock, 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

XML_DOCTYPE

public static final String XML_DOCTYPE
See Also:
Constant Field Values
Constructor Detail

XmlField

public XmlField()

XmlField

public XmlField(int to)
Method Detail

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

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


MMBase build 1.8.1.20060716