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: tm
test_class.modifier: private
test_class.original_string: private TopicMapIF tm;
test_class.type: TopicMapIF
test_class.var_name: tm
test_class.file: ontopia-engine/src/test/java/net/ontopia/topicmaps/utils/jtm/JTMTopicMapWriterTest.java
test_class.identifier: JTMTopicMapWriterTest
test_case.body: @Test
    public void testWriteToWriter() throws IOException {
      builder.makeTopic();
      File file = TestFileUtils.getTestOutputFile("jtm", "io-w.jtm");
      new JTMTopicMapWriter(new FileWriter(file)).write(tm);
      Assert.assertTrue(Files.size(file.toPath()) > 0);
    }
test_case.class_method_signature: JTMTopicMapWriterTest.testWriteToWriter()
test_case.full_signature: @Test public void testWriteToWriter()
test_case.identifier: testWriteToWriter
test_case.invocations: makeTopic getTestOutputFile write assertTrue size toPath
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testWriteToWriter()
focal_class.declarator: log = LoggerFactory
        .getLogger(JTMTopicMapWriter.class.getName())
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory
        .getLogger(JTMTopicMapWriter.class.getName());
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: TYPE = "type"
focal_class.modifier: private static final
focal_class.original_string: private static final String TYPE = "type";
focal_class.type: String
focal_class.var_name: TYPE
focal_class.declarator: SI = "si:"
focal_class.modifier: private static final
focal_class.original_string: private static final String SI = "si:";
focal_class.type: String
focal_class.var_name: SI
focal_class.declarator: VERSION = "1.0"
focal_class.modifier: private final static
focal_class.original_string: private final static String VERSION = "1.0";
focal_class.type: String
focal_class.var_name: VERSION
focal_class.declarator: writer
focal_class.modifier: private
focal_class.original_string: private JSONWriter writer;
focal_class.type: JSONWriter
focal_class.var_name: writer
focal_class.declarator: baseLoc
focal_class.modifier: private
focal_class.original_string: private LocatorIF baseLoc;
focal_class.type: LocatorIF
focal_class.var_name: baseLoc
focal_class.file: ontopia-engine/src/main/java/net/ontopia/topicmaps/utils/jtm/JTMTopicMapWriter.java
focal_class.identifier: JTMTopicMapWriter
focal_class.interfaces: implements TopicMapWriterIF
focal_class.class_method_signature: JTMTopicMapWriter.JTMTopicMapWriter(File file)
focal_class.full_signature: public  JTMTopicMapWriter(File file)
focal_class.identifier: JTMTopicMapWriter
focal_class.modifiers: public
focal_class.parameters: (File file)
focal_class.signature:  JTMTopicMapWriter(File file)
focal_class.class_method_signature: JTMTopicMapWriter.JTMTopicMapWriter(File file, String encoding)
focal_class.full_signature: public  JTMTopicMapWriter(File file, String encoding)
focal_class.identifier: JTMTopicMapWriter
focal_class.modifiers: public
focal_class.parameters: (File file, String encoding)
focal_class.signature:  JTMTopicMapWriter(File file, String encoding)
focal_class.class_method_signature: JTMTopicMapWriter.JTMTopicMapWriter(OutputStream stream)
focal_class.full_signature: public  JTMTopicMapWriter(OutputStream stream)
focal_class.identifier: JTMTopicMapWriter
focal_class.modifiers: public
focal_class.parameters: (OutputStream stream)
focal_class.signature:  JTMTopicMapWriter(OutputStream stream)
focal_class.class_method_signature: JTMTopicMapWriter.JTMTopicMapWriter(OutputStream stream, String encoding)
focal_class.full_signature: public  JTMTopicMapWriter(OutputStream stream, String encoding)
focal_class.identifier: JTMTopicMapWriter
focal_class.modifiers: public
focal_class.parameters: (OutputStream stream, String encoding)
focal_class.signature:  JTMTopicMapWriter(OutputStream stream, String encoding)
focal_class.class_method_signature: JTMTopicMapWriter.JTMTopicMapWriter(Writer out)
focal_class.full_signature: public  JTMTopicMapWriter(Writer out)
focal_class.identifier: JTMTopicMapWriter
focal_class.modifiers: public
focal_class.parameters: (Writer out)
focal_class.signature:  JTMTopicMapWriter(Writer out)
focal_class.class_method_signature: JTMTopicMapWriter.write(TopicMapIF tm)
focal_class.full_signature: @Override public void write(TopicMapIF tm)
focal_class.identifier: write
focal_class.modifiers: @Override public
focal_class.parameters: (TopicMapIF tm)
focal_class.return: void
focal_class.signature: void write(TopicMapIF tm)
focal_class.class_method_signature: JTMTopicMapWriter.write(TMObjectIF object)
focal_class.full_signature: public void write(TMObjectIF object)
focal_class.identifier: write
focal_class.modifiers: public
focal_class.parameters: (TMObjectIF object)
focal_class.return: void
focal_class.signature: void write(TMObjectIF object)
focal_class.class_method_signature: JTMTopicMapWriter.write(Collection<TopicIF> topics,
                      Collection<AssociationIF> assocs)
