public static class OntDocumentManager.DefaultReadHook extends Object implements OntDocumentManager.ReadHook
OntDocumentManager.ReadHook
makes no changes.Constructor and Description |
---|
DefaultReadHook() |
Modifier and Type | Method and Description |
---|---|
void |
afterRead(Model model,
String source,
OntDocumentManager odm)
Behaviour that is invoked just after the contents of the
given source (URI or filename) have been read into the given model.
|
String |
beforeRead(Model model,
String source,
OntDocumentManager odm)
Behaviour that is invoked before the contents of the
given source (URI or filename) are read into the given model.
|
public void afterRead(Model model, String source, OntDocumentManager odm)
OntDocumentManager.ReadHook
Behaviour that is invoked just after the contents of the given source (URI or filename) have been read into the given model. Handlers are permitted to make state changes to the model and the ODM, but carefully!
afterRead
in interface OntDocumentManager.ReadHook
model
- The model that is going to receive the contents of the sourcesource
- The identity of the source, as a file name or URIodm
- The Ont Document Manager invoking this handlerpublic String beforeRead(Model model, String source, OntDocumentManager odm)
OntDocumentManager.ReadHook
Behaviour that is invoked before the contents of the given source (URI or filename) are read into the given model. The return value from this method denotes a revised string to use in place of the supplied source string. Handlers are permitted to make state changes to the model and the ODM, but carefully!
beforeRead
in interface OntDocumentManager.ReadHook
model
- The model that is going to receive the contents of the sourcesource
- The identity of the source, as a file name or URIodm
- The Ont Document Manager invoking this handlernull
, the source will not be subsequently read.Licenced under the Apache License, Version 2.0