| 
 | Oxygen XML Editor 11.2 Author API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectro.sync.ecss.extensions.dita.conref.DITAConRefResolver
ro.sync.ecss.extensions.dita.map.topicref.DITAMapRefResolver
public class DITAMapRefResolver
Resolves the hrefs to other maps.
| Constructor Summary | |
|---|---|
| DITAMapRefResolver() | |
| Method Summary | |
|---|---|
|  void | checkTarget(AuthorNode node,
            AuthorDocument targetDocument)Check if the referenced target can be inserted in the source document | 
|  String | getDisplayName(AuthorNode node)Returns the value of the hrefattribute. | 
|  String | getReferenceSystemID(AuthorNode node,
                     AuthorAccess authorAccess)Get the reference System ID | 
|  String | getReferenceUniqueID(AuthorNode node)The value of conrefattribute is used as the unique identifier. | 
|  boolean | hasReferences(AuthorNode node)An element that has hrefattribute 
 is an element with references. | 
|  boolean | isReferenceChanged(AuthorNode node,
                   String attributeName)Returns truewhen the attribute name is equal to'conref'. | 
|  SAXSource | resolveReference(AuthorNode node,
                 String systemID,
                 AuthorAccess authorAccess,
                 EntityResolver entityResolver)Resolve the content referred by conrefattribute. | 
|  void | setResolveAllTopicReferences(boolean resolveAllTopicRefs)Try to resolve all topic references | 
| Methods inherited from class ro.sync.ecss.extensions.dita.conref.DITAConRefResolver | 
|---|
| getDescription, getTopicPath, parseDITAHref | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface ro.sync.ecss.extensions.api.Extension | 
|---|
| getDescription | 
| Constructor Detail | 
|---|
public DITAMapRefResolver()
| Method Detail | 
|---|
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 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 SAXSource resolveReference(AuthorNode node,
                                  String systemID,
                                  AuthorAccess authorAccess,
                                  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 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
ValidatingAuthorReferenceResolver
checkTarget in interface ValidatingAuthorReferenceResolvercheckTarget in class DITAConRefResolvernode - The source node for which the target node was resolved.targetDocument - The target document
ValidatingReferenceResolverException - 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 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,
                                  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)
DITAMapReferencesResolver
setResolveAllTopicReferences 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)| 
 | Oxygen XML Editor 11.2 Author API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||