|
Oxygen XML Editor 12.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 |
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 |
| Methods inherited from class ro.sync.ecss.extensions.dita.conref.DITAConRefResolver |
|---|
getDescription, getTopicPath |
| 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 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
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 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)
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 12.2 Author API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||