Package com.uwyn.jhighlight.renderer
Class XhtmlRendererFactory
- java.lang.Object
-
- com.uwyn.jhighlight.renderer.XhtmlRendererFactory
-
public abstract class XhtmlRendererFactory extends java.lang.ObjectProvides a single point of entry to instantiate Xhtml renderers.- Since:
- 1.0
- Version:
- $Revision: 3108 $
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBEANSHELLstatic java.lang.StringBSHstatic java.lang.StringCPLUSPLUSstatic java.lang.StringCPPstatic java.lang.StringCXXstatic java.lang.StringGROOVYstatic java.lang.StringHTMLstatic java.lang.StringJAVAstatic java.lang.StringLZXprivate static java.util.MapRENDERERS_CLASSNAMESstatic java.lang.StringXHTMLstatic java.lang.StringXML
-
Constructor Summary
Constructors Constructor Description XhtmlRendererFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RenderergetRenderer(java.lang.String type)Instantiates an instance of a knownXhtmlRendereraccording to the type that's provided.static java.util.SetgetSupportedTypes()Returned a set with all the supported XHTML renderer types.
-
-
-
Field Detail
-
GROOVY
public static final java.lang.String GROOVY
- See Also:
- Constant Field Values
-
JAVA
public static final java.lang.String JAVA
- See Also:
- Constant Field Values
-
BEANSHELL
public static final java.lang.String BEANSHELL
- See Also:
- Constant Field Values
-
BSH
public static final java.lang.String BSH
- See Also:
- Constant Field Values
-
XML
public static final java.lang.String XML
- See Also:
- Constant Field Values
-
XHTML
public static final java.lang.String XHTML
- See Also:
- Constant Field Values
-
LZX
public static final java.lang.String LZX
- See Also:
- Constant Field Values
-
HTML
public static final java.lang.String HTML
- See Also:
- Constant Field Values
-
CPP
public static final java.lang.String CPP
- See Also:
- Constant Field Values
-
CXX
public static final java.lang.String CXX
- See Also:
- Constant Field Values
-
CPLUSPLUS
public static final java.lang.String CPLUSPLUS
- See Also:
- Constant Field Values
-
RENDERERS_CLASSNAMES
private static final java.util.Map RENDERERS_CLASSNAMES
-
-
Method Detail
-
getRenderer
public static Renderer getRenderer(java.lang.String type)
Instantiates an instance of a knownXhtmlRendereraccording to the type that's provided.- Parameters:
type- The type of renderer, look at the static variables of this class to see which ones are supported.- Returns:
- an instance of the
XhtmlRendererthat corresponds to the type; ornullif the type wasn't known - Since:
- 1.0
-
getSupportedTypes
public static java.util.Set getSupportedTypes()
Returned a set with all the supported XHTML renderer types.- Returns:
- a
Setwith the supported XHTML renderer types as strings. - Since:
- 1.0
-
-