Lines Matching refs:parser

232      * @param parser XML dom node containing the description of the
239 public T inflate(XmlPullParser parser, P root) {
240 return inflate(parser, root, root != null);
261 XmlResourceParser parser = getContext().getResources().getXml(resource);
263 return inflate(parser, root, attachToRoot);
265 parser.close();
278 * @param parser XML dom node containing the description of the
290 public T inflate(XmlPullParser parser, P root,
293 final AttributeSet attrs = Xml.asAttributeSet(parser);
300 while ((type = parser.next()) != parser.START_TAG
301 && type != parser.END_DOCUMENT) {
305 if (type != parser.START_TAG) {
306 throw new InflateException(parser.getPositionDescription()
313 + parser.getName());
317 T xmlRoot = createItemFromTag(parser, parser.getName(),
326 rInflate(parser, result, attrs);
340 parser.getPositionDescription()
420 private final T createItemFromTag(XmlPullParser parser, String name, AttributeSet attrs) {
460 private void rInflate(XmlPullParser parser, T parent, final AttributeSet attrs)
462 final int depth = parser.getDepth();
465 while (((type = parser.next()) != parser.END_TAG ||
466 parser.getDepth() > depth) && type != parser.END_DOCUMENT) {
468 if (type != parser.START_TAG) {
472 if (onCreateCustomFromTag(parser, parent, attrs)) {
477 System.out.println("Now inflating tag: " + parser.getName());
479 String name = parser.getName();
481 T item = createItemFromTag(parser, name, attrs);
493 rInflate(parser, item, attrs);
503 * will be called. The parser will be pointing to the start of a tag, you
506 * @param parser XML dom node containing the description of the hierarchy.
512 protected boolean onCreateCustomFromTag(XmlPullParser parser, T parent,