Author: kono
Date: 2009-02-24 14:28:05 -0800 (Tue, 24 Feb 2009)
New Revision: 16023
Modified:
cytoscape3/trunk/io/src/main/java/org/cytoscape/io/read/internal/sif/Interaction.java
Log:
Reformat only.
Modified:
cytoscape3/trunk/io/src/main/java/org/cytoscape/io/read/internal/sif/Interaction.java
===================================================================
---
cytoscape3/trunk/io/src/main/java/org/cytoscape/io/read/internal/sif/Interaction.java
2009-02-24 21:20:54 UTC (rev 16022)
+++
cytoscape3/trunk/io/src/main/java/org/cytoscape/io/read/internal/sif/Interaction.java
2009-02-24 22:28:05 UTC (rev 16023)
@@ -33,29 +33,31 @@
You should have received a copy of the GNU Lesser General Public License
along with this library; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
-*/
+ */
package org.cytoscape.io.read.internal.sif;
import java.util.ArrayList;
import java.util.List;
import java.util.StringTokenizer;
-
/**
* Utility class for representing one line of SIF file.
*/
-class Interaction {
+public class Interaction {
+
private String source;
private List<String> targets = new ArrayList<String>();
private String interactionType;
/**
* Creates a new Interaction object.
- *
- * @param rawText DOCUMENT ME!
- * @param delimiter DOCUMENT ME!
+ *
+ * @param rawText
+ * DOCUMENT ME!
+ * @param delimiter
+ * DOCUMENT ME!
*/
- public Interaction(String rawText, String delimiter) {
+ public Interaction(final String rawText, final String delimiter) {
final StringTokenizer strtok = new StringTokenizer(rawText,
delimiter);
int counter = 0;
@@ -67,41 +69,40 @@
else {
targets.add(strtok.nextToken().trim());
}
-
counter++;
}
- }
+ }
/**
- * @return The source node identifier string.
+ * @return The source node identifier string.
*/
public String getSource() {
return source;
}
/**
- * @return The interaction type string.
+ * @return The interaction type string.
*/
public String getType() {
return interactionType;
}
/**
- * @return The number of target nodes found.
+ * @return The number of target nodes found.
*/
public int numberOfTargets() {
return targets.size();
}
/**
- * @return The array of target node identifier strings.
+ * @return The array of target node identifier strings.
*/
public String[] getTargets() {
return targets.toArray(new String[0]);
- }
+ }
/**
- * @return A string rep of the interaction.
+ * @return A string rep of the interaction.
*/
public String toString() {
final StringBuilder sb = new StringBuilder();
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---