diff options
author | David A. Madore <david+git@madore.org> | 2010-04-19 09:48:21 +0200 |
---|---|---|
committer | David A. Madore <david+git@madore.org> | 2010-04-19 09:48:21 +0200 |
commit | 8b2d4cc55eba7b1431a861beaf8181d0052b76bf (patch) | |
tree | 703e75860625d5c47137459d7e704eb1be368a13 /org/madore/damlengine/TodoAttr.java | |
parent | c8808d230a8c4f938b6adb54eb250299a092d87c (diff) | |
download | damlengine-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/TodoAttr.java')
-rw-r--r-- | org/madore/damlengine/TodoAttr.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/org/madore/damlengine/TodoAttr.java b/org/madore/damlengine/TodoAttr.java index f9e2e70..2e4cfb8 100644 --- a/org/madore/damlengine/TodoAttr.java +++ b/org/madore/damlengine/TodoAttr.java @@ -10,7 +10,7 @@ public abstract class TodoAttr extends TodoItem { public static abstract class Factory { public abstract TodoAttr newItem(Attr attr, Element owner, Context ctx, - TodoItem.Options options); + TodoItem caller); } protected static Map<String,Factory> damlAttrFactories; @@ -24,22 +24,22 @@ public abstract class TodoAttr extends TodoItem { Element owner; public TodoAttr(Attr attr, Element owner, - Context ctx, TodoItem.Options options) { - super(ctx, options); + Context ctx, TodoItem caller) { + super(ctx, caller); this.attr = attr; this.owner = owner; } public static TodoAttr getTodoAttr(Attr attr, Element owner, Context ctx, - TodoItem.Options options) { + TodoItem caller) { Factory factory = null; String nsuri = attr.getNamespaceURI(); if ( nsuri != null && nsuri.equals(DamlEngine.DAML_NS) ) factory = damlAttrFactories.get(attr.getLocalName()); if ( factory == null ) return null; - return factory.newItem(attr, owner, ctx, options); + return factory.newItem(attr, owner, ctx, caller); } } |