Class DefaultTopicMapDocumentGenerator
- java.lang.Object
-
- net.ontopia.infoset.fulltext.topicmaps.DefaultTopicMapDocumentGenerator
-
- All Implemented Interfaces:
TopicMapDocumentGeneratorIF
public class DefaultTopicMapDocumentGenerator extends Object implements 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
Fields Modifier and Type Field Description protected static String_classprotected static String_object_idstatic DefaultTopicMapDocumentGeneratorINSTANCE
-
Constructor Summary
Constructors Constructor Description DefaultTopicMapDocumentGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddContentField(DocumentIF doc, String value)protected voidaddLocatorField(DocumentIF doc, LocatorIF locator)protected voidaddObjectFields(DocumentIF doc, TMObjectIF tmobject, String klass)protected DocumentIFcreateDocument()DocumentIFgenerate(AssociationIF assoc)INTERNAL: Generate a document for the given association.DocumentIFgenerate(AssociationRoleIF assocrl)INTERNAL: Generate a document for the given association role.DocumentIFgenerate(OccurrenceIF occur)INTERNAL: Generate a document for the given occurrence.DocumentIFgenerate(TopicIF topic)INTERNAL: Generate a document for the given topic.DocumentIFgenerate(TopicMapIF topicmap)INTERNAL: Generate a document for the given topic map.DocumentIFgenerate(TopicNameIF basename)INTERNAL: Generate a document for the given basename.DocumentIFgenerate(VariantNameIF variant)INTERNAL: Generate a document for the given variant name.
-
-
-
Field Detail
-
INSTANCE
public static final DefaultTopicMapDocumentGenerator INSTANCE
-
_object_id
protected static final String _object_id
- See Also:
- Constant Field Values
-
_class
protected static final String _class
- See Also:
- Constant Field Values
-
-
Method Detail
-
addObjectFields
protected void addObjectFields(DocumentIF doc, TMObjectIF tmobject, String klass)
-
addContentField
protected void addContentField(DocumentIF doc, String value)
-
addLocatorField
protected void addLocatorField(DocumentIF doc, LocatorIF locator)
-
generate
public DocumentIF generate(AssociationIF assoc)
Description copied from interface:TopicMapDocumentGeneratorIFINTERNAL: Generate a document for the given association.- Specified by:
generatein interfaceTopicMapDocumentGeneratorIF
-
generate
public DocumentIF generate(AssociationRoleIF assocrl)
Description copied from interface:TopicMapDocumentGeneratorIFINTERNAL: Generate a document for the given association role.- Specified by:
generatein interfaceTopicMapDocumentGeneratorIF
-
generate
public DocumentIF generate(TopicNameIF basename)
Description copied from interface:TopicMapDocumentGeneratorIFINTERNAL: Generate a document for the given basename.- Specified by:
generatein interfaceTopicMapDocumentGeneratorIF
-
generate
public DocumentIF generate(OccurrenceIF occur)
Description copied from interface:TopicMapDocumentGeneratorIFINTERNAL: Generate a document for the given occurrence.- Specified by:
generatein interfaceTopicMapDocumentGeneratorIF
-
generate
public DocumentIF generate(VariantNameIF variant)
Description copied from interface:TopicMapDocumentGeneratorIFINTERNAL: Generate a document for the given variant name.- Specified by:
generatein interfaceTopicMapDocumentGeneratorIF
-
generate
public DocumentIF generate(TopicIF topic)
Description copied from interface:TopicMapDocumentGeneratorIFINTERNAL: Generate a document for the given topic.- Specified by:
generatein interfaceTopicMapDocumentGeneratorIF
-
generate
public DocumentIF generate(TopicMapIF topicmap)
Description copied from interface:TopicMapDocumentGeneratorIFINTERNAL: Generate a document for the given topic map.- Specified by:
generatein interfaceTopicMapDocumentGeneratorIF
-
createDocument
protected DocumentIF createDocument()
-
-