From fcbfb8ace939689e3373a8daf78af1e0c90d7fa3 Mon Sep 17 00:00:00 2001 From: stefanp Date: Tue, 24 Jun 2003 11:20:40 +0000 Subject: [PATCH] listTags() filters with string and no longer with int --- src/helma/doc/DocElement.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helma/doc/DocElement.java b/src/helma/doc/DocElement.java index 8ea2cbdb..2d08da58 100644 --- a/src/helma/doc/DocElement.java +++ b/src/helma/doc/DocElement.java @@ -145,13 +145,13 @@ public abstract class DocElement implements IPathElement { } /** - * filter the tags according to DocTag.TYPE + * filter the tags according to their type */ - public DocTag[] listTags(int type) { + public DocTag[] listTags(String type) { Vector retval = new Vector(); for (int i = 0; i < tags.size(); i++) { - if (((DocTag) tags.get(i)).getType() == type) { + if (((DocTag) tags.get(i)).getType().equals(type)) { retval.add(tags.get(i)); } }