|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.utils.KeyGenerator
public class KeyGenerator
PUBLIC: Utilities for generating keys from complex topic map objects. The keys from two different objects in the same topic map will be equal if the two objects are equal according to the equality rules of the TMDM.
Constructor Summary | |
---|---|
KeyGenerator()
|
Method Summary | |
---|---|
static java.lang.String |
makeAssociationKey(AssociationIF assoc)
PUBLIC: Makes a key for an association. |
static java.lang.String |
makeAssociationKey(AssociationIF assoc,
AssociationRoleIF role)
PUBLIC: Makes a key for an association, but does not include the player of the given role. |
static java.lang.String |
makeAssociationKey(AssociationIF assoc,
TopicMapIF othertm)
PUBLIC: Makes a key for an association, as it would look in another topic map. |
static java.lang.String |
makeAssociationRoleKey(AssociationRoleIF role)
PUBLIC: Makes a key for an association role. |
static java.lang.String |
makeAssociationRoleKey(AssociationRoleIF role,
TopicMapIF othertm)
PUBLIC: Makes a key for an association role, as it would look in another topic map. |
protected static java.lang.String |
makeDataKey(OccurrenceIF occ)
|
protected static java.lang.String |
makeDataKey(VariantNameIF variant)
|
static java.lang.String |
makeKey(ReifiableIF object)
PUBLIC: Makes a key for any reifiable object, using the other methods in this class. |
static java.lang.String |
makeKey(ReifiableIF object,
TopicMapIF topicmap)
PUBLIC: Makes a key for any reifiable object as it would look like were the object in another topic map. |
static java.lang.String |
makeOccurrenceKey(OccurrenceIF occ)
PUBLIC: Makes a key for an occurrence. |
static java.lang.String |
makeOccurrenceKey(OccurrenceIF occ,
TopicMapIF othertm)
PUBLIC: Makes a key for an occurrence, as it would look in another topic map. |
protected static java.lang.String |
makeScopeKey(java.util.Collection<TopicIF> scope)
|
protected static java.lang.String |
makeScopeKey(java.util.Collection<TopicIF> scope,
TopicMapIF othertm)
|
protected static java.lang.String |
makeScopeKey(ScopedIF scoped)
|
protected static java.lang.String |
makeScopeKey(ScopedIF scoped,
TopicMapIF othertm)
|
protected static java.lang.String |
makeTopicKey(TopicIF topic)
|
static java.lang.String |
makeTopicNameKey(TopicNameIF bn)
PUBLIC: Makes a key for a topic name. |
static java.lang.String |
makeTopicNameKey(TopicNameIF bn,
TopicMapIF othertm)
PUBLIC: Makes a key for a topic name, as it would look in another topic map. |
protected static java.lang.String |
makeTypedKey(TypedIF typed)
|
protected static java.lang.String |
makeTypedKey(TypedIF typed,
TopicMapIF othertm)
|
static java.lang.String |
makeVariantKey(VariantNameIF vn)
PUBLIC: Makes a key for a variant name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyGenerator()
Method Detail |
---|
public static java.lang.String makeOccurrenceKey(OccurrenceIF occ)
public static java.lang.String makeOccurrenceKey(OccurrenceIF occ, TopicMapIF othertm)
public static java.lang.String makeTopicNameKey(TopicNameIF bn)
public static java.lang.String makeTopicNameKey(TopicNameIF bn, TopicMapIF othertm)
public static java.lang.String makeVariantKey(VariantNameIF vn)
public static java.lang.String makeAssociationKey(AssociationIF assoc)
assoc
- The association to make a key for
public static java.lang.String makeAssociationKey(AssociationIF assoc, AssociationRoleIF role)
assoc
- The association to make a key forrole
- The association role whose role player is to be left
out of the key.
public static java.lang.String makeAssociationKey(AssociationIF assoc, TopicMapIF othertm)
public static java.lang.String makeAssociationRoleKey(AssociationRoleIF role)
role
- The association role.
public static java.lang.String makeAssociationRoleKey(AssociationRoleIF role, TopicMapIF othertm)
public static java.lang.String makeKey(ReifiableIF object)
public static java.lang.String makeKey(ReifiableIF object, TopicMapIF topicmap)
object
- The object to make a key for.topicmap
- The topic map in which to interpret the key.protected static java.lang.String makeTopicKey(TopicIF topic)
protected static java.lang.String makeTypedKey(TypedIF typed)
protected static java.lang.String makeTypedKey(TypedIF typed, TopicMapIF othertm)
protected static java.lang.String makeScopeKey(ScopedIF scoped)
protected static java.lang.String makeScopeKey(ScopedIF scoped, TopicMapIF othertm)
protected static java.lang.String makeScopeKey(java.util.Collection<TopicIF> scope)
protected static java.lang.String makeScopeKey(java.util.Collection<TopicIF> scope, TopicMapIF othertm)
protected static java.lang.String makeDataKey(OccurrenceIF occ)
protected static java.lang.String makeDataKey(VariantNameIF variant)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |