public class TopicTools
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
dchars |
static int |
locatorCounter |
static java.lang.String |
nameOfInstanceType |
static java.lang.String |
nameOfTypeType |
static java.lang.String |
schars |
Constructor and Description |
---|
TopicTools()
Creates a new instance of TopicTools
|
Modifier and Type | Method and Description |
---|---|
static Locator |
cleanDirtyLocator(Locator l) |
static java.lang.String |
cleanDirtyLocator(java.lang.String s) |
static Locator |
createDefaultLocator() |
static java.lang.String[] |
getAssociationsAsTriplets(Topic t) |
static java.lang.String[] |
getAssociationsAsTypePlayerTuples(Topic t) |
static java.lang.String[] |
getAsTriplet(Association a) |
private static void |
getCyclePaths(java.util.ArrayList<java.util.ArrayList<Topic>> cycles,
java.util.ArrayList<Topic> path,
Topic base,
Topic associationType,
Topic baseRole,
Topic outRole) |
static java.util.ArrayList<java.util.ArrayList<Topic>> |
getCyclePaths(Topic base,
Topic associationType,
Topic baseRole,
Topic outRole) |
static Topic |
getEdgeTopic(Topic base,
Topic associationType,
Topic baseRole,
Topic outRole) |
static java.util.Collection<Topic> |
getEdgeTopics(java.util.Collection<Topic> source,
Topic associationType,
Topic baseRole,
Topic outRole) |
static Topic |
getFirstPlayer(Topic topic,
java.lang.String associationTypeSI,
java.lang.String roleSI)
Get one player in the associations of given type in the topic that is of given role.
|
static Topic |
getFirstPlayerWithRole(Topic topic,
java.lang.String roleSI)
Gets one player of given role in the associations of the topic.
|
static java.util.ArrayList<Layer> |
getLayers(ContainerTopicMap tm) |
static java.util.Vector<Topic> |
getPlayers(java.util.Collection topics,
java.lang.String associationTypeSI,
java.lang.String roleSI) |
static java.util.Vector<Topic> |
getPlayers(java.util.Collection topics,
java.lang.String associationTypeSI,
java.lang.String roleSI,
java.lang.String hasRole,
java.lang.String hasPlayer) |
static java.util.Vector<Topic> |
getPlayers(Topic topic,
java.lang.String associationTypeSI)
Get all players of all associations of a given type in the topic.
|
static java.util.Vector<Topic> |
getPlayers(Topic topic,
java.lang.String associationTypeSI,
java.lang.String roleSI) |
static java.util.Vector<Topic> |
getPlayers(Topic topic,
java.lang.String associationTypeSI,
java.lang.String roleSI,
java.lang.String hasRole,
java.lang.String hasPlayer) |
static java.util.Vector<Topic> |
getPlayers(Topic topic,
Topic associationType,
Topic role) |
static java.util.Vector<Topic> |
getPlayers(Topic topic,
Topic type,
Topic role,
Topic hasRole,
Topic hasPlayer) |
static java.util.Vector<Topic> |
getPlayersWithRole(java.util.Collection topics,
java.lang.String roleSI)
Get all players of given role in the associations of a collection of topics.
|
static java.util.Vector<Topic> |
getPlayersWithRole(Topic topic,
java.lang.String roleSI)
Get all players of given role in the associations of the topic.
|
static java.util.Vector<Topic> |
getPlayersWithRoles(java.util.Collection topics,
java.util.Collection roleSIs)
Get all players with one of specified roles in the associations of topics
in the collection.
|
static java.util.Vector<Topic> |
getPlayersWithRoles(java.util.Collection topics,
java.lang.String[] roleSIs)
Get all players with one of specified roles in the associations of topics
in the collection.
|
static java.util.Vector<Topic> |
getPlayersWithRoles(Topic topic,
java.util.Collection roleSIs)
Get all players with one of specified roles in the associations of the topic.
|
static java.util.Vector<Topic> |
getPlayersWithRoles(Topic topic,
java.lang.String[] roleSIs)
Get all players with one of specified roles in the associations of the topic.
|
static java.util.ArrayList<Topic> |
getSinglePath(Topic base,
Topic associationType,
Topic baseRole,
Topic outRole) |
static java.util.Vector |
getSLsOfPlayers(Topic topic,
java.lang.String associationTypeSI,
java.lang.String roleSI) |
static java.util.Vector |
getSLsOfTopics(java.util.Collection topics) |
static java.util.Vector<Topic> |
getSortedPlayers(Topic topic,
java.util.Collection associationTypesSI,
java.util.Collection rolesSI,
java.lang.String sortRole,
java.lang.String lang) |
static java.util.Vector<Topic> |
getSortedPlayers(Topic topic,
java.lang.String associationTypeSI,
java.lang.String roleSI,
java.lang.String sortRole,
java.lang.String lang) |
static java.lang.String |
getTopicName(Topic t) |
static java.util.Vector<Topic> |
getTypesOfRequiredType(Topic topic,
java.lang.String requiredTypeSI) |
static boolean |
isDirtyLocator(Locator l) |
static boolean |
isDirtyLocatorCharacter(char c) |
static boolean |
isTopicMapContainer(TopicMap tm) |
static char |
repacementLocatorCharacterFor(char c) |
public static java.lang.String schars
public static java.lang.String dchars
public static int locatorCounter
public static final java.lang.String nameOfInstanceType
public static final java.lang.String nameOfTypeType
public static Topic getFirstPlayerWithRole(Topic topic, java.lang.String roleSI)
public static java.util.Vector<Topic> getPlayersWithRole(Topic topic, java.lang.String roleSI) throws TopicMapException
TopicMapException
public static java.util.Vector<Topic> getPlayersWithRole(java.util.Collection topics, java.lang.String roleSI)
public static java.util.Vector<Topic> getPlayersWithRoles(Topic topic, java.lang.String[] roleSIs)
public static java.util.Vector<Topic> getPlayersWithRoles(Topic topic, java.util.Collection roleSIs)
public static java.util.Vector<Topic> getPlayersWithRoles(java.util.Collection topics, java.util.Collection roleSIs)
public static java.util.Vector<Topic> getPlayersWithRoles(java.util.Collection topics, java.lang.String[] roleSIs)
public static java.util.Vector<Topic> getPlayers(Topic topic, java.lang.String associationTypeSI) throws TopicMapException
TopicMapException
public static Topic getFirstPlayer(Topic topic, java.lang.String associationTypeSI, java.lang.String roleSI)
public static java.util.Vector<Topic> getPlayers(Topic topic, java.lang.String associationTypeSI, java.lang.String roleSI) throws TopicMapException
TopicMapException
public static java.util.Vector<Topic> getPlayers(Topic topic, Topic associationType, Topic role) throws TopicMapException
TopicMapException
public static java.util.Vector<Topic> getPlayers(java.util.Collection topics, java.lang.String associationTypeSI, java.lang.String roleSI)
public static java.util.Vector<Topic> getPlayers(Topic topic, java.lang.String associationTypeSI, java.lang.String roleSI, java.lang.String hasRole, java.lang.String hasPlayer) throws TopicMapException
TopicMapException
public static java.util.Vector<Topic> getPlayers(Topic topic, Topic type, Topic role, Topic hasRole, Topic hasPlayer) throws TopicMapException
TopicMapException
public static java.util.Vector<Topic> getPlayers(java.util.Collection topics, java.lang.String associationTypeSI, java.lang.String roleSI, java.lang.String hasRole, java.lang.String hasPlayer) throws TopicMapException
TopicMapException
public static java.util.Vector<Topic> getSortedPlayers(Topic topic, java.lang.String associationTypeSI, java.lang.String roleSI, java.lang.String sortRole, java.lang.String lang) throws TopicMapException
TopicMapException
public static java.util.Vector<Topic> getSortedPlayers(Topic topic, java.util.Collection associationTypesSI, java.util.Collection rolesSI, java.lang.String sortRole, java.lang.String lang) throws TopicMapException
TopicMapException
public static java.util.Vector<Topic> getTypesOfRequiredType(Topic topic, java.lang.String requiredTypeSI)
public static java.util.Vector getSLsOfPlayers(Topic topic, java.lang.String associationTypeSI, java.lang.String roleSI) throws TopicMapException
TopicMapException
public static java.util.Vector getSLsOfTopics(java.util.Collection topics)
public static java.util.Collection<Topic> getEdgeTopics(java.util.Collection<Topic> source, Topic associationType, Topic baseRole, Topic outRole)
public static Topic getEdgeTopic(Topic base, Topic associationType, Topic baseRole, Topic outRole)
public static java.util.ArrayList<Topic> getSinglePath(Topic base, Topic associationType, Topic baseRole, Topic outRole)
public static java.util.ArrayList<java.util.ArrayList<Topic>> getCyclePaths(Topic base, Topic associationType, Topic baseRole, Topic outRole)
private static void getCyclePaths(java.util.ArrayList<java.util.ArrayList<Topic>> cycles, java.util.ArrayList<Topic> path, Topic base, Topic associationType, Topic baseRole, Topic outRole)
public static boolean isDirtyLocator(Locator l)
public static boolean isDirtyLocatorCharacter(char c)
public static char repacementLocatorCharacterFor(char c)
public static java.lang.String cleanDirtyLocator(java.lang.String s)
public static Locator createDefaultLocator()
public static java.lang.String getTopicName(Topic t)
public static java.lang.String[] getAssociationsAsTriplets(Topic t)
public static java.lang.String[] getAssociationsAsTypePlayerTuples(Topic t)
public static java.lang.String[] getAsTriplet(Association a)
public static java.util.ArrayList<Layer> getLayers(ContainerTopicMap tm)
public static boolean isTopicMapContainer(TopicMap tm)
Copyright 2004-2015 Wandora Team