/** * Similar to {@link #asTyped()}, this will return this object's children * as the proper complex type subclass of XMLizable, if they are complex * types. If a child is not a complex type, it will be returned as-is, * as an XmlObject. * @return */ public Iterator<XMLizable> getTypedChildren() { ArrayList<XMLizable> result = new ArrayList<XMLizable>(children.size()); for (XmlObject child : children) { result.add(child.asTyped()); } return result.iterator(); }
/** * Similar to {@link #asTyped()}, this will return this object's children * as the proper complex type subclass of XMLizable, if they are complex * types. If a child is not a complex type, it will be returned as-is, * as an XmlObject. * @return */ public Iterator<XMLizable> getTypedChildren() { ArrayList<XMLizable> result = new ArrayList<XMLizable>(children.size()); for (XmlObject child : children) { result.add(child.asTyped()); } return result.iterator(); }