public final class TopicSet extends DocumentSetBase implements KeyDefinitions
Modifier and Type | Field and Description |
---|---|
static Name |
CHUNK_NAME |
static Name |
CLASS_NAME |
static Name |
CODEBASEKEYREF_NAME |
static Name |
CONACTION_NAME |
static Name |
CONKEYREF_NAME |
static Name |
CONREF_NAME |
static Name |
CONREFEND_NAME |
static Name |
COPY_TO_NAME |
static Name |
DATAKEYREF_NAME |
static Name |
DITA_NAME |
static Name |
DITAVALREF_NAME |
static Name |
DOMAINS_NAME |
static Name |
FORMAT_NAME |
static Name |
HEIGHT_NAME |
static Name |
HREF_NAME |
static Name |
ID_NAME |
static Name |
KEYREF_NAME |
static Name |
KEYS_NAME |
static Name |
LOCKTITLE_NAME |
static Name |
MAPREF_NAME |
static Name |
NAVTITLE_NAME |
static Name |
PROCESSING_ROLE_NAME |
static Name |
SCOPE_NAME |
static Name |
TITLE_NAME |
static Name |
TOPICMETA_NAME |
static Name |
TYPE_NAME |
static String |
USE_CONREF_TARGET_VALUE |
static Name |
VALUE_NAME |
static Name |
WIDTH_NAME |
static Name |
XTRC_NAME |
static Name |
XTRF_NAME |
clientProperties
ACTION_REDRAW, ACTION_TRANSCLUDE, ACTION_VALIDATE
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.
|
com.xmlmind.ditac.preprocess.KeyDefinition |
getKeyDefinition(String key,
Node context)
Returns the definition corresponding to specified key.
|
com.xmlmind.ditac.preprocess.KeyDefinition[] |
getKeyDefinitions(Node context)
Returns all the key definitions contained in this set.
|
URL[] |
getMemberURLs()
Convenience method: same as
DocumentSet.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).
|
boolean |
update(Console console)
Update this document set.
|
getClientProperty, setClientProperty
public static final Name DITA_NAME
public static final Name DITAVALREF_NAME
public static final Name MAPREF_NAME
public static final Name TITLE_NAME
public static final Name TOPICMETA_NAME
public static final Name CHUNK_NAME
public static final Name CLASS_NAME
public static final Name CODEBASEKEYREF_NAME
public static final Name CONACTION_NAME
public static final Name CONKEYREF_NAME
public static final Name CONREFEND_NAME
public static final Name CONREF_NAME
public static final Name COPY_TO_NAME
public static final Name DATAKEYREF_NAME
public static final Name DOMAINS_NAME
public static final Name FORMAT_NAME
public static final Name HEIGHT_NAME
public static final Name HREF_NAME
public static final Name ID_NAME
public static final Name KEYREF_NAME
public static final Name KEYS_NAME
public static final Name LOCKTITLE_NAME
public static final Name NAVTITLE_NAME
public static final Name PROCESSING_ROLE_NAME
public static final Name SCOPE_NAME
public static final Name TYPE_NAME
public static final Name VALUE_NAME
public static final Name WIDTH_NAME
public static final Name XTRC_NAME
public static final Name XTRF_NAME
public static final String USE_CONREF_TARGET_VALUE
public URL getSpecificationURL()
DocumentSet
May return null
, in which case the specification
of this document set does not come from an XML file.
getSpecificationURL
in interface DocumentSet
public Set<URL> getMemberURLSet()
DocumentSet
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.
getMemberURLSet
in interface DocumentSet
public URL[] getMemberURLs()
DocumentSet
DocumentSet.getMemberURLSet()
but
returns an array.getMemberURLs
in interface DocumentSet
public boolean update(Console console)
DocumentSet
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.)
update
in interface DocumentSet
console
- console used to report progress, warnings and errorstrue
if successfully updated;
false
otherwisepublic int getActionsAfterUpdate(Document memberDoc)
DocumentSetBase
Returns DocumentSet.ACTION_VALIDATE
whatever the contents of specified
member document.
getActionsAfterUpdate
in interface DocumentSet
getActionsAfterUpdate
in class DocumentSetBase
memberDoc
- a member of this document setDocumentSet.ACTION_VALIDATE
,
DocumentSet.ACTION_REDRAW
, DocumentSet.ACTION_TRANSCLUDE
DocumentSet.update(com.xmlmind.util.Console)
public com.xmlmind.ditac.preprocess.KeyDefinition getKeyDefinition(String key, Node context)
KeyDefinitions
null
if specified key is unknown.getKeyDefinition
in interface KeyDefinitions
key
- key searched forcontext
- used to determine the key space (AKA key scope)public com.xmlmind.ditac.preprocess.KeyDefinition[] getKeyDefinitions(Node context)
KeyDefinitions
getKeyDefinitions
in interface KeyDefinitions
context
- used to determine the key space (AKA key scope)