|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for objects responsible for being a repository into which an object model can be loaded.
OCLTF does code generation from an object model. There must exist a repository in which the model can be loaded. The repository must be able to load the object model given a URL. Any Repository that supports this API can be used by OCLTF.
ModelFacade
Method Summary | |
void |
cleanup()
Perform any cleanup required. |
long |
getLastModified()
Returns the date and time of when the model was last modified |
java.lang.Object |
getModel()
returns the top-level model object from the repository |
void |
init()
Initialize the repository. |
void |
loadModel(java.io.InputStream modelStream,
java.net.URL modelUri)
read the object model into the repository from the given stream. |
void |
loadModel(java.net.URL modelUri)
Loads the object model into the repository from the given URL. |
Method Detail |
public void init()
public void cleanup()
public void loadModel(java.net.URL modelUri) throws RepositoryException
An URLs can be used to point to files on the filesystem, a file in a jar file, a file from a website, data from a database, etc...
modelUri
- the URI of model
RepositoryException
- thrown if anything happesn during read.public void loadModel(java.io.InputStream modelStream, java.net.URL modelUri) throws RepositoryException
An URLs can be used to point to files on the filesystem, a file in a jar file, a file from a website, data from a database, etc...
modelStream
- Input stream to be used for reading an XMI document (if
null
is passed, will try to open a connection to the
spefified modelUri.modelUri
- URI of the XMI document to be read from. If set to null
,
Repository will not be able to resolve relative hrefs.
RepositoryException
- thrown if anything happesn during read.public long getLastModified()
public java.lang.Object getModel()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |