Package ro.sync.ecss.extensions.dita
Class DITAEditImageMapCore
- java.lang.Object
-
- ro.sync.ecss.extensions.commons.imagemap.EditImageMapCore
-
- ro.sync.ecss.extensions.commons.imagemap.EditImageMapWithSurroundCore
-
- ro.sync.ecss.extensions.dita.DITAEditImageMapCore
-
@API(type=INTERNAL, src=PUBLIC) public class DITAEditImageMapCore extends EditImageMapWithSurroundCore
Edit Image Map Core for DITA.
-
-
Constructor Summary
Constructors Constructor Description DITAEditImageMapCore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String[]
getNodesOfInterestCriteria(java.lang.String namespace)
Get the criteria for nodes of interest, and the start and end of the fragment to surround with.SupportedFrameworks
getSupportedFramework(java.lang.String namespaceURI)
Detect the supported framework.protected boolean
isNodeOfInterest(AuthorNode nodeToEdit, java.lang.String property2Check)
Check if the node is of interest.protected boolean
needComplexSurround(AuthorNode nodeToEdit)
Check if the edited node need more complex surrounding.-
Methods inherited from class ro.sync.ecss.extensions.commons.imagemap.EditImageMapWithSurroundCore
getNodesOfInterest
-
Methods inherited from class ro.sync.ecss.extensions.commons.imagemap.EditImageMapCore
findNodeOfInterest, getFullySelectedNode
-
-
-
-
Method Detail
-
getSupportedFramework
public SupportedFrameworks getSupportedFramework(java.lang.String namespaceURI)
Description copied from class:EditImageMapCore
Detect the supported framework.- Specified by:
getSupportedFramework
in classEditImageMapCore
- Parameters:
namespaceURI
- The namespace uri of the element.- Returns:
- The supported framework.
- See Also:
EditImageMapCore.getSupportedFramework(java.lang.String)
-
getNodesOfInterestCriteria
protected java.lang.String[] getNodesOfInterestCriteria(java.lang.String namespace)
Description copied from class:EditImageMapWithSurroundCore
Get the criteria for nodes of interest, and the start and end of the fragment to surround with.- Specified by:
getNodesOfInterestCriteria
in classEditImageMapWithSurroundCore
- Parameters:
namespace
- The namespace of the document.- Returns:
- A 4 items array with the main property, the secondary property, and the start + end of the fragment to surround with.
- See Also:
EditImageMapWithSurroundCore.getNodesOfInterestCriteria(java.lang.String)
-
needComplexSurround
protected boolean needComplexSurround(AuthorNode nodeToEdit)
Description copied from class:EditImageMapWithSurroundCore
Check if the edited node need more complex surrounding.- Overrides:
needComplexSurround
in classEditImageMapWithSurroundCore
- Parameters:
nodeToEdit
- The node to edit.- Returns:
true
if complex surrounding need to be performed.- See Also:
EditImageMapWithSurroundCore.needComplexSurround(ro.sync.ecss.extensions.api.node.AuthorNode)
-
isNodeOfInterest
protected boolean isNodeOfInterest(AuthorNode nodeToEdit, java.lang.String property2Check)
Description copied from class:EditImageMapCore
Check if the node is of interest.- Overrides:
isNodeOfInterest
in classEditImageMapCore
- Parameters:
nodeToEdit
- The node to edit candidate.property2Check
- The property value to check.- Returns:
true
if the node is eligible,false
otherwise.- See Also:
EditImageMapCore.isNodeOfInterest(ro.sync.ecss.extensions.api.node.AuthorNode, java.lang.String)
-
-