org.xwiki.rendering.internal.transformation.icon
Class IconTransformation

java.lang.Object
  extended by org.xwiki.rendering.transformation.AbstractTransformation
      extended by org.xwiki.rendering.internal.transformation.icon.IconTransformation
All Implemented Interfaces:
java.lang.Comparable<Transformation>, org.xwiki.component.phase.Initializable, Transformation

@Component
@Named(value="icon")
@Singleton
public class IconTransformation
extends AbstractTransformation
implements org.xwiki.component.phase.Initializable

Transforms some special characters representing icons into images. For example transforms :) characters into a smiley.

Since:
2.6RC1
Version:
$Id$

Constructor Summary
IconTransformation()
           
 
Method Summary
 void initialize()
          
 void transform(Block source, TransformationContext context)
          
 
Methods inherited from class org.xwiki.rendering.transformation.AbstractTransformation
compareTo, getPriority, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IconTransformation

public IconTransformation()
Method Detail

initialize

public void initialize()
                throws org.xwiki.component.phase.InitializationException

Specified by:
initialize in interface org.xwiki.component.phase.Initializable
Throws:
org.xwiki.component.phase.InitializationException
See Also:
Initializable.initialize()

transform

public void transform(Block source,
                      TransformationContext context)
               throws TransformationException

Specified by:
transform in interface Transformation
Throws:
TransformationException
See Also:
Transformation.transform(Block, TransformationContext)


Copyright © 2004-2011 XWiki. All Rights Reserved.