summaryrefslogtreecommitdiff
path: root/source/com/c2kernel/lifecycle/WfVertexDef.java
diff options
context:
space:
mode:
authorabranson <andrew.branson@cern.ch>2011-08-04 00:42:34 +0200
committerabranson <andrew.branson@cern.ch>2011-08-04 00:42:34 +0200
commit0ec8481c10cd8277d84c7c1a785483a0a739e5a0 (patch)
tree5f6e5d9ae75193e67e6f3b3dfa488960c5cde1d5 /source/com/c2kernel/lifecycle/WfVertexDef.java
parent036cbdba66f804743c4c838ed598d6972c4b3e17 (diff)
More code cleanup:
Refactored Entity Proxy Subscription to handle generics better Rewrote RemoteMap to use TreeMap instead of the internal array for order. It now sorts its keys by number if they parse, else as strings. Removed a no-longer-in-progress outcome form class
Diffstat (limited to 'source/com/c2kernel/lifecycle/WfVertexDef.java')
-rw-r--r--source/com/c2kernel/lifecycle/WfVertexDef.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/com/c2kernel/lifecycle/WfVertexDef.java b/source/com/c2kernel/lifecycle/WfVertexDef.java
index 221f6ae..6a46bee 100644
--- a/source/com/c2kernel/lifecycle/WfVertexDef.java
+++ b/source/com/c2kernel/lifecycle/WfVertexDef.java
@@ -29,11 +29,11 @@ public abstract class WfVertexDef extends GraphableVertex
}
public abstract WfVertex instantiate() throws ObjectNotFoundException, InvalidDataException;
-
+
public void configureInstance(WfVertex newVertex) {
KeyValuePair[] k = getProperties().getKeyValuePairs();
- for (int i = 0; i < k.length; i++)
- newVertex.getProperties().put(k[i].getKey(), k[i].getValue());
+ for (KeyValuePair element : k)
+ newVertex.getProperties().put(element.getKey(), element.getValue());
newVertex.setID(getID());
if (getIsLayoutable()) {
newVertex.setInEdgeIds(getInEdgeIds());
@@ -42,17 +42,17 @@ public abstract class WfVertexDef extends GraphableVertex
newVertex.setOutlinePoints(getOutlinePoints());
}
}
-
+
/**
* Method verify.
- *
+ *
* @return boolean
*/
public abstract boolean verify();
/**
* Method getErrors.
- *
+ *
* @return String
*/
public String getErrors()
@@ -60,12 +60,12 @@ public abstract class WfVertexDef extends GraphableVertex
if (mErrors.size() == 0)
return "No error";
else
- return (String) mErrors.elementAt(0);
+ return mErrors.elementAt(0);
}
/**
* Method loop.
- *
+ *
* @return boolean
*/
public boolean loop()