|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.sswap.impl.empire.model.JenaModelFactory
public class JenaModelFactory
A factory that reads and creates Jena models in this implementation. It ensures that all models are read and initialized in the same way.
| Nested Class Summary | |
|---|---|
private static class |
JenaModelFactory.ErrorHandler
An internal error handler for errors encountered while parsing the model |
| Field Summary | |
|---|---|
private static JenaModelFactory |
instance
A singleton instance |
| Constructor Summary | |
|---|---|
private |
JenaModelFactory()
|
| Method Summary | |
|---|---|
com.hp.hpl.jena.rdf.model.Model |
createEmptyModel()
Creates an empty model |
static JenaModelFactory |
get()
The getter for the singleton instance |
com.hp.hpl.jena.rdf.model.Model |
getModel(java.io.InputStream is)
Gets a model read from an input stream |
com.hp.hpl.jena.rdf.model.Model |
getModel(java.io.InputStream is,
java.lang.String format)
|
private com.hp.hpl.jena.rdf.model.RDFReader |
getReader(com.hp.hpl.jena.rdf.model.Model m,
java.lang.String format)
Gets a reader for the model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static JenaModelFactory instance
| Constructor Detail |
|---|
private JenaModelFactory()
| Method Detail |
|---|
public static JenaModelFactory get()
private com.hp.hpl.jena.rdf.model.RDFReader getReader(com.hp.hpl.jena.rdf.model.Model m,
java.lang.String format)
m - the model for which the reader should be created
public com.hp.hpl.jena.rdf.model.Model createEmptyModel()
public com.hp.hpl.jena.rdf.model.Model getModel(java.io.InputStream is)
throws DataAccessException
is - the input stream from which the model should be read
DataAccessException
public com.hp.hpl.jena.rdf.model.Model getModel(java.io.InputStream is,
java.lang.String format)
throws DataAccessException
DataAccessException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||