|
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.Object ro.sync.ecss.extensions.dita.conref.DITAConRefResolver
public class DITAConRefResolver
Resolver for content referred using conref
attribute.
Constructor Summary | |
---|---|
DITAConRefResolver()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DITAConRefResolver()
Method Detail |
---|
public boolean hasReferences(AuthorNode node)
conref
attribute
is an element with references.
hasReferences
in interface AuthorReferenceResolver
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.
getDisplayName
in interface AuthorReferenceResolver
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)
conref
attribute.
resolveReference
in interface AuthorReferenceResolver
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
.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()
getDescription
in interface Extension
Extension.getDescription()
public java.lang.String getReferenceUniqueID(AuthorNode node)
conref
attribute is used as the unique identifier.
getReferenceUniqueID
in interface AuthorReferenceResolver
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'
.
isReferenceChanged
in interface AuthorReferenceResolver
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
getReferenceSystemID
in interface 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
checkTarget
in interface ValidatingAuthorReferenceResolver
node
- 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)
|
Oxygen XML Editor 12.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |