public abstract class ProjectModelFormatter extends Object
ProjectModel instances.| Modifier and Type | Field and Description |
|---|---|
static String |
MARKDOWN
The Markdown mime type.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ProjectModelFormatter(String mimeType)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract String |
format(ProjectModel model)
Formats the model as a string.
|
static ProjectModelFormatter |
getInstance(ClassLoader classLoader,
String mimeType)
Gets an instance from the specified classloader for the specified mime type.
|
static ProjectModelFormatter |
getInstance(String mimeType)
Gets an instance from the current thread's context classloader for the specified mime type.
|
public static final String MARKDOWN
ProjectModelFormatter supporting this mime type must be available.protected ProjectModelFormatter(String mimeType)
mimeType - the mime type.public abstract String format(ProjectModel model)
model - the model.@CheckForNull public static ProjectModelFormatter getInstance(@NonNull String mimeType)
mimeType - the mime type.null if no instance available for the specified mime type.@CheckForNull public static ProjectModelFormatter getInstance(@NonNull ClassLoader classLoader, @NonNull String mimeType)
classLoader - the classloader.mimeType - the mime type.null if no instance available for the specified mime type.Copyright © 2004-2014. All Rights Reserved.