|
Cytoscape 2.6.2 (c) 2006,2007 ISB, MSKCC, UCSD | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cytoscape.data.synonyms.Aliases
public class Aliases
Simpler version of Thesaurus.
Purpose of this class is providing simple aliasing without biological
context. No species, commonname, nor canonical name are available. Just
maintains keys (IDs) and their aliases in CyAttributes.
This will be used for importing attribute data.
This class has no redundant data structure: everything will be stored in CyAttributes, and uses immutable special attributes called Alias
Field Summary | |
---|---|
static String |
ALIAS
Name of the attribute for aliases |
Constructor Summary | |
---|---|
Aliases(AliasType type)
Constructor for the aliases object. |
Method Summary | |
---|---|
void |
add(String key,
List<String> aliasList)
Add list of aliases to the existing alias lists. |
void |
add(String key,
String alias)
Add new alias for an object. |
List<String> |
getAliases(String key)
|
Set<String> |
getIdSet(String key)
Return set of all names for the key (including key itself.) |
String |
getKey(String alias)
Returns true if the object with the alias wxists in the memory (rootGraph). |
void |
remove(String key,
String alias)
Remove an alias. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ALIAS
Constructor Detail |
---|
public Aliases(AliasType type)
type
- Type of alias: node, edge, or network.Method Detail |
---|
public void add(String key, String alias)
key
- ID of the object.alias
- New alias to be added.public void add(String key, List<String> aliasList)
key
- aliaseList
- public void remove(String key, String alias)
key
- ID of the object.alias
- Alias to be removed.public List<String> getAliases(String key)
key
-
public String getKey(String alias)
key
- alias
-
public Set<String> getIdSet(String key)
key
-
|
www.cytoscape.org | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |