From 8b2d4cc55eba7b1431a861beaf8181d0052b76bf Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Mon, 19 Apr 2010 09:48:21 +0200 Subject: Rather than an ad hoc "Options" class, use caller todo directly. --- org/madore/damlengine/TodoElement.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'org/madore/damlengine/TodoElement.java') 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 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); } } -- cgit v1.2.3