public abstract class BaseMetacardFormatter extends Object implements MetacardFormatter
format(String, WorkspaceMetacardImpl, Long)
are
checked.Constructor and Description |
---|
BaseMetacardFormatter() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
doFormat(String template,
WorkspaceMetacardImpl workspaceMetacard,
Long hitCount)
The arguments are guaranteed to be non-null.
|
String |
format(String template,
WorkspaceMetacardImpl workspaceMetacard,
Long hitCount)
Transform a template string based on a workspace metacard and a hit count.
|
public final String format(String template, WorkspaceMetacardImpl workspaceMetacard, Long hitCount)
MetacardFormatter
format
in interface MetacardFormatter
template
- must be non-nullworkspaceMetacard
- must be non-nullhitCount
- must be non-nullprotected abstract String doFormat(String template, WorkspaceMetacardImpl workspaceMetacard, Long hitCount)
template
- non-nullworkspaceMetacard
- non-nullhitCount
- non-nullThis work is licensed under a Creative Commons Attribution 4.0 International License.