public interface SimpleInclusion extends XInclusion
SimpleInclusionScheme
Modifier and Type | Method and Description |
---|---|
Node[] |
copySourceNodes(Node firstNode,
Node lastNode)
Returns nodes to be included, which are copies, as is (XInclude 1.0) or
modified (DITA Conref, XInclude 1.1), of specified source nodes.
|
Node[] |
getSourceNodes(Document sourceDocument,
Node inclusionHolder)
Returns the original nodes.
|
URL |
getSourceURL(Node inclusionHolder)
Returns the URL of document from which the nodes have been included.
|
getSchemeName, include, isMarkedForUpdate, setMarkedForUpdate, uninclude
toClipboardForm
URL getSourceURL(Node inclusionHolder)
null
(e.g. unresolved DITA conkeyref).inclusionHolder
- one of the included nodes, that is, one
of the nodes having an INCLUSION_PROPERTY property pointing
to this SimpleInclusion.
Generally this parameter is not used.
Node[] getSourceNodes(Document sourceDocument, Node inclusionHolder) throws InclusionException
sourceDocument
- the document containing the original nodes.
The URL of this document is returned by getSourceURL(com.xmlmind.xml.doc.Node)
.
inclusionHolder
- one of the included nodes, that is, one
of the nodes having an INCLUSION_PROPERTY property pointing
to this SimpleInclusion.
Generally this parameter is not used.
InclusionException
- if this SimpleInclusion fails to
locate the original nodesNode[] copySourceNodes(Node firstNode, Node lastNode)
This method is needed to implement the copyAsInclusion command.
firstNode
- first source node represented by this inclusion objectlastNode
- last source node represented by this inclusion object
firstNode and lastNode specify a node range which is attached to the document tree. None of these nodes has already been included.