public class ClassInstanceUtils extends Object
Constructor and Description |
---|
ClassInstanceUtils() |
Modifier and Type | Method and Description |
---|---|
static Collection |
getInstancesOf(Collection typed,
TopicIF type)
INTERNAL: Returns the typed objects that are instances of the given type.
|
static Map |
getTypeMap(Collection typed)
INTERNAL: Returns a Map containing the typed objects keyed by type.
|
static Map |
getTypeMap(Collection typed,
Map accumulated)
INTERNAL: Modifies the accumulated map to also include the type map
of the typed objects.
|
static Collection |
getTypes(Collection typed)
INTERNAL: Returns the topics that are the type/class topic of the
typed objects.
|
static Collection |
getTypes(Collection typed,
Collection accumulated)
INTERNAL: Modifies the accumulated collection to also include the
types of the typed objects.
|
static boolean |
isInstanceOf(TopicIF topic,
TopicIF type)
INTERNAL: Returns true if the TopicIF object is an instance
the given type.
|
static boolean |
isInstanceOf(TypedIF typed,
TopicIF type)
INTERNAL: Returns true if the TypedIF object is an instance the
given type.
|
static void |
resolveAssociations1(TopicMapIF topicmap)
INTERNAL: Replaces all class-instance associations in a topic map
by direct references from the topics in question to their types.
|
static void |
resolveAssociations2(TopicMapIF topicmap)
INTERNAL: Replaces all class-instance associations using the XTM
2.0 PSIs in a topic map by direct references from the topics in
question to their types.
|
public static void resolveAssociations1(TopicMapIF topicmap)
public static void resolveAssociations2(TopicMapIF topicmap)
public static boolean isInstanceOf(TypedIF typed, TopicIF type)
public static boolean isInstanceOf(TopicIF topic, TopicIF type)
public static Collection getInstancesOf(Collection typed, TopicIF type)
public static Collection getTypes(Collection typed)
public static Collection getTypes(Collection typed, Collection accumulated)
public static Map getTypeMap(Collection typed)
public static Map getTypeMap(Collection typed, Map accumulated)