Android Utililty Methods XmlPullParser Check

List of utility methods to do XmlPullParser Check

Description

The list of methods to do XmlPullParser Check are organized into topic(s).

Method

booleanIsElement(XmlPullParser reader)
Is Element
if (reader == null)
    throw new NullPointerException();
return reader.getEventType() == XmlPullParser.START_TAG;
booleanIsElement(XmlPullParser reader, String name)
Is Element
if (reader == null)
    throw new NullPointerException();
return reader.getEventType() == XmlPullParser.START_TAG
        && (isNullOrEmpty(name) || StringEquals(
                GetFullName(reader), name));
booleanIsElement(XmlPullParser reader, String namespaceName, String localName)
Is Element
if (reader == null)
    throw new NullPointerException();
return reader.getEventType() == XmlPullParser.START_TAG
        && IsName(reader, namespaceName, localName);
booleanIsEndElement(XmlPullParser reader)
Is End Element
if (reader == null)
    throw new NullPointerException();
return IsEndElement(reader, null);
booleanIsEndElement(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));
booleanIsEndElement(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);
booleanIsName(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;
...
booleanIsStartElement(XmlPullParser reader)
Is Start Element
if (reader == null)
    throw new NullPointerException();
MoveToContent(reader);
return reader.getEventType() == XmlPullParser.START_TAG;
booleanIsStartElement(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));
booleanIsStartElement(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);