org.mmbase.util.transformers
Interface ConfigurableTransformer

All Superinterfaces:
Serializable, Transformer
All Known Implementing Classes:
Base64, Censor, ChunkedTransformer, ConfigurableReaderTransformer, ConfigurableStringTransformer, CP1252Surrogator, Hex, Javascript, Latin3Surrogator, LinkFinder, RegexpReplacer, ResourceBundleReplacer, Sql, Url, Xml, XmlField, XmlField

public interface ConfigurableTransformer
extends Transformer

Interface for transformations. The 'configurable' version can be configured with an integer, so the transformer can work in a limited number of ways. This is to avoid a wild growth of class, because you can influence the behaviour a bit by such a setting.

Since:
MMBase-1.7
Author:
Michiel Meeuwissen

Method Summary
 void configure(int to)
          If a transformer can handle more then one destination format, it can be configured with this.
 String getEncoding()
          Returns the encoding that is currently active
 Map<String,Config> transformers()
          Returns which transformations can be done by an object of this class.
 
Methods inherited from interface org.mmbase.util.transformers.Transformer
toString
 

Method Detail

configure

void configure(int to)
If a transformer can handle more then one destination format, it can be configured with this. There must be a default, since to can be null.


transformers

Map<String,Config> transformers()
Returns which transformations can be done by an object of this class.

Returns:
A Map with String Integer/Class pairs.

getEncoding

String getEncoding()
Returns the encoding that is currently active

Returns:
An String representing the coding that is currently used.


MMBase 2.0-SNAPSHOT - null