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