protected void load(Element root) throws Exception { NodeList list; int i; list = WSHelper.getElementChildren(root, "Messages"); if (list != null) { for (i = 0; i < list.getLength(); i++) { Element nc = (Element) list.item(i); _Messages.addElement(JanusMessageInfo.loadFrom(nc)); } } list = WSHelper.getElementChildren(root, "Rating"); if (list != null) { for (i = 0; i < list.getLength(); i++) { Element nc = (Element) list.item(i); _Rating.addElement(JanusRatingInfo.loadFrom(nc)); } } list = WSHelper.getElementChildren(root, "Moderate"); if (list != null) { for (i = 0; i < list.getLength(); i++) { Element nc = (Element) list.item(i); _Moderate.addElement(JanusModerateInfo.loadFrom(nc)); } } }
int length() { return v.size(); }
XmlNode item(int index) { return (XmlNode) (v.get(index)); }
void remove(int index) { v.remove(index); }
private void _add(XmlNode n) { v.add(n); }