Implementation of DOM Events from the W3c DOM Level 2 current working draft git-svn-id: svn://10.0.0.236/trunk@51761 18797224-902f-48f8-a5cc-f745e15eee43
67 lines
2.3 KiB
Java
67 lines
2.3 KiB
Java
/*
|
|
The contents of this file are subject to the Mozilla Public License
|
|
Version 1.0 (the "License"); you may not use this file except in
|
|
compliance with the License. You may obtain a copy of the License at
|
|
http://www.mozilla.org/MPL/
|
|
|
|
Software distributed under the License is distributed on an "AS IS"
|
|
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
|
|
the License for the specific language governing rights and limitations
|
|
under the License.
|
|
|
|
The Initial Developer of the Original Code is Sun Microsystems,
|
|
Inc. Portions created by Sun are Copyright (C) 1999 Sun Microsystems,
|
|
Inc. All Rights Reserved.
|
|
*/
|
|
|
|
package org.mozilla.dom;
|
|
|
|
import org.w3c.dom.Attr;
|
|
import org.w3c.dom.Element;
|
|
import org.w3c.dom.NodeList;
|
|
import org.w3c.dom.DOMException;
|
|
|
|
public class ElementImpl extends NodeImpl implements Element {
|
|
|
|
// instantiated from JNI or Document.createElement()
|
|
private ElementImpl() {}
|
|
|
|
public native String getAttribute(String name);
|
|
public native Attr getAttributeNode(String name);
|
|
public native NodeList getElementsByTagName(String name);
|
|
public native String getTagName();
|
|
public native void normalize();
|
|
public native void removeAttribute(String name);
|
|
public native Attr removeAttributeNode(Attr oldAttr);
|
|
public native void setAttribute(String name, String value);
|
|
public native Attr setAttributeNode(Attr newAttr);
|
|
|
|
//since DOM2
|
|
public String getAttributeNS(String namespaceURI, String localName) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
public void setAttributeNS(String namespaceURI, String localName,
|
|
String value) throws DOMException {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
public void removeAttributeNS(String namespacURI, String localName)
|
|
throws DOMException {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
public Attr getAttributeNodeNS(String namespaceURI, String localName) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
public Attr setAttributeNodeNS(Attr newAttr) throws DOMException {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
public NodeList getElementsByTagNameNS(String namespaceURI, String localName) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
}
|