summaryrefslogtreecommitdiffstats
path: root/org/madore/damlengine/TodoElement.java
diff options
context:
space:
mode:
authorDavid A. Madore <david+git@madore.org>2010-04-19 09:48:21 +0200
committerDavid A. Madore <david+git@madore.org>2010-04-19 09:48:21 +0200
commit8b2d4cc55eba7b1431a861beaf8181d0052b76bf (patch)
tree703e75860625d5c47137459d7e704eb1be368a13 /org/madore/damlengine/TodoElement.java
parentc8808d230a8c4f938b6adb54eb250299a092d87c (diff)
downloaddamlengine-8b2d4cc55eba7b1431a861beaf8181d0052b76bf.tar.gz
damlengine-8b2d4cc55eba7b1431a861beaf8181d0052b76bf.tar.bz2
damlengine-8b2d4cc55eba7b1431a861beaf8181d0052b76bf.zip
Rather than an ad hoc "Options" class, use caller todo directly.
Diffstat (limited to 'org/madore/damlengine/TodoElement.java')
-rw-r--r--org/madore/damlengine/TodoElement.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/org/madore/damlengine/TodoElement.java b/org/madore/damlengine/TodoElement.java
index 3cb07de..a871968 100644
--- a/org/madore/damlengine/TodoElement.java
+++ b/org/madore/damlengine/TodoElement.java
@@ -9,7 +9,7 @@ public abstract class TodoElement extends TodoItem {
public static abstract class Factory {
public abstract TodoElement newItem(Element node,
Context ctx,
- TodoItem.Options options);
+ TodoItem caller);
}
protected static Map<String,Factory> damlFactories;
@@ -26,21 +26,21 @@ public abstract class TodoElement extends TodoItem {
public TodoElement(Element node,
Context ctx,
- TodoItem.Options options) {
- super(ctx, options);
+ TodoItem caller) {
+ super(ctx, caller);
this.node = node;
}
public static TodoElement getTodoElement(Element node,
Context ctx,
- TodoItem.Options options) {
+ TodoItem caller) {
Factory factory = null;
String nsuri = node.getNamespaceURI();
if ( nsuri != null && nsuri.equals(DamlEngine.DAML_NS) )
factory = damlFactories.get(node.getLocalName());
if ( factory == null )
factory = damlDefaultFactory;
- return factory.newItem(node, ctx, options);
+ return factory.newItem(node, ctx, caller);
}
}