From 852ff66033951ea44a94c25d5eb9da418c87dac4 Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Sat, 17 Apr 2010 13:32:16 +0200 Subject: Use ad hoc classes rather than hashes for context and options. --- org/madore/damlengine/TodoAttr.java | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'org/madore/damlengine/TodoAttr.java') diff --git a/org/madore/damlengine/TodoAttr.java b/org/madore/damlengine/TodoAttr.java index 721b4f6..0cc5389 100644 --- a/org/madore/damlengine/TodoAttr.java +++ b/org/madore/damlengine/TodoAttr.java @@ -9,8 +9,8 @@ public abstract class TodoAttr extends TodoItem { public static abstract class Factory { public abstract TodoAttr newItem(Attr attr, Element owner, - Map context, - Map options); + TodoContext context, + TodoItem.Options options); } protected static Map damlAttrFactories; @@ -22,20 +22,17 @@ public abstract class TodoAttr extends TodoItem { Attr attr; Element owner; - Map context; - Map options; public TodoAttr(Attr attr, Element owner, - Map context, Map options) { + TodoContext context, TodoItem.Options options) { + super(context, options); this.attr = attr; this.owner = owner; - this.context = context; - this.options = options; } public static TodoAttr getTodoAttr(Attr attr, Element owner, - Map context, - Map options) { + TodoContext context, + TodoItem.Options options) { Factory factory = null; String nsuri = attr.getNamespaceURI(); if ( nsuri != null && nsuri.equals(DamlEngine.DAML_NS) ) -- cgit v1.2.3