public interface DocumentsContainer extends java.lang.Iterable<Document>, Observable
| Modifier and Type | Method and Description |
|---|---|
void |
addDocument(Document document)
Adds a document to the project
|
Document |
createDocument(java.lang.String type) |
Document |
getActiveDocument() |
Document |
getActiveDocument(java.lang.Class<? extends Document> documentClass) |
Document |
getActiveDocument(java.lang.String documentTypeName) |
Document |
getDocument(java.lang.String name)
Returns the document with the name specified by name.
|
Document |
getDocument(java.lang.String name,
java.lang.String type)
Returns the document of the type indicated and the name specified by name.
|
java.util.List<Document> |
getDocuments()
Return a list of documents in the project.
|
java.util.List<Document> |
getDocuments(java.lang.String type)
Return a list with all documents of especified type.
|
boolean |
isEmpty() |
java.util.Iterator<Document> |
iterator() |
void |
removeDocument(Document document)
Remove a document of the project
|
addObserver, deleteObserver, deleteObserversjava.util.List<Document> getDocuments()
java.util.List<Document> getDocuments(java.lang.String type)
type - of documentvoid addDocument(Document document)
document - as Documentvoid removeDocument(Document document)
document - as Documentjava.util.Iterator<Document> iterator()
iterator in interface java.lang.Iterable<Document>boolean isEmpty()
Document getDocument(java.lang.String name, java.lang.String type)
name - name of the document to retrievetype - name of the type of document to retrieveDocument getDocument(java.lang.String name)
name - Document getActiveDocument()
Document getActiveDocument(java.lang.String documentTypeName)
Document createDocument(java.lang.String type)