Methods Summary |
---|
public java.lang.String | getAttribute(java.lang.String name)
for (int i=0; i<attrs.length; i++) {
if (attrs[i].getName().equals(name)) {
return attrs[i].getValue();
}
}
return "";
|
public java.lang.String | getAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
for (int i=0; i<attrs.length; i++) {
if (attrs[i].getLocalName().equals(localName) && attrs[i].getNamespaceURI().equals(namespaceURI)) {
return attrs[i].getValue();
}
}
return "";
|
public org.w3c.dom.Attr | getAttributeNode(java.lang.String name)
for (int i=0; i<attrs.length; i++) {
if (attrs[i].getName().equals(name)) {
return attrs[i];
}
}
return null;
|
public org.w3c.dom.Attr | getAttributeNodeNS(java.lang.String namespaceURI, java.lang.String localName)
for (int i=0; i<attrs.length; i++) {
if (attrs[i].getName().equals(localName) && attrs[i].getNamespaceURI().equals(namespaceURI)) {
return attrs[i];
}
}
return null;
|
public org.w3c.dom.NamedNodeMap | getAttributes()
return new NamedNodeMapImpl(attrs);
|
public int | getColumnNumber()Returns the column number.
return column;
|
public org.w3c.dom.Node | getFirstChild()
if (parentRow == -1) {
return null;
}
return schemaDOM.relations[parentRow][1];
|
public org.w3c.dom.Node | getLastChild()
if (parentRow == -1) {
return null;
}
int i=1;
for (; i<schemaDOM.relations[parentRow].length; i++) {
if (schemaDOM.relations[parentRow][i] == null) {
return schemaDOM.relations[parentRow][i-1];
}
}
if (i ==1) {
i++;
}
return schemaDOM.relations[parentRow][i-1];
|
public int | getLineNumber()Returns the line number.
return line;
|
public org.w3c.dom.Node | getNextSibling()
if (col == schemaDOM.relations[row].length-1) {
return null;
}
return schemaDOM.relations[row][col+1];
|
public org.w3c.dom.Document | getOwnerDocument()
return schemaDOM;
|
public org.w3c.dom.Node | getParentNode()
return schemaDOM.relations[row][0];
|
public org.w3c.dom.Node | getPreviousSibling()
if (col == 1) {
return null;
}
return schemaDOM.relations[row][col-1];
|
public java.lang.String | getTagName()
return rawname;
|
public boolean | hasAttribute(java.lang.String name)
for (int i=0; i<attrs.length; i++) {
if (attrs[i].getName().equals(name)) {
return true;
}
}
return false;
|
public boolean | hasAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
for (int i=0; i<attrs.length; i++) {
if (attrs[i].getName().equals(localName) && attrs[i].getNamespaceURI().equals(namespaceURI)) {
return true;
}
}
return false;
|
public boolean | hasAttributes()
return (attrs.length == 0 ? false : true);
|
public boolean | hasChildNodes()
if (parentRow == -1) {
return false;
}
else {
return true;
}
|
public void | setAttribute(java.lang.String name, java.lang.String value)
for (int i=0; i<attrs.length; i++) {
if (attrs[i].getName().equals(name)) {
attrs[i].setValue(value);
return;
}
}
|