com.atlassian.renderer.v2.macro.code.formatter
Class XmlFormatter

java.lang.Object
  extended by com.atlassian.renderer.v2.macro.code.formatter.AbstractFormatter
      extended by com.atlassian.renderer.v2.macro.code.formatter.XmlFormatter
All Implemented Interfaces:
SourceCodeFormatter

public class XmlFormatter
extends AbstractFormatter


Field Summary
 
Fields inherited from class com.atlassian.renderer.v2.macro.code.formatter.AbstractFormatter
COMMENTS_REPLACEMENT, KEYWORD_REPLACEMENT, LINE_COMMENTS, OBJECT_REPLACEMENT, QUOTES, QUOTES_REPLACEMENT, replacers
 
Constructor Summary
XmlFormatter()
           
 
Method Summary
 String[] getSupportedLanguages()
          Inform the CodeMacro which languages this formatter supports.
 
Methods inherited from class com.atlassian.renderer.v2.macro.code.formatter.AbstractFormatter
addReplacement, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlFormatter

public XmlFormatter()
Method Detail

getSupportedLanguages

public String[] getSupportedLanguages()
Description copied from interface: SourceCodeFormatter
Inform the CodeMacro which languages this formatter supports. So if someone writes {code:java}, then only the formatter that returns "java" from this method will be used to format it.

Returns:
an array of languages that this formatter supports


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.