if (null == flagsNode)
return flagList;
NodeList children = flagsNode.getChildNodes();
Node node;
CommentFlag flag;
NamedNodeMap attriMap;
for (int i = 0; i < children.getLength(); i++) {
node = children.item(i);
if (node.getNodeType() == Node.ELEMENT_NODE) {
if (Comment.FLAG.equalsIgnoreCase(node.getNodeName())) {
flag = new CommentFlag();
attriMap = node.getAttributes();
flag.setId(Integer.parseInt(attriMap.getNamedItem(
CommentFlag.ID).getNodeValue()));
flagList.add(flag);
}
}
}