@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 |
---|---|
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 |
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.
|
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()
© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.