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
_class
protected static String
_object_id
static DefaultTopicMapDocumentGenerator
INSTANCE
-
Constructor Summary
Constructors Constructor Description DefaultTopicMapDocumentGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addContentField(DocumentIF doc, String value)
protected void
addLocatorField(DocumentIF doc, LocatorIF locator)
protected void
addObjectFields(DocumentIF doc, TMObjectIF tmobject, String klass)
protected DocumentIF
createDocument()
DocumentIF
generate(AssociationIF assoc)
INTERNAL: Generate a document for the given association.DocumentIF
generate(AssociationRoleIF assocrl)
INTERNAL: Generate a document for the given association role.DocumentIF
generate(OccurrenceIF occur)
INTERNAL: Generate a document for the given occurrence.DocumentIF
generate(TopicIF topic)
INTERNAL: Generate a document for the given topic.DocumentIF
generate(TopicMapIF topicmap)
INTERNAL: Generate a document for the given topic map.DocumentIF
generate(TopicNameIF basename)
INTERNAL: Generate a document for the given basename.DocumentIF
generate(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:TopicMapDocumentGeneratorIF
INTERNAL: Generate a document for the given association.- Specified by:
generate
in interfaceTopicMapDocumentGeneratorIF
-
generate
public DocumentIF generate(AssociationRoleIF assocrl)
Description copied from interface:TopicMapDocumentGeneratorIF
INTERNAL: Generate a document for the given association role.- Specified by:
generate
in interfaceTopicMapDocumentGeneratorIF
-
generate
public DocumentIF generate(TopicNameIF basename)
Description copied from interface:TopicMapDocumentGeneratorIF
INTERNAL: Generate a document for the given basename.- Specified by:
generate
in interfaceTopicMapDocumentGeneratorIF
-
generate
public DocumentIF generate(OccurrenceIF occur)
Description copied from interface:TopicMapDocumentGeneratorIF
INTERNAL: Generate a document for the given occurrence.- Specified by:
generate
in interfaceTopicMapDocumentGeneratorIF
-
generate
public DocumentIF generate(VariantNameIF variant)
Description copied from interface:TopicMapDocumentGeneratorIF
INTERNAL: Generate a document for the given variant name.- Specified by:
generate
in interfaceTopicMapDocumentGeneratorIF
-
generate
public DocumentIF generate(TopicIF topic)
Description copied from interface:TopicMapDocumentGeneratorIF
INTERNAL: Generate a document for the given topic.- Specified by:
generate
in interfaceTopicMapDocumentGeneratorIF
-
generate
public DocumentIF generate(TopicMapIF topicmap)
Description copied from interface:TopicMapDocumentGeneratorIF
INTERNAL: Generate a document for the given topic map.- Specified by:
generate
in interfaceTopicMapDocumentGeneratorIF
-
createDocument
protected DocumentIF createDocument()
-
-