Package com.uwyn.jhighlight.renderer
Class XhtmlRendererFactory
- java.lang.Object
-
- com.uwyn.jhighlight.renderer.XhtmlRendererFactory
-
public abstract class XhtmlRendererFactory extends Object
Provides a single point of entry to instantiate Xhtml renderers.- Since:
- 1.0
- Version:
- $Revision: 3108 $
- Author:
- Geert Bevin (gbevin[remove] at uwyn dot com)
-
-
Constructor Summary
Constructors Constructor Description XhtmlRendererFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Renderer
getRenderer(String type)
Instantiates an instance of a knownXhtmlRenderer
according to the type that's provided.static Set
getSupportedTypes()
Returned a set with all the supported XHTML renderer types.
-
-
-
Field Detail
-
GROOVY
public static final String GROOVY
- See Also:
- Constant Field Values
-
JAVA
public static final String JAVA
- See Also:
- Constant Field Values
-
BEANSHELL
public static final String BEANSHELL
- See Also:
- Constant Field Values
-
BSH
public static final String BSH
- See Also:
- Constant Field Values
-
XML
public static final String XML
- See Also:
- Constant Field Values
-
XHTML
public static final String XHTML
- See Also:
- Constant Field Values
-
LZX
public static final String LZX
- See Also:
- Constant Field Values
-
HTML
public static final String HTML
- See Also:
- Constant Field Values
-
CPP
public static final String CPP
- See Also:
- Constant Field Values
-
CXX
public static final String CXX
- See Also:
- Constant Field Values
-
CPLUSPLUS
public static final String CPLUSPLUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRenderer
public static Renderer getRenderer(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 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
-
-