com.levigo.jadice.document
Class BasicDocument
java.lang.Object
com.levigo.jadice.document.AbstractDocument
com.levigo.jadice.document.BasicDocument
- All Implemented Interfaces:
- Document, Item, MetadataProvider, MutableMetadataProvider, PermissionsProvider<Document>, PropertiesProvider
public class BasicDocument
- extends AbstractDocument
Default implementation of the Document
interface. BasicDocument
s neither allow
insertion of duplicate Page
elements nor attempting to insert null
as a
Page
.
Initial Document.State
of BasicDocument
s is Document.BasicState.READY
.
This implementation is not thread-safe
Methods inherited from class com.levigo.jadice.document.AbstractDocument |
addDocumentInterceptor, addDocumentListener, addPage, cleanUpResources, close, dispose, exceptionIfDisposed, getMetadata, getMutableMetadataRoot, getName, getPage, getPage, getPageCount, getPageIndex, getPermissions, getProperties, getState, isDisposed, removeDocumentInterceptor, removeDocumentListener, setName, setState, toString |
LOGGER
protected static final Logger LOGGER
BasicDocument
public BasicDocument()
- Construct a new document.
BasicDocument
public BasicDocument(String name)
- Construct a new document with the given name.
- Parameters:
name
- the name of the document
getPages
public EventList<Page> getPages()
- Description copied from interface:
Document
- Returns a list of pages in the document. Please note that, unless stated otherwise by
implementors, this list is not thread-safe. Care must therefore be taken to manipulate
the page list with appropriate locking as detailed in the documentation of
EventList
.
As a convenience, a non-thread-safe page list may be wrapped using
GlazedLists.threadSafeList(EventList)
to obtain a thread-safe one.
- Specified by:
getPages
in interface Document
- Specified by:
getPages
in class AbstractDocument
- Returns:
- List of pages
Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.