Class XTMTopicMapReference

    • Field Detail

      • followTopicRefs

        protected boolean followTopicRefs
      • validate

        protected boolean validate
    • Constructor Detail

      • XTMTopicMapReference

        public XTMTopicMapReference​(URL url,
                                    String id,
                                    String title)
    • Method Detail

      • setFollowTopicRefs

        public void setFollowTopicRefs​(boolean followTopicRefs)
        PUBLIC: If set to false topicRef elements pointing to external documents will not be traversed. The default is that those the documents pointed to by those elements will be loaded (as per the XTM specification).
        Since:
        3.2
      • setExternalReferenceHandler

        public void setExternalReferenceHandler​(ExternalReferenceHandlerIF handler)
        PUBLIC: Sets the external reference handler.
      • getExternalReferenceHandler

        public ExternalReferenceHandlerIF getExternalReferenceHandler()
        PUBLIC: Gets the external reference handler. The reference handler will receive notifications on references to external topics and topic maps.
      • setValidation

        public void setValidation​(boolean validate)
        PUBLIC: Turn validation of XTM documents according to DTD on or off. The validation checks if the documents read follow the DTD, and will abort import if they do not.
        Parameters:
        validate - Will validate if true, will not if false.
        Since:
        2.0
      • getValidation

        public boolean getValidation()
        PUBLIC: Returns true if validation is on, false otherwise.
        Since:
        2.0
      • save

        public void save()
                  throws IOException
        INTERNAL: Saves the topic map as an XTM document in the location managed by the reference's source.
        Throws:
        IOException