Class TMXMLTopicMapReference

All Implemented Interfaces:
AutoCloseable, TopicMapReferenceIF, TransactionEventListenerIF

public class TMXMLTopicMapReference extends AbstractOntopolyURLReference
INTERNAL: A TM/XML file topic map reference.
  • Field Details

    • validate

      protected boolean validate
  • Constructor Details

    • TMXMLTopicMapReference

      public TMXMLTopicMapReference(URL url, String id, String title)
    • TMXMLTopicMapReference

      public TMXMLTopicMapReference(URL url, String id, String title, LocatorIF base_address)
  • Method Details

    • setValidation

      public void setValidation(boolean validate)
      PUBLIC: Turn validation of TM/XML files according to the RELAX-NG schema on or off. The validation checks if the documents read follow the schema, and will abort import if they do not.
      Parameters:
      validate - Will validate if true, will not if false.
    • getValidation

      public boolean getValidation()
      PUBLIC: Returns true if validation is on, false otherwise.
    • 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
    • getImporter

      protected TopicMapReaderIF getImporter() throws IOException
      Specified by:
      getImporter in class AbstractOntopolyURLReference
      Throws:
      IOException