org.mmbase.richtext.transformers
Class XmlField
java.lang.Object
org.mmbase.util.transformers.StringTransformer
org.mmbase.util.transformers.ConfigurableStringTransformer
org.mmbase.util.transformers.XmlField
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.
| 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 |
| 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 |
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
XmlField
public XmlField()
XmlField
public XmlField(int to)
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