public class CharacteristicUtils extends Object
Constructor and Description |
---|
CharacteristicUtils() |
Modifier and Type | Method and Description |
---|---|
static Collection<TopicIF> |
getAssociatedTopics(TopicIF topic)
INTERNAL: Returns all the directly associated topics of the given
topic.
|
static <T extends TypedIF> |
getByType(Collection<T> objects,
TopicIF type)
INTERNAL: Finds first characteristic of a specified type.
|
static Collection<OccurrenceIF> |
getOccurrences(Collection<TopicIF> topics)
Gets the occurrences of all the topics in the given collection.
|
static Collection<AssociationRoleIF> |
getRoles(Collection<TopicIF> topics)
Gets the association roles of the topics in the given collection.
|
static Collection<TopicNameIF> |
getTopicNames(Collection<TopicIF> topics)
INTERNAL: Gets the basenames of the given collection of topics.
|
static Collection<TopicIF> |
getTopicsOfTopicNames(Collection<TopicNameIF> basenames)
INTERNAL: Gets the topics of a collection of basenames.
|
static Collection<VariantNameIF> |
getVariants(Collection<TopicNameIF> names)
Gets all the variant names of the given collecton of basenames,
including nested ones.
|
public static <T extends TypedIF> T getByType(Collection<T> objects, TopicIF type)
objects
- A collection of TypedIF objects.public static Collection<TopicNameIF> getTopicNames(Collection<TopicIF> topics)
topics
- A scope; a collection of TopicIF objects.public static Collection<VariantNameIF> getVariants(Collection<TopicNameIF> names)
names
- A collection of TopicNameIF objects.public static Collection<OccurrenceIF> getOccurrences(Collection<TopicIF> topics)
topics
- A collection of TopicIF objects; a scope.public static Collection<AssociationRoleIF> getRoles(Collection<TopicIF> topics)
topics
- A collection of TopicIF objects; a scope.public static Collection<TopicIF> getTopicsOfTopicNames(Collection<TopicNameIF> basenames)
basenames
- A collection of TopicNameIFs.public static Collection<TopicIF> getAssociatedTopics(TopicIF topic)