public interface SimpleInclusionScheme extends XInclusionScheme
XInclude, DITA conref, etc, are SimpleInclusion schemes.
Modifier and Type | Method and Description |
---|---|
boolean |
createSimpleInclusion(Node firstNode,
Node lastNode,
boolean createAbsoluteReference,
String absoluteReference,
Map<Object,Object> options,
SimpleInclusion[] created)
Create and return an SimpleInclusion representing specified nodes.
|
Includable[] |
listIncludables(Document document)
Lists obvious node ranges (typically a single element having an ID)
found in specified document which could be successfully copied
by reference using
createSimpleInclusion(com.xmlmind.xml.doc.Node, com.xmlmind.xml.doc.Node, boolean, java.lang.String, java.util.Map<java.lang.Object, java.lang.Object>, com.xmlmind.xml.load.SimpleInclusion[]) . |
detectXInclusion, getSchemeName
boolean createSimpleInclusion(Node firstNode, Node lastNode, boolean createAbsoluteReference, String absoluteReference, Map<Object,Object> options, SimpleInclusion[] created)
This method is needed to implement the copyAsInclusion command.
firstNode
- first node to be representedlastNode
- last node to be represented.
firstNode and lastNode specify a node range which is attached to the document tree. None of these nodes has already been included.
createAbsoluteReference
- use absolute rather relative URL
in created SimpleInclusion.
This parameter may be ignored if not meaningful.absoluteReference
- the XML catalog resolved
absolute reference to use.
Ignored if createAbsoluteReference is false
.
If createAbsoluteReference is true
:
null
, a absolute URL determined using
firstNode/lastNode is used.
options
- scheme-specific options other than
createAbsoluteReference. May be null
.
This parameter may be ignored if not meaningful.created
- an SimpleInclusion representing specified nodes, if any,
is assigned to created
. May be null
(just a test, no creation of a SimpleInclusion object).true
if a SimpleInclusion representing
specified nodes can be/has been created; false
otherwiseIncludable[] listIncludables(Document document)
createSimpleInclusion(com.xmlmind.xml.doc.Node, com.xmlmind.xml.doc.Node, boolean, java.lang.String, java.util.Map<java.lang.Object, java.lang.Object>, com.xmlmind.xml.load.SimpleInclusion[])
.
This method is needed to implement the include command.
document
- the document to be searched for includable nodesnull
or empty.