listTags() filters with string and no longer with int
This commit is contained in:
parent
4651579309
commit
fcbfb8ace9
1 changed files with 3 additions and 3 deletions
|
@ -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();
|
Vector retval = new Vector();
|
||||||
|
|
||||||
for (int i = 0; i < tags.size(); i++) {
|
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));
|
retval.add(tags.get(i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue