List of utility methods to do XmlPullParser Check
boolean | IsElement(XmlPullParser reader) Is Element if (reader == null) throw new NullPointerException(); return reader.getEventType() == XmlPullParser.START_TAG; |
boolean | IsElement(XmlPullParser reader, String name) Is Element if (reader == null) throw new NullPointerException(); return reader.getEventType() == XmlPullParser.START_TAG && (isNullOrEmpty(name) || StringEquals( GetFullName(reader), name)); |
boolean | IsElement(XmlPullParser reader, String namespaceName, String localName) Is Element if (reader == null) throw new NullPointerException(); return reader.getEventType() == XmlPullParser.START_TAG && IsName(reader, namespaceName, localName); |
boolean | IsEndElement(XmlPullParser reader) Is End Element if (reader == null) throw new NullPointerException(); return IsEndElement(reader, null); |
boolean | IsEndElement(XmlPullParser reader, String name) Is End Element if (reader == null) throw new NullPointerException(); return (reader.getEventType() == XmlPullParser.END_TAG) && (isNullOrEmpty(name) || StringEquals( GetFullName(reader), name)); |
boolean | IsEndElement(XmlPullParser reader, String namespaceName, String localName) Is End Element if (reader == null) throw new NullPointerException(); return (reader.getEventType() == XmlPullParser.END_TAG) && IsName(reader, namespaceName, localName); |
boolean | IsName(XmlPullParser reader, String namespaceName, String localName) Is Name if (reader == null) throw new NullPointerException(); String ns = reader.getNamespace(); if (isNullOrEmpty(ns)) { ns = null; if (isNullOrEmpty(namespaceName)) { namespaceName = null; ... |
boolean | IsStartElement(XmlPullParser reader) Is Start Element if (reader == null) throw new NullPointerException(); MoveToContent(reader); return reader.getEventType() == XmlPullParser.START_TAG; |
boolean | IsStartElement(XmlPullParser reader, String name) Is Start Element if (reader == null) throw new NullPointerException(); MoveToContent(reader); return reader.getEventType() == XmlPullParser.START_TAG && (isNullOrEmpty(name) || StringEquals( GetFullName(reader), name)); |
boolean | IsStartElement(XmlPullParser reader, String namespaceName, String localName) Is Start Element if (reader == null) throw new NullPointerException(); MoveToContent(reader); return reader.getEventType() == XmlPullParser.START_TAG && IsName(reader, namespaceName, localName); |