Package org.semanticweb.owlapi.io
Class ToStringRenderer
java.lang.Object
org.semanticweb.owlapi.io.ToStringRenderer
A utility class which can be used by implementations to provide a toString rendering of OWL API
objects. The idea is that this is pluggable. TODO this does not allow for independent rendering;
in a multithreaded situation, the renderer may change mid execution because of the static
singleton instance
- Since:
- 2.2.0
- Author:
- Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OWLObjectRenderer
static String
getRendering
(OWLObject object) static void
setRenderer
(javax.inject.Provider<OWLObjectRenderer> renderer)
-
Constructor Details
-
ToStringRenderer
public ToStringRenderer()
-
-
Method Details
-
getInstance
- Returns:
- the singleton instance
-
setRenderer
- Parameters:
renderer
- the new renderer to use
-
getRendering
- Parameters:
object
- the object to render- Returns:
- the rendering for the object
-