接口的使用
org.w3c.dom.Attr
使用 Attr 的包
-
Attr 在 javax.imageio.metadata 中的用法
javax.imageio.metadata 中返回 Attr 的方法修饰符和类型方法描述IIOMetadataNode.getAttributeNode(String name) IIOMetadataNode.getAttributeNodeNS(String namespaceURI, String localName) 相当于getAttributeNode(localName)。IIOMetadataNode.removeAttributeNode(Attr oldAttr) IIOMetadataNode.setAttributeNode(Attr newAttr) IIOMetadataNode.setAttributeNodeNS(Attr newAttr) 相当于setAttributeNode(newAttr)。javax.imageio.metadata 中的方法,参数类型为 Attr修饰符和类型方法描述IIOMetadataNode.removeAttributeNode(Attr oldAttr) IIOMetadataNode.setAttributeNode(Attr newAttr) IIOMetadataNode.setAttributeNodeNS(Attr newAttr) 相当于setAttributeNode(newAttr)。voidIIOMetadataNode.setIdAttributeNode(Attr idAttr, boolean isId) IIOMetadataNode不支持此 DOM Level 3 方法,并将抛出DOMException。 -
Attr 在 org.w3c.dom 中的用法
org.w3c.dom 中返回 Attr 的方法修饰符和类型方法描述Document.createAttribute(String name) 创建给定名称的Attr。Document.createAttributeNS(String namespaceURI, String qualifiedName) 创建给定限定名称和命名空间 URI 的属性。Element.getAttributeNode(String name) 按名称检索属性节点。Element.getAttributeNodeNS(String namespaceURI, String localName) 通过本地名称和命名空间 URI 检索Attr节点。Element.removeAttributeNode(Attr oldAttr) 删除指定的属性节点。Element.setAttributeNode(Attr newAttr) 添加一个新的属性节点。Element.setAttributeNodeNS(Attr newAttr) 添加新属性。org.w3c.dom 中的方法,参数类型为 Attr修饰符和类型方法描述Element.removeAttributeNode(Attr oldAttr) 删除指定的属性节点。Element.setAttributeNode(Attr newAttr) 添加一个新的属性节点。Element.setAttributeNodeNS(Attr newAttr) 添加新属性。voidElement.setIdAttributeNode(Attr idAttr, boolean isId) 如果参数isId是true,则此方法将指定的属性声明为用户确定的 ID 属性。