public class DefaultTopicMapDocumentGenerator extends Object implements TopicMapDocumentGeneratorIF
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'.
Modifier and Type | Field and Description |
---|---|
protected static String |
_class |
protected static String |
_object_id |
static DefaultTopicMapDocumentGenerator |
INSTANCE |
Constructor and Description |
---|
DefaultTopicMapDocumentGenerator() |
Modifier and Type | Method and 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.
|
public static final DefaultTopicMapDocumentGenerator INSTANCE
protected static final String _object_id
protected static final String _class
protected void addObjectFields(DocumentIF doc, TMObjectIF tmobject, String klass)
protected void addContentField(DocumentIF doc, String value)
protected void addLocatorField(DocumentIF doc, LocatorIF locator)
public DocumentIF generate(AssociationIF assoc)
TopicMapDocumentGeneratorIF
generate
in interface TopicMapDocumentGeneratorIF
public DocumentIF generate(AssociationRoleIF assocrl)
TopicMapDocumentGeneratorIF
generate
in interface TopicMapDocumentGeneratorIF
public DocumentIF generate(TopicNameIF basename)
TopicMapDocumentGeneratorIF
generate
in interface TopicMapDocumentGeneratorIF
public DocumentIF generate(OccurrenceIF occur)
TopicMapDocumentGeneratorIF
generate
in interface TopicMapDocumentGeneratorIF
public DocumentIF generate(VariantNameIF variant)
TopicMapDocumentGeneratorIF
generate
in interface TopicMapDocumentGeneratorIF
public DocumentIF generate(TopicIF topic)
TopicMapDocumentGeneratorIF
generate
in interface TopicMapDocumentGeneratorIF
public DocumentIF generate(TopicMapIF topicmap)
TopicMapDocumentGeneratorIF
generate
in interface TopicMapDocumentGeneratorIF
protected DocumentIF createDocument()