org.tm4j.topicmap.utils.XTMWriter .getID(org.tm4j.topicmap.TopicMapObject tmo)

Description

Returns the id attribute value to be exported for the specified TopicMapObject. If the exportResourceIDs option is true and the specified object has an associated resource id as determined by getResourceID(TopicMapObject), then this value is always returned. Otherwise, if the object is a Topic object or if the exportImpliedIDs option is true, then the value of the ID property of the object is returned.

Parameters
org.tm4j.topicmap.TopicMapObject tmo the object to return the exported id attribute value for

Returns

the value which should be specified for the id attribute of the XTM element exported for the specified object.

Other Resources

Related Topics

Has Parameters