org.xwiki.rendering.internal.macro.html
Class HTMLMacro

java.lang.Object
  extended by org.xwiki.component.logging.AbstractLogEnabled
      extended by org.xwiki.rendering.macro.AbstractMacro<HTMLMacroParameters>
          extended by org.xwiki.rendering.internal.macro.html.HTMLMacro
All Implemented Interfaces:
java.lang.Comparable<Macro<?>>, org.xwiki.component.phase.Initializable, org.xwiki.component.phase.LogEnabled, Macro<HTMLMacroParameters>

@Component(value="html")
public class HTMLMacro
extends AbstractMacro<HTMLMacroParameters>

Allows inserting HTML and XHTML in wiki pages. This macro also accepts wiki syntax alongside (X)HTML elements (it's also possible to disable this feature using a macro parameter). When wiki syntax is used inside XML elements, the leading and trailing spaces and newlines are stripped.

Since:
1.6M1
Version:
$Id$

Field Summary
 
Fields inherited from class org.xwiki.rendering.macro.AbstractMacro
beanManager, DEFAULT_CATEGORY_CONTENT, DEFAULT_CATEGORY_DEVELOPMENT, DEFAULT_CATEGORY_FORMATTING, DEFAULT_CATEGORY_NAVIGATION
 
Constructor Summary
HTMLMacro()
          Create and initialize the descriptor of the macro.
 
Method Summary
 java.util.List<Block> execute(HTMLMacroParameters parameters, java.lang.String content, MacroTransformationContext context)
          
 boolean supportsInlineMode()
          
 
Methods inherited from class org.xwiki.rendering.macro.AbstractMacro
compareTo, getDescriptor, getPriority, initialize, setDefaultCategory, setDescriptor, setPriority
 
Methods inherited from class org.xwiki.component.logging.AbstractLogEnabled
enableLogging, getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLMacro

public HTMLMacro()
Create and initialize the descriptor of the macro.

Method Detail

supportsInlineMode

public boolean supportsInlineMode()

See Also:
Macro.supportsInlineMode()

execute

public java.util.List<Block> execute(HTMLMacroParameters parameters,
                                     java.lang.String content,
                                     MacroTransformationContext context)
                              throws MacroExecutionException

Throws:
MacroExecutionException
See Also:
Macro.execute(Object, String, MacroTransformationContext)


Copyright © 2004-2011 XWiki. All Rights Reserved.