|
Carbide.c++ | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IOwnedModel<View>
This manages a single file's contents and provides "views" onto its contents and resolves changes to such views to rewrite the contents.
This model may be modified by the owner.
Method Summary | |
---|---|
void |
dispose()
Dispose the model. |
IDocument |
getDocument()
Get the document representing the main file text. |
IDocument |
getDocument(IPath path)
Look up a document by full/absolute path. |
java.util.Map<IPath,IDocument> |
getDocumentMap()
Get the map of used documents. |
IModelLoadResults |
parse()
Parse the model from its document to create the preprocessor DOM. |
void |
setDocument(IDocument document)
Set the model's main document. |
void |
setDocument(IPath path,
IDocument document)
Look up a document by full/absolute path. |
void |
setModelProvider(IModelProvider<IOwnedModel<View>,IModel<View>> modelProvider)
Set the model provider. |
Methods inherited from interface com.nokia.carbide.cpp.epoc.engine.model.IModel |
---|
addListener, createView, getModelProvider, getPath, getViews, removeListener |
Method Detail |
---|
IDocument getDocument()
void setDocument(IDocument document)
IDocument getDocument(IPath path)
IPath
- the absolute path to the file as used in the DOM or
IModel#getPath()
void setDocument(IPath path, IDocument document)
IPath
- the absolute path to the file as used in the DOM or
IModel#getPath()document
- the document for the pathjava.util.Map<IPath,IDocument> getDocumentMap()
IModelLoadResults parse()
This is only valid when the document is set.
If any changes are detected and any views are open, they are all marked unsynchronized.
void setModelProvider(IModelProvider<IOwnedModel<View>,IModel<View>> modelProvider)
modelProvider
- the provider that owns the model.void dispose()
Throws IllegalStateException unless views are disposed.
|
Carbide.c++ | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |