more with method naming, add XML hasChildren() method

This commit is contained in:
benfry
2012-07-22 00:20:16 +00:00
parent bae7fa5243
commit 26593bbf2f
4 changed files with 31 additions and 3 deletions

View File

@@ -238,6 +238,12 @@ public class XML implements Serializable {
checkChildren();
return children.length;
}
public boolean hasChildren() {
checkChildren();
return children.length > 0;
}
/**