Class DefaultTopicMapDocumentGenerator
java.lang.Object
net.ontopia.infoset.fulltext.topicmaps.DefaultTopicMapDocumentGenerator
- All Implemented Interfaces:
TopicMapDocumentGeneratorIF
INTERNAL: The default topic map document generator that generates
DocumentIFs for topic map objects.
All documents get an "object_id" field, containing the object id of the topic map object, and a "class" field indicating the class of object. The default class values are:
AssociationIF: 'A', AssociationRoleIF: 'R', TopicNameIF: 'B', OccurrenceIF: 'O', TopicIF: 'T', TopicMapIF: 'M' and VariantNameIF: 'N'.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringstatic final DefaultTopicMapDocumentGenerator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddContentField(DocumentIF doc, String value) protected voidaddLocatorField(DocumentIF doc, LocatorIF locator) protected voidaddObjectFields(DocumentIF doc, TMObjectIF tmobject, String klass) protected DocumentIFgenerate(AssociationIF assoc) INTERNAL: Generate a document for the given association.generate(AssociationRoleIF assocrl) INTERNAL: Generate a document for the given association role.generate(OccurrenceIF occur) INTERNAL: Generate a document for the given occurrence.INTERNAL: Generate a document for the given topic.generate(TopicMapIF topicmap) INTERNAL: Generate a document for the given topic map.generate(TopicNameIF basename) INTERNAL: Generate a document for the given basename.generate(VariantNameIF variant) INTERNAL: Generate a document for the given variant name.
-
Field Details
-
INSTANCE
-
_object_id
- See Also:
-
_class
- See Also:
-
-
Constructor Details
-
DefaultTopicMapDocumentGenerator
public DefaultTopicMapDocumentGenerator()
-
-
Method Details
-
addObjectFields
-
addContentField
-
addLocatorField
-
generate
Description copied from interface:TopicMapDocumentGeneratorIFINTERNAL: Generate a document for the given association.- Specified by:
generatein interfaceTopicMapDocumentGeneratorIF
-
generate
Description copied from interface:TopicMapDocumentGeneratorIFINTERNAL: Generate a document for the given association role.- Specified by:
generatein interfaceTopicMapDocumentGeneratorIF
-
generate
Description copied from interface:TopicMapDocumentGeneratorIFINTERNAL: Generate a document for the given basename.- Specified by:
generatein interfaceTopicMapDocumentGeneratorIF
-
generate
Description copied from interface:TopicMapDocumentGeneratorIFINTERNAL: Generate a document for the given occurrence.- Specified by:
generatein interfaceTopicMapDocumentGeneratorIF
-
generate
Description copied from interface:TopicMapDocumentGeneratorIFINTERNAL: Generate a document for the given variant name.- Specified by:
generatein interfaceTopicMapDocumentGeneratorIF
-
generate
Description copied from interface:TopicMapDocumentGeneratorIFINTERNAL: Generate a document for the given topic.- Specified by:
generatein interfaceTopicMapDocumentGeneratorIF
-
generate
Description copied from interface:TopicMapDocumentGeneratorIFINTERNAL: Generate a document for the given topic map.- Specified by:
generatein interfaceTopicMapDocumentGeneratorIF
-
createDocument
-