org.tm4j.topicmap.utils.XTMWriter .setExportResourceIDs(boolean b)

Description

Sets the exportResourceIDs option for the writer.

If this option is set to true then for each object exported, if that object has a value for its sourceLocators property and if the document part of one of the sourceLocators values matches the document part of the resourceBase property of the XTMWriter instance, then the fragment part of the sourceLocator value will be exported as the id attribute value of the XTM element.

If the object being exported is a Topic and its sourceLocators property does not contain a value where the document part of the sourceLocator does not match the document part of the resourceBase value, then all of the Topic object's subjectIndicators will be checked and if one of those has a document part which matches the document part of the resourceBase value, then the fragment part of that subjectIndicator will be exported as the <topic> element's id attribute.

Note This setting overrides the exportImpliedIDs property - in other words, if exportImpliedIDs is false and exportResourceIDs is true, then id attributes will still be generated for any object with a non-empty sourceLocators value. If both settings are true, then the ID generated from the sourceLocators of the object takes precedence over the ID generated from the id property of the object.

Parameters
boolean b the new value of the exportResourceIDs option

Other Resources