focal_class.full_signature: public void write(Collection<TopicIF> topics,
                      Collection<AssociationIF> assocs)
focal_class.identifier: write
focal_class.modifiers: public
focal_class.parameters: (Collection<TopicIF> topics,
                      Collection<AssociationIF> assocs)
focal_class.return: void
focal_class.signature: void write(Collection<TopicIF> topics,
                      Collection<AssociationIF> assocs)
focal_class.class_method_signature: JTMTopicMapWriter.serializeTopicMap(TopicMapIF tm)
focal_class.full_signature: private void serializeTopicMap(TopicMapIF tm)
focal_class.identifier: serializeTopicMap
focal_class.modifiers: private
focal_class.parameters: (TopicMapIF tm)
focal_class.return: void
focal_class.signature: void serializeTopicMap(TopicMapIF tm)
focal_class.class_method_signature: JTMTopicMapWriter.serializeTopic(TopicIF topic, boolean topLevel)
focal_class.full_signature: private void serializeTopic(TopicIF topic, boolean topLevel)
focal_class.identifier: serializeTopic
focal_class.modifiers: private
focal_class.parameters: (TopicIF topic, boolean topLevel)
focal_class.return: void
focal_class.signature: void serializeTopic(TopicIF topic, boolean topLevel)
focal_class.class_method_signature: JTMTopicMapWriter.serializeAssociation(AssociationIF association, boolean topLevel)
focal_class.full_signature: private void serializeAssociation(AssociationIF association, boolean topLevel)
focal_class.identifier: serializeAssociation
focal_class.modifiers: private
focal_class.parameters: (AssociationIF association, boolean topLevel)
focal_class.return: void
focal_class.signature: void serializeAssociation(AssociationIF association, boolean topLevel)
focal_class.class_method_signature: JTMTopicMapWriter.serializeRole(AssociationRoleIF role, boolean topLevel)
focal_class.full_signature: private void serializeRole(AssociationRoleIF role, boolean topLevel)
focal_class.identifier: serializeRole
focal_class.modifiers: private
focal_class.parameters: (AssociationRoleIF role, boolean topLevel)
focal_class.return: void
focal_class.signature: void serializeRole(AssociationRoleIF role, boolean topLevel)
focal_class.class_method_signature: JTMTopicMapWriter.serializeTypeInstanceAssociation(TopicIF type, TopicIF instance)
focal_class.full_signature: private void serializeTypeInstanceAssociation(TopicIF type, TopicIF instance)
focal_class.identifier: serializeTypeInstanceAssociation
focal_class.modifiers: private
focal_class.parameters: (TopicIF type, TopicIF instance)
focal_class.return: void
focal_class.signature: void serializeTypeInstanceAssociation(TopicIF type, TopicIF instance)
focal_class.class_method_signature: JTMTopicMapWriter.serializeName(TopicNameIF name, boolean topLevel)
focal_class.full_signature: private void serializeName(TopicNameIF name, boolean topLevel)
focal_class.identifier: serializeName
focal_class.modifiers: private
focal_class.parameters: (TopicNameIF name, boolean topLevel)
focal_class.return: void
focal_class.signature: void serializeName(TopicNameIF name, boolean topLevel)
focal_class.class_method_signature: JTMTopicMapWriter.serializeVariant(VariantNameIF variant, boolean topLevel)
focal_class.full_signature: private void serializeVariant(VariantNameIF variant, boolean topLevel)
focal_class.identifier: serializeVariant
focal_class.modifiers: private
focal_class.parameters: (VariantNameIF variant, boolean topLevel)
focal_class.return: void
focal_class.signature: void serializeVariant(VariantNameIF variant, boolean topLevel)
focal_class.class_method_signature: JTMTopicMapWriter.serializeOccurrence(OccurrenceIF occurrence, boolean topLevel)
focal_class.full_signature: private void serializeOccurrence(OccurrenceIF occurrence, boolean topLevel)
focal_class.identifier: serializeOccurrence
focal_class.modifiers: private
focal_class.parameters: (OccurrenceIF occurrence, boolean topLevel)
focal_class.return: void
focal_class.signature: void serializeOccurrence(OccurrenceIF occurrence, boolean topLevel)
focal_class.class_method_signature: JTMTopicMapWriter.serializeParent(TopicIF parent)
focal_class.full_signature: private void serializeParent(TopicIF parent)
focal_class.identifier: serializeParent
focal_class.modifiers: private
focal_class.parameters: (TopicIF parent)
focal_class.return: void
focal_class.signature: void serializeParent(TopicIF parent)
focal_class.class_method_signature: JTMTopicMapWriter.serializeItemIdentifiers(TMObjectIF obj)
focal_class.full_signature: private void serializeItemIdentifiers(TMObjectIF obj)
focal_class.identifier: serializeItemIdentifiers
focal_class.modifiers: private
focal_class.parameters: (TMObjectIF obj)
focal_class.return: void
focal_class.signature: void serializeItemIdentifiers(TMObjectIF obj)
focal_class.class_method_signature: JTMTopicMapWriter.serializeSubjectIdentifiers(TopicIF topic)
focal_class.full_signature: private void serializeSubjectIdentifiers(TopicIF topic)
focal_class.identifier: serializeSubjectIdentifiers
focal_class.modifiers: private
focal_class.parameters: (TopicIF topic)
focal_class.return: void
focal_class.signature: void serializeSubjectIdentifiers(TopicIF topic)
focal_class.class_method_signature: JTMTopicMapWriter.serializeSubjectLocators(TopicIF topic)
focal_class.full_signature: private void serializeSubjectLocators(TopicIF topic)
focal_class.identifier: serializeSubjectLocators
focal_class.modifiers: private
focal_class.parameters: (TopicIF topic)
focal_class.return: void
focal_class.signature: void serializeSubjectLocators(TopicIF topic)
focal_class.class_method_signature: JTMTopicMapWriter.serializeIdentifiers(String key, Collection<LocatorIF> ids)
focal_class.full_signature: private void serializeIdentifiers(String key, Collection<LocatorIF> ids)
focal_class.identifier: serializeIdentifiers
focal_class.modifiers: private
focal_class.parameters: (String key, Collection<LocatorIF> ids)
focal_class.return: void
focal_class.signature: void serializeIdentifiers(String key, Collection<LocatorIF> ids)
focal_class.class_method_signature: JTMTopicMapWriter.serializeScope(ScopedIF obj)
focal_class.full_signature: private void serializeScope(ScopedIF obj)
focal_class.identifier: serializeScope
focal_class.modifiers: private
focal_class.parameters: (ScopedIF obj)
focal_class.return: void
focal_class.signature: void serializeScope(ScopedIF obj)
focal_class.class_method_signature: JTMTopicMapWriter.serializeType(TypedIF obj)
focal_class.full_signature: private void serializeType(TypedIF obj)
focal_class.identifier: serializeType
focal_class.modifiers: private
focal_class.parameters: (TypedIF obj)
focal_class.return: void
focal_class.signature: void serializeType(TypedIF obj)
focal_class.class_method_signature: JTMTopicMapWriter.serializeDataType(LocatorIF type)
focal_class.full_signature: private void serializeDataType(LocatorIF type)
focal_class.identifier: serializeDataType
focal_class.modifiers: private
focal_class.parameters: (LocatorIF type)
focal_class.return: void
focal_class.signature: void serializeDataType(LocatorIF type)
focal_class.class_method_signature: JTMTopicMapWriter.serializeValue(LocatorIF loc, String value)
focal_class.full_signature: private void serializeValue(LocatorIF loc, String value)
focal_class.identifier: serializeValue
focal_class.modifiers: private
focal_class.parameters: (LocatorIF loc, String value)
focal_class.return: void
focal_class.signature: void serializeValue(LocatorIF loc, String value)
focal_class.class_method_signature: JTMTopicMapWriter.serializeReifier(ReifiableIF obj)
focal_class.full_signature: private void serializeReifier(ReifiableIF obj)
focal_class.identifier: serializeReifier
focal_class.modifiers: private
focal_class.parameters: (ReifiableIF obj)
focal_class.return: void
focal_class.signature: void serializeReifier(ReifiableIF obj)
focal_class.class_method_signature: JTMTopicMapWriter.normaliseLocatorReference(LocatorIF loc)
focal_class.full_signature: private String normaliseLocatorReference(LocatorIF loc)
focal_class.identifier: normaliseLocatorReference
focal_class.modifiers: private
focal_class.parameters: (LocatorIF loc)
focal_class.return: String
focal_class.signature: String normaliseLocatorReference(LocatorIF loc)
focal_class.class_method_signature: JTMTopicMapWriter.longestCommonPath(String source1, String source2)
focal_class.full_signature: private String longestCommonPath(String source1, String source2)
focal_class.identifier: longestCommonPath
focal_class.modifiers: private
focal_class.parameters: (String source1, String source2)
focal_class.return: String
focal_class.signature: String longestCommonPath(String source1, String source2)
focal_class.class_method_signature: JTMTopicMapWriter.getTopicRef(TopicIF ref)
focal_class.full_signature: private String getTopicRef(TopicIF ref)
focal_class.identifier: getTopicRef
focal_class.modifiers: private
focal_class.parameters: (TopicIF ref)
focal_class.return: String
focal_class.signature: String getTopicRef(TopicIF ref)
focal_class.class_method_signature: JTMTopicMapWriter.getJTMTopicRef(LOCATOR_TYPE type, LocatorIF loc)
focal_class.full_signature: private String getJTMTopicRef(LOCATOR_TYPE type, LocatorIF loc)
focal_class.identifier: getJTMTopicRef
focal_class.modifiers: private
focal_class.parameters: (LOCATOR_TYPE type, LocatorIF loc)
focal_class.return: String
focal_class.signature: String getJTMTopicRef(LOCATOR_TYPE type, LocatorIF loc)
focal_class.class_method_signature: JTMTopicMapWriter.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_method.body: @Override
    public void write(TopicMapIF tm) throws IOException {
      write((TMObjectIF) tm);
    }
focal_method.class_method_signature: JTMTopicMapWriter.write(TopicMapIF tm)
focal_method.full_signature: @Override public void write(TopicMapIF tm)
focal_method.identifier: write
focal_method.invocations: write
focal_method.modifiers: @Override public
focal_method.parameters: (TopicMapIF tm)
focal_method.return: void
focal_method.signature: void write(TopicMapIF tm)