@API(type=INTERNAL, src=PUBLIC) public class DITAConRefResolver extends DITAConrefsResolverBase
conref
attribute.Modifier and Type | Field and Description |
---|---|
protected ContextKeyManagerProvider |
keyManagerProvider
The context-aware key manager provider used to resolve keyrefs.
|
Constructor and Description |
---|
DITAConRefResolver()
Constructor.
|
DITAConRefResolver(ContextKeyManager keyManager)
Deprecated.
use
DITAConRefResolver(ContextKeyManagerProvider) instead. |
DITAConRefResolver(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 |
getDescription() |
java.lang.String |
getDisplayName(AuthorNode node)
Returns the value of the
conref attribute. |
java.lang.String |
getReferenceSystemID(AuthorNode node,
AuthorAccess authorAccess)
Return the systemID of the referred content.
|
java.lang.String |
getReferenceUniqueID(AuthorNode node)
The value of
conref attribute is used as the unique identifier. |
protected java.lang.String[] |
getTopicPath(java.lang.String value)
Gets the topic IDs as an array of strings.
|
boolean |
hasReferences(AuthorNode node)
An element that has
conref 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 |
setResolveKeyrefsToMetaContentAsConrefs(boolean resolveKeyrefsAsConrefs)
Set to
true to resolve all keyrefs as conrefs |
protected final ContextKeyManagerProvider keyManagerProvider
@Deprecated public DITAConRefResolver(ContextKeyManager keyManager)
DITAConRefResolver(ContextKeyManagerProvider)
instead.keyManager
- The context-aware key manager.public DITAConRefResolver()
public DITAConRefResolver(ContextKeyManagerProvider keyManagerProvider)
keyManagerProvider
- The context-aware key manager provider.public boolean hasReferences(AuthorNode node)
conref
attribute
is an element with references.node
- 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)
conref
attribute.node
- 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) throws ReferenceResolverException
conref
attribute.node
- 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
.
ReferenceResolverException
AuthorReferenceResolver.resolveReference(ro.sync.ecss.extensions.api.node.AuthorNode, java.lang.String, AuthorAccess, EntityResolver)
protected java.lang.String[] getTopicPath(java.lang.String value)
value
- The conref
attribute value.public java.lang.String getDescription()
Extension.getDescription()
public java.lang.String getReferenceUniqueID(AuthorNode node)
conref
attribute is used as the unique identifier.node
- 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'
.node
- 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 java.lang.String getReferenceSystemID(AuthorNode node, AuthorAccess authorAccess)
AuthorReferenceResolver
node
- 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
ValidatingAuthorReferenceResolver
node
- 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 void setResolveKeyrefsToMetaContentAsConrefs(boolean resolveKeyrefsAsConrefs)
DITAConrefsResolverBase
true
to resolve all keyrefs as conrefssetResolveKeyrefsToMetaContentAsConrefs
in class DITAConrefsResolverBase
resolveKeyrefsAsConrefs
- If true, will resolve keyword keyrefs as conrefs.DITAConrefsResolverBase.setResolveKeyrefsToMetaContentAsConrefs(boolean)
© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.