Author: scooter
Date: 2012-05-25 11:58:22 -0700 (Fri, 25 May 2012)
New Revision: 29357
Modified:
core3/api/trunk/model-api/src/main/java/org/cytoscape/model/CyNetwork.java
core3/impl/trunk/model-impl/impl/src/main/java/org/cytoscape/model/internal/DefaultTablesNetwork.java
Log:
Add getTable method to CyNetwork api and interface.
Modified:
core3/api/trunk/model-api/src/main/java/org/cytoscape/model/CyNetwork.java
===================================================================
--- core3/api/trunk/model-api/src/main/java/org/cytoscape/model/CyNetwork.java
2012-05-25 18:38:42 UTC (rev 29356)
+++ core3/api/trunk/model-api/src/main/java/org/cytoscape/model/CyNetwork.java
2012-05-25 18:58:22 UTC (rev 29357)
@@ -299,6 +299,15 @@
*/
CyTable getDefaultEdgeTable();
+ /**
+ * Returns the table with the specified namespace and type from this
+ * network.
+ * @param type Type of {@link CyIdentifiable} associated with the table.
+ * @param namespace The name of the table relative to the network.
+ * @return the table with the specified namespace and type from the
+ * network.
+ */
+ CyTable getTable(Class<? extends CyIdentifiable> type, String
namespace);
/**
* Returns the row for the specified table name for this object.
Modified:
core3/impl/trunk/model-impl/impl/src/main/java/org/cytoscape/model/internal/DefaultTablesNetwork.java
===================================================================
---
core3/impl/trunk/model-impl/impl/src/main/java/org/cytoscape/model/internal/DefaultTablesNetwork.java
2012-05-25 18:38:42 UTC (rev 29356)
+++
core3/impl/trunk/model-impl/impl/src/main/java/org/cytoscape/model/internal/DefaultTablesNetwork.java
2012-05-25 18:58:22 UTC (rev 29357)
@@ -84,6 +84,10 @@
return networkTableManager.getTable(networkRef.get(),
CyEdge.class, CyNetwork.DEFAULT_ATTRS);
}
+ public CyTable getTable(Class<? extends CyIdentifiable> type, String
namespace) {
+ return networkTableManager.getTable(networkRef.get(), type,
namespace);
+ }
+
public CyRow getRow(final CyIdentifiable entry) {
return getRow(entry, CyNetwork.DEFAULT_ATTRS);
}
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.