@API(type=INTERNAL,
src=PUBLIC)
public class DITAMapRefResolver
extends DITAConRefResolver
implements DITAMapReferencesResolver
keyManagerProvider| Constructor and Description |
|---|
DITAMapRefResolver()
Constructor.
|
DITAMapRefResolver(ContextKeyManager keyManager)
Deprecated.
use
DITAMapRefResolver(ContextKeyManagerProvider) instead. |
DITAMapRefResolver(ContextKeyManagerProvider keyManagerProvider)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkTarget(AuthorNode node,
AuthorDocument targetDocument)
Check if the referenced target can be inserted in the source document
|
java.lang.String |
getDisplayName(AuthorNode node)
Returns the value of the
href attribute. |
java.lang.String |
getReferenceSystemID(AuthorNode node,
AuthorAccess authorAccess)
Get the reference System ID
|
java.lang.String |
getReferenceUniqueID(AuthorNode node)
The value of
conref attribute is used as the unique identifier. |
boolean |
hasReferences(AuthorNode node)
An element that has
href attribute
is an element with references. |
boolean |
isReferenceChanged(AuthorNode node,
java.lang.String attributeName)
Returns
true when the attribute name is equal to 'conref'. |
javax.xml.transform.sax.SAXSource |
resolveReference(AuthorNode node,
java.lang.String systemID,
AuthorAccess authorAccess,
org.xml.sax.EntityResolver entityResolver)
Resolve the content referred by
conref attribute. |
void |
setResolveAllTopicReferences(boolean resolveAllTopicRefs)
Try to resolve all topic references
|
getDescription, getTopicPath, setResolveKeyrefsToMetaContentAsConrefsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription@Deprecated public DITAMapRefResolver(ContextKeyManager keyManager)
DITAMapRefResolver(ContextKeyManagerProvider) instead.keyManager - The context-aware key manager.public DITAMapRefResolver(ContextKeyManagerProvider keyManagerProvider)
keyManagerProvider - The context-aware key manager provider.public DITAMapRefResolver()
public boolean hasReferences(AuthorNode node)
href attribute
is an element with references.hasReferences in interface AuthorReferenceResolverhasReferences in class DITAConRefResolvernode - The node to be analyzed.true if it has references.AuthorReferenceResolver.hasReferences(ro.sync.ecss.extensions.api.node.AuthorNode)public java.lang.String getDisplayName(AuthorNode node)
href attribute.getDisplayName in interface AuthorReferenceResolvergetDisplayName in class DITAConRefResolvernode - The node that contains references.AuthorReferenceResolver.getDisplayName(ro.sync.ecss.extensions.api.node.AuthorNode)public javax.xml.transform.sax.SAXSource resolveReference(AuthorNode node, java.lang.String systemID, AuthorAccess authorAccess, org.xml.sax.EntityResolver entityResolver)
conref attribute.resolveReference in interface AuthorReferenceResolverresolveReference in class DITAConRefResolvernode - The node which has references.systemID - The system ID of the node with references.authorAccess - The author access implementation.
Provides access to specific informations and actions for
editor, document, workspace, tables, change tracking, utility a.s.o.entityResolver - The entity resolver that can be used to resolve:
InputSource will contain the editor content.SAXSource including the parser and the parser's InputSource.
AuthorReferenceResolver.resolveReference(ro.sync.ecss.extensions.api.node.AuthorNode, java.lang.String, AuthorAccess, EntityResolver)public java.lang.String getReferenceSystemID(AuthorNode node, AuthorAccess authorAccess)
getReferenceSystemID in interface AuthorReferenceResolvergetReferenceSystemID in class DITAConRefResolvernode - The reference node.authorAccess - The author access. It provides access to specific
informations and actions for editor, document, workspace, tables,
change tracking, utility a.s.o.AuthorReferenceResolver.getReferenceSystemID(ro.sync.ecss.extensions.api.node.AuthorNode, AuthorAccess)public void checkTarget(AuthorNode node, AuthorDocument targetDocument) throws ValidatingReferenceResolverException
ValidatingAuthorReferenceResolvercheckTarget in interface ValidatingAuthorReferenceResolvercheckTarget in class DITAConRefResolvernode - The source node for which the target node was resolved.targetDocument - The target documentValidatingReferenceResolverException - If the source does not accept the target expanded in place.ValidatingAuthorReferenceResolver.checkTarget(ro.sync.ecss.extensions.api.node.AuthorNode, ro.sync.ecss.extensions.api.node.AuthorDocument)public java.lang.String getReferenceUniqueID(AuthorNode node)
conref attribute is used as the unique identifier.getReferenceUniqueID in interface AuthorReferenceResolvergetReferenceUniqueID in class DITAConRefResolvernode - The node that has reference.AuthorReferenceResolver.getReferenceUniqueID(ro.sync.ecss.extensions.api.node.AuthorNode)public boolean isReferenceChanged(AuthorNode node, java.lang.String attributeName)
true when the attribute name is equal to 'conref'.isReferenceChanged in interface AuthorReferenceResolverisReferenceChanged in class DITAConRefResolvernode - The AuthorNode with the references.attributeName - The name of the changed attribute.true if the references must be refreshed.AuthorReferenceResolver.isReferenceChanged(ro.sync.ecss.extensions.api.node.AuthorNode, java.lang.String)public void setResolveAllTopicReferences(boolean resolveAllTopicRefs)
DITAMapReferencesResolversetResolveAllTopicReferences in interface DITAMapReferencesResolverresolveAllTopicRefs - If true, will resolve both map references and topic references.
If false, will resolve only map references, defaults to falseDITAMapReferencesResolver.setResolveAllTopicReferences(boolean)© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.