Methods Summary |
---|
static native void | freeAttributes(int pointer)
|
public int | getIndex(java.lang.String qName)
if (qName == null) {
throw new NullPointerException("uri");
}
int pointer = getPointer();
if (pointer == 0) {
return -1;
}
return getIndex(pointer, qName);
|
static native int | getIndex(int attributePointer, java.lang.String uri, java.lang.String localName)
|
static native int | getIndex(int attributePointer, java.lang.String qName)
|
public int | getIndex(java.lang.String uri, java.lang.String localName)
if (uri == null) {
throw new NullPointerException("uri");
}
if (localName == null) {
throw new NullPointerException("local name");
}
int pointer = getPointer();
if (pointer == 0) {
return -1;
}
return getIndex(pointer, uri, localName);
|
public abstract int | getLength()Gets the number of attributes.
|
static native java.lang.String | getLocalName(int pointer, int attributePointer, int index)
|
public java.lang.String | getLocalName(int index)
return (index < 0 || index >= getLength())
? null
: getLocalName(getParserPointer(), getPointer(), index);
|
abstract int | getParserPointer()Gets the pointer to the parser. We need this so we can get to the
interned string pool.
|
public abstract int | getPointer()Gets the pointer to the underlying attribute array. Can be 0 if the
length is 0.
|
static native java.lang.String | getQName(int pointer, int attributePointer, int index)
|
public java.lang.String | getQName(int index)
return (index < 0 || index >= getLength())
? null
: getQName(getParserPointer(), getPointer(), index);
|
public java.lang.String | getType(java.lang.String uri, java.lang.String localName)
if (uri == null) {
throw new NullPointerException("uri");
}
if (localName == null) {
throw new NullPointerException("local name");
}
return getIndex(uri, localName) == -1 ? null : CDATA;
|
public java.lang.String | getType(java.lang.String qName)
return getIndex(qName) == -1 ? null : CDATA;
|
public java.lang.String | getType(int index)
return (index < 0 || index >= getLength()) ? null : CDATA;
|
static native java.lang.String | getURI(int pointer, int attributePointer, int index)
|
public java.lang.String | getURI(int index)
if (index < 0 || index >= getLength()) {
return null;
}
return getURI(getParserPointer(), getPointer(), index);
|
public java.lang.String | getValue(java.lang.String uri, java.lang.String localName)
if (uri == null) {
throw new NullPointerException("uri");
}
if (localName == null) {
throw new NullPointerException("local name");
}
int pointer = getPointer();
if (pointer == 0) {
return null;
}
return getValue(pointer, uri, localName);
|
public java.lang.String | getValue(java.lang.String qName)
if (qName == null) {
throw new NullPointerException("qName");
}
int pointer = getPointer();
if (pointer == 0) {
return null;
}
return getValue(pointer, qName);
|
static native java.lang.String | getValue(int attributePointer, int index)
|
static native java.lang.String | getValue(int attributePointer, java.lang.String uri, java.lang.String localName)
|
static native java.lang.String | getValue(int attributePointer, java.lang.String qName)
|
public java.lang.String | getValue(int index)
return (index < 0 || index >= getLength())
? null
: getValue(getPointer(), index);
|