Package org.radeox.macro.api
Class BaseApiConverter
- java.lang.Object
-
- org.radeox.macro.api.BaseApiConverter
-
- All Implemented Interfaces:
ApiConverter
- Direct Known Subclasses:
JavaApiConverter,RubyApiConverter
public abstract class BaseApiConverter extends Object implements ApiConverter
Base class for API converters, stores a base URL- Version:
- $Id: BaseApiConverter.java 7707 2006-04-12 17:30:19Z ian@caret.cam.ac.uk $
- Author:
- Stephan J. Schmidt
-
-
Constructor Summary
Constructors Constructor Description BaseApiConverter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidappendUrl(Writer writer, String className)Converts a class name to an url and adds the url to an Writer.StringgetBaseUrl()Get the base Url for the Converter.abstract StringgetName()Returns the name of the converter.voidsetBaseUrl(String baseUrl)Set the base Url for the Converter.
-
-
-
Field Detail
-
baseUrl
protected String baseUrl
-
-
Method Detail
-
appendUrl
public abstract void appendUrl(Writer writer, String className) throws IOException
Description copied from interface:ApiConverterConverts a class name to an url and adds the url to an Writer. The url usually shows som API information about the class e.g. for Java classes this points to the API documentation on the Sun site.- Specified by:
appendUrlin interfaceApiConverter- Parameters:
writer- Writer to add the class url toclassName- Namee of the class to create pointer for- Throws:
IOException
-
setBaseUrl
public void setBaseUrl(String baseUrl)
Description copied from interface:ApiConverterSet the base Url for the Converter. A converter creates an API pointer by combining an base url and the name of a class.- Specified by:
setBaseUrlin interfaceApiConverter- Parameters:
baseUrl- Url to use when creating an API pointer
-
getBaseUrl
public String getBaseUrl()
Description copied from interface:ApiConverterGet the base Url for the Converter. A converter creates an API pointer by combining an base url and the name of a class.- Specified by:
getBaseUrlin interfaceApiConverter- Returns:
- baseUrl Url the converter uses when creating an API pointer
-
getName
public abstract String getName()
Description copied from interface:ApiConverterReturns the name of the converter. This is used to configure the BaseUrls and associate them with a concrete converter.- Specified by:
getNamein interfaceApiConverter- Returns:
- name Name of the Converter, e.g. Java12
-
-