Methods Summary |
---|
public int | getAttributeCount()
return mAttributes.length; // text attribute
|
public java.lang.String | getAttributeName(int index)
if (index < mAttributes.length) {
return mAttributes[index][0];
}
return null;
|
public java.lang.String | getAttributeNamespace(int index)
return SdkConstants.NS_RESOURCES;
|
public java.lang.String | getAttributePrefix(int index)
// pass
return null;
|
public java.lang.String | getAttributeValue(int index)
if (index < mAttributes.length) {
return mAttributes[index][1];
}
return null;
|
public java.lang.String | getAttributeValue(java.lang.String ns, java.lang.String name)
if (SdkConstants.NS_RESOURCES.equals(ns)) {
for (String[] attribute : mAttributes) {
if (name.equals(attribute[0])) {
return attribute[1];
}
}
}
return null;
|
public int | getDepth()
// pass
return 0;
|
public java.lang.String | getName()
return mDescriptor.getXmlLocalName();
|
public java.lang.String | getNamespace()
// pass
return null;
|
public java.lang.String | getPositionDescription()
// pass
return null;
|
public java.lang.String | getPrefix()
// pass
return null;
|
public java.lang.Object | getViewKey()
// we need a viewKey or the ILayoutResult will not contain any ILayoutViewInfo
return mDescriptor;
|
public boolean | isEmptyElementTag()
if (mParsingState == START_TAG) {
return true;
}
throw new XmlPullParserException("Call to isEmptyElementTag while not in START_TAG",
this, null);
|
public void | onNextFromEndTag()
// just one tag. we are done.
mParsingState = END_DOCUMENT;
|
public void | onNextFromStartDocument()
// just go to start_tag
mParsingState = START_TAG;
|
public void | onNextFromStartTag()
// since we have no children, just go to end_tag
mParsingState = END_TAG;
|