public class KeyGenerator extends Object
Constructor and Description |
---|
KeyGenerator() |
Modifier and Type | Method and Description |
---|---|
static String |
makeAssociationKey(AssociationIF assoc)
PUBLIC: Makes a key for an association.
|
static String |
makeAssociationKey(AssociationIF assoc,
AssociationRoleIF role)
PUBLIC: Makes a key for an association, but does not include
the player of the given role.
|
static String |
makeAssociationKey(AssociationIF assoc,
TopicMapIF othertm)
PUBLIC: Makes a key for an association, as it would look in another
topic map.
|
static String |
makeAssociationRoleKey(AssociationRoleIF role)
PUBLIC: Makes a key for an association role.
|
static String |
makeAssociationRoleKey(AssociationRoleIF role,
TopicMapIF othertm)
PUBLIC: Makes a key for an association role, as it would look in
another topic map.
|
protected static String |
makeDataKey(OccurrenceIF occ) |
protected static String |
makeDataKey(VariantNameIF variant) |
static String |
makeKey(ReifiableIF object)
PUBLIC: Makes a key for any reifiable object, using the other
methods in this class.
|
static 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 String |
makeOccurrenceKey(OccurrenceIF occ)
PUBLIC: Makes a key for an occurrence.
|
static String |
makeOccurrenceKey(OccurrenceIF occ,
TopicMapIF othertm)
PUBLIC: Makes a key for an occurrence, as it would look in
another topic map.
|
protected static String |
makeScopeKey(Collection<TopicIF> scope) |
protected static String |
makeScopeKey(Collection<TopicIF> scope,
TopicMapIF othertm) |
protected static String |
makeScopeKey(ScopedIF scoped) |
protected static String |
makeScopeKey(ScopedIF scoped,
TopicMapIF othertm) |
protected static String |
makeTopicKey(TopicIF topic) |
static String |
makeTopicNameKey(TopicNameIF bn)
PUBLIC: Makes a key for a topic name.
|
static String |
makeTopicNameKey(TopicNameIF bn,
TopicMapIF othertm)
PUBLIC: Makes a key for a topic name, as it would look in another
topic map.
|
protected static String |
makeTypedKey(TypedIF typed) |
protected static String |
makeTypedKey(TypedIF typed,
TopicMapIF othertm) |
static String |
makeVariantKey(VariantNameIF vn)
PUBLIC: Makes a key for a variant name.
|
public static String makeOccurrenceKey(OccurrenceIF occ)
public static String makeOccurrenceKey(OccurrenceIF occ, TopicMapIF othertm)
public static String makeTopicNameKey(TopicNameIF bn)
public static String makeTopicNameKey(TopicNameIF bn, TopicMapIF othertm)
public static String makeVariantKey(VariantNameIF vn)
public static String makeAssociationKey(AssociationIF assoc)
assoc
- The association to make a key forpublic static 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 String makeAssociationKey(AssociationIF assoc, TopicMapIF othertm)
public static String makeAssociationRoleKey(AssociationRoleIF role)
role
- The association role.public static String makeAssociationRoleKey(AssociationRoleIF role, TopicMapIF othertm)
public static String makeKey(ReifiableIF object)
public static 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 String makeTypedKey(TypedIF typed, TopicMapIF othertm)
protected static String makeScopeKey(ScopedIF scoped, TopicMapIF othertm)
protected static String makeScopeKey(Collection<TopicIF> scope)
protected static String makeScopeKey(Collection<TopicIF> scope, TopicMapIF othertm)
protected static String makeDataKey(OccurrenceIF occ)
protected static String makeDataKey(VariantNameIF variant)