test_class.declarator: topicmap
test_class.modifier: private
test_class.original_string: private TopicMapIF topicmap;
test_class.type: TopicMapIF
test_class.var_name: topicmap
test_class.declarator: builder
test_class.modifier: private
test_class.original_string: private TopicMapBuilderIF builder;
test_class.type: TopicMapBuilderIF
test_class.var_name: builder
test_class.declarator: testdataDirectory = "tmxmlWriter"
test_class.modifier: private final static
test_class.original_string: private final static String testdataDirectory = "tmxmlWriter";
test_class.type: String
test_class.var_name: testdataDirectory
test_class.file: ontopia-engine/src/test/java/net/ontopia/topicmaps/xml/TMXMLWriterTest.java
test_class.identifier: TMXMLWriterTest
test_case.body: @Test
    public void testBug2116() throws IOException, SAXException {
      MockWriter mock = new MockWriter();
      TMXMLWriter writer = new TMXMLWriter(mock, "utf-8");
      writer.write(topicmap);
      // if bug 2116 occurs we'll get an NPE on the previous line and never
      // get here.
    }
test_case.class_method_signature: TMXMLWriterTest.testBug2116()
test_case.full_signature: @Test public void testBug2116()
test_case.identifier: testBug2116
test_case.invocations: write
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testBug2116()
focal_class.declarator: CDATA = "CDATA"
focal_class.modifier: private static final
focal_class.original_string: private static final String CDATA = "CDATA";
focal_class.type: String
focal_class.var_name: CDATA
focal_class.declarator: SCOPE = "scope"
focal_class.modifier: private static final
focal_class.original_string: private static final String SCOPE = "scope";
focal_class.type: String
focal_class.var_name: SCOPE
focal_class.declarator: PROPERTY_PREFIXES = "prefixes"
focal_class.modifier: public static final
focal_class.original_string: public static final String PROPERTY_PREFIXES = "prefixes";
focal_class.type: String
focal_class.var_name: PROPERTY_PREFIXES
focal_class.declarator: PROPERTY_DOCUMENT_ELEMENT = "documentElement"
focal_class.modifier: public static final
focal_class.original_string: public static final String PROPERTY_DOCUMENT_ELEMENT = "documentElement";
focal_class.type: String
focal_class.var_name: PROPERTY_DOCUMENT_ELEMENT
focal_class.declarator: EMPTY_ATTR_LIST = new AttributesImpl()
focal_class.modifier: protected static final
focal_class.original_string: protected static final AttributesImpl EMPTY_ATTR_LIST = new AttributesImpl();
focal_class.type: AttributesImpl
focal_class.var_name: EMPTY_ATTR_LIST
focal_class.declarator: EMPTY_NAMESPACE = ""
focal_class.modifier: protected static final
focal_class.original_string: protected static final String EMPTY_NAMESPACE = "";
focal_class.type: String
focal_class.var_name: EMPTY_NAMESPACE
focal_class.declarator: EMPTY_LOCALNAME = ""
focal_class.modifier: protected static final
focal_class.original_string: protected static final String EMPTY_LOCALNAME = "";
focal_class.type: String
focal_class.var_name: EMPTY_LOCALNAME
focal_class.declarator: out
focal_class.modifier: private
focal_class.original_string: private ContentHandler out;
focal_class.type: ContentHandler
focal_class.var_name: out
focal_class.declarator: writer = null
focal_class.modifier: private
focal_class.original_string: private Writer writer = null;
focal_class.type: Writer
focal_class.var_name: writer
focal_class.declarator: docelem = "topicmap"
focal_class.modifier: private
focal_class.original_string: private String docelem = "topicmap";
focal_class.type: String
focal_class.var_name: docelem
focal_class.declarator: atts = new AttributesImpl()
focal_class.modifier: private
focal_class.original_string: private AttributesImpl atts = new AttributesImpl();
focal_class.type: AttributesImpl
focal_class.var_name: atts
focal_class.declarator: nsuris
focal_class.modifier: private
focal_class.original_string: private Map nsuris;
focal_class.type: Map
focal_class.var_name: nsuris
focal_class.declarator: prefixes
focal_class.modifier: private
focal_class.original_string: private Map prefixes;
focal_class.type: Map
focal_class.var_name: prefixes
focal_class.declarator: exported
focal_class.modifier: private
focal_class.original_string: private Set exported;
focal_class.type: Set
focal_class.var_name: exported
focal_class.declarator: unassigned
focal_class.modifier: private
focal_class.original_string: private Set unassigned;
focal_class.type: Set
focal_class.var_name: unassigned
focal_class.declarator: NS_ISO = "http://psi.topicmaps.org/iso13250/model/"
focal_class.modifier: public static final
focal_class.original_string: public static final String NS_ISO = "http://psi.topicmaps.org/iso13250/model/";
focal_class.type: String
focal_class.var_name: NS_ISO
focal_class.declarator: NS_XTM = "http://www.topicmaps.org/xtm/1.0/core.xtm#"
focal_class.modifier: public static final
focal_class.original_string: public static final String NS_XTM = "http://www.topicmaps.org/xtm/1.0/core.xtm#";
focal_class.type: String
focal_class.var_name: NS_XTM
focal_class.declarator: NS_TM = "http://psi.ontopia.net/xml/tm-xml/"
focal_class.modifier: public static final
focal_class.original_string: public static final String NS_TM = "http://psi.ontopia.net/xml/tm-xml/";
focal_class.type: String
focal_class.var_name: NS_TM
focal_class.declarator: XSD_ANYURI = "http://www.w3.org/2001/XMLSchema#anyURI"
focal_class.modifier: public static final
focal_class.original_string: public static final String XSD_ANYURI = "http://www.w3.org/2001/XMLSchema#anyURI";
focal_class.type: String
focal_class.var_name: XSD_ANYURI
focal_class.declarator: XSD_STRING = "http://www.w3.org/2001/XMLSchema#string"
focal_class.modifier: public static final
focal_class.original_string: public static final String XSD_STRING = "http://www.w3.org/2001/XMLSchema#string";
focal_class.type: String
focal_class.var_name: XSD_STRING
focal_class.file: ontopia-engine/src/main/java/net/ontopia/topicmaps/xml/TMXMLWriter.java
focal_class.identifier: TMXMLWriter
focal_class.interfaces: implements TopicMapWriterIF
focal_class.class_method_signature: TMXMLWriter.TMXMLWriter(Writer out)
focal_class.full_signature: public  TMXMLWriter(Writer out)
focal_class.identifier: TMXMLWriter
focal_class.modifiers: public
focal_class.parameters: (Writer out)
focal_class.signature:  TMXMLWriter(Writer out)
focal_class.class_method_signature: TMXMLWriter.TMXMLWriter(Writer out, String encoding)
focal_class.full_signature: public  TMXMLWriter(Writer out, String encoding)
focal_class.identifier: TMXMLWriter
focal_class.modifiers: public
focal_class.parameters: (Writer out, String encoding)
focal_class.signature:  TMXMLWriter(Writer out, String encoding)
focal_class.class_method_signature: TMXMLWriter.TMXMLWriter(File out)
focal_class.full_signature: public  TMXMLWriter(File out)
focal_class.identifier: TMXMLWriter
focal_class.modifiers: public
focal_class.parameters: (File out)
focal_class.signature:  TMXMLWriter(File out)
focal_class.class_method_signature: TMXMLWriter.TMXMLWriter(File out, String encoding)
focal_class.full_signature: public  TMXMLWriter(File out, String encoding)
focal_class.identifier: TMXMLWriter
focal_class.modifiers: public
focal_class.parameters: (File out, String encoding)
focal_class.signature:  TMXMLWriter(File out, String encoding)
focal_class.class_method_signature: TMXMLWriter.TMXMLWriter(OutputStream out, String encoding)
focal_class.full_signature: public  TMXMLWriter(OutputStream out, String encoding)
focal_class.identifier: TMXMLWriter
focal_class.modifiers: public
focal_class.parameters: (OutputStream out, String encoding)
focal_class.signature:  TMXMLWriter(OutputStream out, String encoding)
focal_class.class_method_signature: TMXMLWriter.TMXMLWriter(ContentHandler out)
focal_class.full_signature: public  TMXMLWriter(ContentHandler out)
focal_class.identifier: TMXMLWriter
focal_class.modifiers: public
focal_class.parameters: (ContentHandler out)
focal_class.signature:  TMXMLWriter(ContentHandler out)
focal_class.class_method_signature: TMXMLWriter.init()
focal_class.full_signature: private void init()
focal_class.identifier: init
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: TMXMLWriter.close()
focal_class.full_signature: public void close()
focal_class.identifier: close
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: TMXMLWriter.getDocumentElement()
focal_class.full_signature: public String getDocumentElement()
focal_class.identifier: getDocumentElement
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getDocumentElement()
focal_class.class_method_signature: TMXMLWriter.setDocumentElement(String docelem)
focal_class.full_signature: public void setDocumentElement(String docelem)
focal_class.identifier: setDocumentElement
focal_class.modifiers: public
focal_class.parameters: (String docelem)
focal_class.return: void
focal_class.signature: void setDocumentElement(String docelem)
focal_class.class_method_signature: TMXMLWriter.write(TopicMapIF topicmap)
focal_class.full_signature: @Override public void write(TopicMapIF topicmap)
focal_class.identifier: write
focal_class.modifiers: @Override public
focal_class.parameters: (TopicMapIF topicmap)
focal_class.return: void
focal_class.signature: void write(TopicMapIF topicmap)
focal_class.class_method_signature: TMXMLWriter.startTopicMap(TopicMapIF topicmap)
focal_class.full_signature: public void startTopicMap(TopicMapIF topicmap)
focal_class.identifier: startTopicMap
focal_class.modifiers: public
focal_class.parameters: (TopicMapIF topicmap)
focal_class.return: void
focal_class.signature: void startTopicMap(TopicMapIF topicmap)
focal_class.class_method_signature: TMXMLWriter.gatherPrefixes(Collection topics)
focal_class.full_signature: public void gatherPrefixes(Collection topics)
focal_class.identifier: gatherPrefixes
focal_class.modifiers: public
focal_class.parameters: (Collection topics)
focal_class.return: void
focal_class.signature: void gatherPrefixes(Collection topics)
focal_class.class_method_signature: TMXMLWriter.writeTopics(Collection topics)
focal_class.full_signature: public void writeTopics(Collection topics)
focal_class.identifier: writeTopics
focal_class.modifiers: public
focal_class.parameters: (Collection topics)
focal_class.return: void
focal_class.signature: void writeTopics(Collection topics)
focal_class.class_method_signature: TMXMLWriter.writeTopic(TopicIF topic)
focal_class.full_signature: public void writeTopic(TopicIF topic)
focal_class.identifier: writeTopic
focal_class.modifiers: public
focal_class.parameters: (TopicIF topic)
focal_class.return: void
focal_class.signature: void writeTopic(TopicIF topic)
focal_class.class_method_signature: TMXMLWriter.endTopicMap()
focal_class.full_signature: public void endTopicMap()
focal_class.identifier: endTopicMap
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void endTopicMap()
focal_class.class_method_signature: TMXMLWriter.gatherPrefixes(TopicIF topic)
focal_class.full_signature: public void gatherPrefixes(TopicIF topic)
focal_class.identifier: gatherPrefixes
focal_class.modifiers: public
focal_class.parameters: (TopicIF topic)
focal_class.return: void
focal_class.signature: void gatherPrefixes(TopicIF topic)
focal_class.class_method_signature: TMXMLWriter.getNamespaceURIMapping()
focal_class.full_signature: public Map getNamespaceURIMapping()
focal_class.identifier: getNamespaceURIMapping
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map
focal_class.signature: Map getNamespaceURIMapping()
focal_class.class_method_signature: TMXMLWriter.getScope(ScopedIF scoped)
focal_class.full_signature: private String getScope(ScopedIF scoped)
focal_class.identifier: getScope
focal_class.modifiers: private
focal_class.parameters: (ScopedIF scoped)
focal_class.return: String
focal_class.signature: String getScope(ScopedIF scoped)
focal_class.class_method_signature: TMXMLWriter.findPrefixFor(Collection topics)
focal_class.full_signature: private void findPrefixFor(Collection topics)
focal_class.identifier: findPrefixFor
focal_class.modifiers: private
focal_class.parameters: (Collection topics)
focal_class.return: void
focal_class.signature: void findPrefixFor(Collection topics)
focal_class.class_method_signature: TMXMLWriter.findPrefixFor(TopicIF type)
focal_class.full_signature: private void findPrefixFor(TopicIF type)
focal_class.identifier: findPrefixFor
focal_class.modifiers: private
focal_class.parameters: (TopicIF type)
focal_class.return: void
focal_class.signature: void findPrefixFor(TopicIF type)
focal_class.class_method_signature: TMXMLWriter.writeText(String text)
focal_class.full_signature: private void writeText(String text)
focal_class.identifier: writeText
focal_class.modifiers: private
focal_class.parameters: (String text)
focal_class.return: void
focal_class.signature: void writeText(String text)
focal_class.class_method_signature: TMXMLWriter.getElementTypeName(TopicIF topic, String def)
focal_class.full_signature: private String getElementTypeName(TopicIF topic, String def)
focal_class.identifier: getElementTypeName
focal_class.modifiers: private
focal_class.parameters: (TopicIF topic, String def)
focal_class.return: String
focal_class.signature: String getElementTypeName(TopicIF topic, String def)
focal_class.class_method_signature: TMXMLWriter.getElementTypeName(String psi)
focal_class.full_signature: private String getElementTypeName(String psi)
focal_class.identifier: getElementTypeName
focal_class.modifiers: private
focal_class.parameters: (String psi)
focal_class.return: String
focal_class.signature: String getElementTypeName(String psi)
focal_class.class_method_signature: TMXMLWriter.getPrefix(String baseurl)
focal_class.full_signature: private String getPrefix(String baseurl)
focal_class.identifier: getPrefix
focal_class.modifiers: private
focal_class.parameters: (String baseurl)
focal_class.return: String
focal_class.signature: String getPrefix(String baseurl)
focal_class.class_method_signature: TMXMLWriter.assignRemainingNamespaces()
focal_class.full_signature: private void assignRemainingNamespaces()
focal_class.identifier: assignRemainingNamespaces
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void assignRemainingNamespaces()
focal_class.class_method_signature: TMXMLWriter.getTopicId(TopicIF topic)
focal_class.full_signature: private String getTopicId(TopicIF topic)
focal_class.identifier: getTopicId
focal_class.modifiers: private
focal_class.parameters: (TopicIF topic)
focal_class.return: String
focal_class.signature: String getTopicId(TopicIF topic)
focal_class.class_method_signature: TMXMLWriter.extractRelativeId(String base, LocatorIF srcloc)
focal_class.full_signature: private String extractRelativeId(String base, LocatorIF srcloc)
focal_class.identifier: extractRelativeId
focal_class.modifiers: private
focal_class.parameters: (String base, LocatorIF srcloc)
focal_class.return: String
focal_class.signature: String extractRelativeId(String base, LocatorIF srcloc)
focal_class.class_method_signature: TMXMLWriter.makePrinter(Writer out, String encoding)
focal_class.full_signature: private PrettyPrinter makePrinter(Writer out, String encoding)
focal_class.identifier: makePrinter
focal_class.modifiers: private
focal_class.parameters: (Writer out, String encoding)
focal_class.return: PrettyPrinter
focal_class.signature: PrettyPrinter makePrinter(Writer out, String encoding)
focal_class.class_method_signature: TMXMLWriter.addPrefix(String prefix, String nsuri)
focal_class.full_signature: public void addPrefix(String prefix, String nsuri)
focal_class.identifier: addPrefix
focal_class.modifiers: public
focal_class.parameters: (String prefix, String nsuri)
focal_class.return: void
focal_class.signature: void addPrefix(String prefix, String nsuri)
focal_class.class_method_signature: TMXMLWriter.getSubjectIndicatorRef(TopicIF topic, LocatorIF indicator)
focal_class.full_signature: protected String getSubjectIndicatorRef(TopicIF topic, LocatorIF indicator)
focal_class.identifier: getSubjectIndicatorRef
focal_class.modifiers: protected
focal_class.parameters: (TopicIF topic, LocatorIF indicator)
focal_class.return: String
focal_class.signature: String getSubjectIndicatorRef(TopicIF topic, LocatorIF indicator)
focal_class.class_method_signature: TMXMLWriter.addReifierAttribute(ReifiableIF tmobject, AttributesImpl atts)
focal_class.full_signature: private void addReifierAttribute(ReifiableIF tmobject, AttributesImpl atts)
focal_class.identifier: addReifierAttribute
focal_class.modifiers: private
focal_class.parameters: (ReifiableIF tmobject, AttributesImpl atts)
focal_class.return: void
focal_class.signature: void addReifierAttribute(ReifiableIF tmobject, AttributesImpl atts)
focal_class.class_method_signature: TMXMLWriter.setAdditionalProperties(Map<String, Object> properties)
focal_class.full_signature: @Override public void setAdditionalProperties(Map<String, Object> properties)
focal_class.identifier: setAdditionalProperties
focal_class.modifiers: @Override public
focal_class.parameters: (Map<String, Object> properties)
focal_class.return: void
focal_class.signature: void setAdditionalProperties(Map<String, Object> properties)
focal_class.superclass: extends AbstractTopicMapExporter
focal_method.body: @Override
    public void write(TopicMapIF topicmap) throws IOException {
      try {
        gatherPrefixes(topicmap.getTopics());
        startTopicMap(topicmap);
        writeTopics(filterCollection(topicmap.getTopics()));
        endTopicMap();
        close();      
      } catch (SAXException e) {
        throw new OntopiaRuntimeException(e);
      }
    }
focal_method.class_method_signature: TMXMLWriter.write(TopicMapIF topicmap)
focal_method.full_signature: @Override public void write(TopicMapIF topicmap)
focal_method.identifier: write
focal_method.invocations: gatherPrefixes getTopics startTopicMap writeTopics filterCollection getTopics endTopicMap close
focal_method.modifiers: @Override public
focal_method.parameters: (TopicMapIF topicmap)
focal_method.return: void
focal_method.signature: void write(TopicMapIF topicmap)