Package ontopoly.conversion
Class UpgradeBase
- java.lang.Object
-
- ontopoly.conversion.UpgradeBase
-
- Direct Known Subclasses:
Upgrade_1_1,Upgrade_1_2,Upgrade_1_3,Upgrade_1_4,Upgrade_1_9,Upgrade_2_0,Upgrade_2_1
public abstract class UpgradeBase extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classUpgradeBase.RoleFieldDefinition
-
Field Summary
Fields Modifier and Type Field Description protected static LocatorIFbase_onprotected static LocatorIFbase_techprotected static LocatorIFbase_xsdprotected static LocatorIFbase_xtmprotected DeclarationContextIFdcprotected static LocatorIFpsibaseprotected QueryProcessorIFqpprotected static LocatorIFteqbaseprotected TopicMapIFtopicmapprotected TopicMaptopicMapprotected static LocatorIFxsdbaseprotected static LocatorIFxtmbase
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected static OccurrenceIFaddOccurrence(TopicMap topicMap, LocatorIF base_on, TopicIF topic, String otype, String datatype, String value)protected static voidassignEditMode(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, String mode)protected static voidassignEmbedded(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, String cview)protected static voidassignField(TopicMapIF topicmap, LocatorIF base_on, TopicIF oField, String ptypeId)protected static voidassignField(TopicMapIF topicmap, LocatorIF base_on, TopicIF oField, TopicIF ptype)protected static voidassignFieldsView(TopicMapIF topicmap, LocatorIF base_on, TopicIF fieldDefinition, String view)protected static voidassignValueView(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, String pview, String cview)protected static voidassignViewMode(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, String view, String mode)protected static TopicIFdefineIdentityField(TopicMapIF topicmap, LocatorIF base_on, String itypeId, String cardinality)protected static TopicIFdefineIdentityField(TopicMapIF topicmap, LocatorIF base_on, TopicIF itype, TopicIF cardinality)protected static TopicIFdefineOccurrenceField(TopicMap topicMap, LocatorIF base_on, String otypeId, String datatype, String cardinality)protected static TopicIFdefineOccurrenceField(TopicMap topicMap, LocatorIF base_on, TopicIF otype, TopicIF datatype, TopicIF cardinality)protected static UpgradeBase.RoleFieldDefinitiondefineRoleFields(TopicMapIF topicmap, LocatorIF base_on, String atypeId, String afieldName, String[] rtypeIds, String[] rfieldNames, String[][] ptypeIds)protected static UpgradeBase.RoleFieldDefinitiondefineRoleFields(TopicMapIF topicmap, LocatorIF base_on, TopicIF atype, String afieldName, TopicIF[] rtypes, String[] rfieldNames, TopicIF[][] pptypes)protected intdoUpdate(String update)Runs a tolog update statement to modify the topic map.protected static StringgetSymbolicId(TopicIF rf)protected static TopicIFgetTopic(TopicMapIF topicmap, LocatorIF base_on, String ref)protected abstract voidimportLTM(StringBuilder sb)protected static voidmakePublicSystemTopic(TopicMapIF topicmap, LocatorIF base_on, LocatorIF base_t, String topic)protected static voidremoveAssociations(String atype, String[] rtypes, QueryProcessorIF qp, DeclarationContextIF dc)protected static voidremoveObjects(TopicMapIF topicMap, DeclarationContextIF dc, String removalQuery)protected static voidremoveTopic(TopicMapIF topicmap, LocatorIF base_on, String ref)protected static voidremoveTopicIfExist(TopicMapIF topicmap, LocatorIF base_on, String ref)protected static voidrenameSubjectIdentifier(TopicMapIF topicmap, LocatorIF base_on, String oldId, String newId)protected static voidrenameTopics(TopicMapIF topicmap, String oldName, String newName)protected abstract voidtransform()protected static voidtranslateAssociations(String atype1, String[] rtypes1, String atype2, String[] rtypes2, TopicMapIF tm, LocatorIF base_on, QueryProcessorIF qp, DeclarationContextIF dc)voidupgrade()
-
-
-
Field Detail
-
psibase
protected static final LocatorIF psibase
-
xsdbase
protected static final LocatorIF xsdbase
-
xtmbase
protected static final LocatorIF xtmbase
-
teqbase
protected static final LocatorIF teqbase
-
base_on
protected static final LocatorIF base_on
-
base_tech
protected static final LocatorIF base_tech
-
base_xtm
protected static final LocatorIF base_xtm
-
base_xsd
protected static final LocatorIF base_xsd
-
topicMap
protected TopicMap topicMap
-
topicmap
protected TopicMapIF topicmap
-
dc
protected DeclarationContextIF dc
-
qp
protected QueryProcessorIF qp
-
-
Method Detail
-
upgrade
public void upgrade()
-
importLTM
protected abstract void importLTM(StringBuilder sb)
-
transform
protected abstract void transform() throws InvalidQueryException- Throws:
InvalidQueryException
-
doUpdate
protected int doUpdate(String update) throws InvalidQueryException
Runs a tolog update statement to modify the topic map.- Throws:
InvalidQueryException
-
getTopic
protected static TopicIF getTopic(TopicMapIF topicmap, LocatorIF base_on, String ref)
-
translateAssociations
protected static void translateAssociations(String atype1, String[] rtypes1, String atype2, String[] rtypes2, TopicMapIF tm, LocatorIF base_on, QueryProcessorIF qp, DeclarationContextIF dc) throws InvalidQueryException
- Throws:
InvalidQueryException
-
removeAssociations
protected static void removeAssociations(String atype, String[] rtypes, QueryProcessorIF qp, DeclarationContextIF dc) throws InvalidQueryException
- Throws:
InvalidQueryException
-
removeObjects
protected static void removeObjects(TopicMapIF topicMap, DeclarationContextIF dc, String removalQuery) throws InvalidQueryException
- Throws:
InvalidQueryException
-
assignField
protected static void assignField(TopicMapIF topicmap, LocatorIF base_on, TopicIF oField, String ptypeId)
-
assignField
protected static void assignField(TopicMapIF topicmap, LocatorIF base_on, TopicIF oField, TopicIF ptype)
-
defineRoleFields
protected static UpgradeBase.RoleFieldDefinition defineRoleFields(TopicMapIF topicmap, LocatorIF base_on, String atypeId, String afieldName, String[] rtypeIds, String[] rfieldNames, String[][] ptypeIds)
-
defineRoleFields
protected static UpgradeBase.RoleFieldDefinition defineRoleFields(TopicMapIF topicmap, LocatorIF base_on, TopicIF atype, String afieldName, TopicIF[] rtypes, String[] rfieldNames, TopicIF[][] pptypes)
-
removeTopicIfExist
protected static void removeTopicIfExist(TopicMapIF topicmap, LocatorIF base_on, String ref)
-
removeTopic
protected static void removeTopic(TopicMapIF topicmap, LocatorIF base_on, String ref)
-
makePublicSystemTopic
protected static void makePublicSystemTopic(TopicMapIF topicmap, LocatorIF base_on, LocatorIF base_t, String topic)
-
renameSubjectIdentifier
protected static void renameSubjectIdentifier(TopicMapIF topicmap, LocatorIF base_on, String oldId, String newId)
-
renameTopics
protected static void renameTopics(TopicMapIF topicmap, String oldName, String newName)
-
assignViewMode
protected static void assignViewMode(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, String view, String mode)
-
assignEmbedded
protected static void assignEmbedded(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, String cview)
-
assignValueView
protected static void assignValueView(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, String pview, String cview)
-
assignEditMode
protected static void assignEditMode(TopicMapIF topicmap, LocatorIF base_on, TopicIF rfield, String mode)
-
assignFieldsView
protected static void assignFieldsView(TopicMapIF topicmap, LocatorIF base_on, TopicIF fieldDefinition, String view)
-
defineOccurrenceField
protected static TopicIF defineOccurrenceField(TopicMap topicMap, LocatorIF base_on, String otypeId, String datatype, String cardinality)
-
defineOccurrenceField
protected static TopicIF defineOccurrenceField(TopicMap topicMap, LocatorIF base_on, TopicIF otype, TopicIF datatype, TopicIF cardinality)
-
addOccurrence
protected static OccurrenceIF addOccurrence(TopicMap topicMap, LocatorIF base_on, TopicIF topic, String otype, String datatype, String value)
-
defineIdentityField
protected static TopicIF defineIdentityField(TopicMapIF topicmap, LocatorIF base_on, String itypeId, String cardinality)
-
defineIdentityField
protected static TopicIF defineIdentityField(TopicMapIF topicmap, LocatorIF base_on, TopicIF itype, TopicIF cardinality)
-
-