@API(type=EXTENDABLE, src=PUBLIC) public class AuthorReferenceResolverWrapper extends java.lang.Object implements AuthorReferenceResolver
AuthorReferenceResolver
.Constructor and Description |
---|
AuthorReferenceResolverWrapper(AuthorReferenceResolver wrappedResolver)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowsValidatationForEditableReference(java.lang.String systemID,
AuthorNode referenceNodeParent)
Check if the editable node reference can be validated by Oxygen on its own, when modified, based on its own schema information.
|
java.lang.String |
getDescription() |
java.lang.String |
getDisplayName(AuthorNode node)
Returns the name of the node that contains the expanded referred content.
|
java.lang.String |
getReferenceSystemID(AuthorNode node,
AuthorAccess authorAccess)
Return the systemID of the referred content.
|
java.lang.String |
getReferenceUniqueID(AuthorNode node)
Get an unique identifier for the node reference.
|
AuthorReferenceResolver |
getWrappedResolver() |
boolean |
hasEditableReference(java.lang.String systemID,
AuthorNode referenceNodeParent)
Check if the node is editable.
|
boolean |
hasReferences(AuthorNode node)
Verifies if the handler considers the node to have references.
|
boolean |
isReferenceChanged(AuthorNode node,
java.lang.String attributeName)
Verifies if the references of the given node must be refreshed
when the attribute with the specified name has changed.
|
void |
replaceReference(AuthorDocumentProvider targetProvider,
AuthorAccess authorAccess,
AuthorReferenceNode referenceNode)
Replace the content of the referenced node from the target document with the
modified content inside the reference node.
|
javax.xml.transform.sax.SAXSource |
resolveReference(AuthorNode node,
java.lang.String systemID,
AuthorAccess authorAccess,
org.xml.sax.EntityResolver entityResolver)
Resolve the references of the node.
|
public AuthorReferenceResolverWrapper(AuthorReferenceResolver wrappedResolver)
wrappedResolver
- The wrapped resolver.public java.lang.String getDescription()
getDescription
in interface Extension
Extension.getDescription()
public boolean hasReferences(AuthorNode node)
AuthorReferenceResolver
true
for
a DITA element that has conref
attribute set.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 boolean isReferenceChanged(AuthorNode node, java.lang.String attributeName)
AuthorReferenceResolver
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 javax.xml.transform.sax.SAXSource resolveReference(AuthorNode node, java.lang.String systemID, AuthorAccess authorAccess, org.xml.sax.EntityResolver entityResolver)
AuthorReferenceResolver
SAXSource
will be used for creating the referred content
using the parser and the source inside it.
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, ro.sync.ecss.extensions.api.AuthorAccess, org.xml.sax.EntityResolver)
public java.lang.String getDisplayName(AuthorNode node)
AuthorReferenceResolver
conref
attribute is returned
by the DITA implementation.getDisplayName
in interface AuthorReferenceResolver
node
- The node that contains references.AuthorReferenceResolver.getDisplayName(ro.sync.ecss.extensions.api.node.AuthorNode)
public java.lang.String getReferenceUniqueID(AuthorNode node)
AuthorReferenceResolver
conref
attribute as the unique identifier.getReferenceUniqueID
in interface AuthorReferenceResolver
node
- The node that has reference.AuthorReferenceResolver.getReferenceUniqueID(ro.sync.ecss.extensions.api.node.AuthorNode)
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, ro.sync.ecss.extensions.api.AuthorAccess)
public AuthorReferenceResolver getWrappedResolver()
public boolean hasEditableReference(java.lang.String systemID, AuthorNode referenceNodeParent)
AuthorReferenceResolver
hasEditableReference
in interface AuthorReferenceResolver
systemID
- System ID of the document in which the current node is located.referenceNodeParent
- The parent of the future referene nodetrue
if the node is editable.AuthorReferenceResolver.hasEditableReference(java.lang.String, ro.sync.ecss.extensions.api.node.AuthorNode)
public boolean allowsValidatationForEditableReference(java.lang.String systemID, AuthorNode referenceNodeParent)
AuthorReferenceResolver
allowsValidatationForEditableReference
in interface AuthorReferenceResolver
systemID
- System ID of the document in which the current node is located.referenceNodeParent
- The parent of the future reference nodetrue
if the editable node reference can be validated by Oxygen on its own, based on its own schema information.AuthorReferenceResolver.allowsValidatationForEditableReference(java.lang.String, ro.sync.ecss.extensions.api.node.AuthorNode)
public void replaceReference(AuthorDocumentProvider targetProvider, AuthorAccess authorAccess, AuthorReferenceNode referenceNode) throws java.io.IOException
AuthorReferenceResolver
replaceReference
in interface AuthorReferenceResolver
targetProvider
- The provider if the target document.authorAccess
- Access to the current document.referenceNode
- The reference node to get the modified content from.java.io.IOException
- If the save process failsAuthorReferenceResolver.replaceReference(ro.sync.ecss.extensions.api.node.AuthorDocumentProvider, ro.sync.ecss.extensions.api.AuthorAccess, ro.sync.ecss.extensions.api.node.AuthorReferenceNode)
© Copyright Syncro Soft SRL 2002 - 2020. All rights reserved.