Package com.uwyn.jhighlight.renderer
Class XhtmlRendererFactory
- java.lang.Object
-
- com.uwyn.jhighlight.renderer.XhtmlRendererFactory
-
public abstract class XhtmlRendererFactory extends java.lang.Object
Provides 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.String
BEANSHELL
static java.lang.String
BSH
static java.lang.String
CPLUSPLUS
static java.lang.String
CPP
static java.lang.String
CXX
static java.lang.String
GROOVY
static java.lang.String
HTML
static java.lang.String
JAVA
static java.lang.String
LZX
private static java.util.Map
RENDERERS_CLASSNAMES
static java.lang.String
XHTML
static java.lang.String
XML
-
Constructor Summary
Constructors Constructor Description XhtmlRendererFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Renderer
getRenderer(java.lang.String type)
Instantiates an instance of a knownXhtmlRenderer
according to the type that's provided.static java.util.Set
getSupportedTypes()
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 knownXhtmlRenderer
according 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
XhtmlRenderer
that corresponds to the type; ornull
if 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
Set
with the supported XHTML renderer types as strings. - Since:
- 1.0
-
-