public interface DocumentSet extends Constants
For example, when a document is modular, all the modules may be considered to be part of the same document set.
DocBook example: a book including a number of chapters, each chapter being stored in a file of its own, specifies document set comprising the master document, the book, and its modules, the chapters.
DITA example: a map specifies a document set. More precisely, this document set is specified by the main map and all the submaps included by the main map. This document set comprises all the topic files referenced by the main map and its submaps.
Modifier and Type | Field and Description |
---|---|
static int |
ACTION_REDRAW
After a document set
update(com.xmlmind.util.Console) , redraw the member documents. |
static int |
ACTION_TRANSCLUDE
After a document set
update(com.xmlmind.util.Console) , update all inclusions in
the member documents. |
static int |
ACTION_VALIDATE
After a document set
update(com.xmlmind.util.Console) , validate the member documents. |
DOCUMENT_SET_PROPERTY
Modifier and Type | Method and Description |
---|---|
int |
getActionsAfterUpdate(Document memberDoc)
Returns an OR-set of actions specifying which actions to perform
on specified member document after a document set has been updated.
|
Object |
getClientProperty(Object key)
Returns the value of the "client property" with the specified key.
|
URL[] |
getMemberURLs()
Convenience method: same as
getMemberURLSet() but
returns an array. |
Set<URL> |
getMemberURLSet()
Returns the URLs of the members of this document set.
|
URL |
getSpecificationURL()
Returns the URL of the XML file specifying this document set
(example: the DITA topmost map).
|
Object |
setClientProperty(Object key,
Object value)
Add, replace or remove specified "client property".
|
boolean |
update(Console console)
Update this document set.
|
static final int ACTION_VALIDATE
update(com.xmlmind.util.Console)
, validate the member documents.
This action is almost always useful.
static final int ACTION_REDRAW
update(com.xmlmind.util.Console)
, redraw the member documents.
This action is useful for member DITA documents making use of
attribute keyref
and when some of keyref
s
point to image files.
static final int ACTION_TRANSCLUDE
update(com.xmlmind.util.Console)
, update all inclusions in
the member documents.
This action is useful for member DITA documents making use of
attribute conkeyref
.
URL getSpecificationURL()
May return null
, in which case the specification
of this document set does not come from an XML file.
Set<URL> getMemberURLSet()
May return an empty set (not null
).
In the case of a modular document, the master document (example: DocBook modular book) is at the same time a member and the specification of this document set.
Important: the returned set must not be modified by client code.
URL[] getMemberURLs()
getMemberURLSet()
but
returns an array.boolean update(Console console)
important: if the document set cannot be updated, do not corrupt it, keep it in its previous state. (Temporary errors may happen while the master document is being modified by the user.)
console
- console used to report progress, warnings and errorstrue
if successfully updated;
false
otherwiseint getActionsAfterUpdate(Document memberDoc)
memberDoc
- a member of this document setACTION_VALIDATE
,
ACTION_REDRAW
, ACTION_TRANSCLUDE
update(com.xmlmind.util.Console)
Object setClientProperty(Object key, Object value)
key
- the property keyvalue
- the property value; specify null
to remove
the property with the specified keynull
otherwisegetClientProperty(java.lang.Object)
Object getClientProperty(Object key)
key
- the property keynull
otherwisesetClientProperty(java.lang.Object, java.lang.Object)