JavaTM 2 Platform
Standard Ed. 6

javax.xml.crypto.dom
类 DOMStructure

java.lang.Object
  继承者 javax.xml.crypto.dom.DOMStructure
所有已实现的接口:
XMLStructure

public class DOMStructure
extends Object
implements XMLStructure

特定于 DOM 的 XMLStructure。此类的目的是允许使用 DOM 节点表示 XML Signature 结构中的可扩展内容(任何元素或混合内容)。

如果需要节点序列,那么包含在 DOMStructure 中的节点将是该序列的第一个节点,随后的节点可以通过调用 Node.getNextSibling() 访问。

如果 DOMStructure 的所有者文档与 XMLSignature 的目标文档不同,则在生成签名前,XMLSignature.sign(XMLSignContext) 方法会将节点导入目标文档。

从以下版本开始:
1.6

构造方法摘要
DOMStructure(Node node)
          创建包含指定节点的 DOMStructure
 
方法摘要
 Node getNode()
          返回包含在此 DOMStructure 中的节点。
 boolean isFeatureSupported(String feature)
          指示是否支持指定的功能。
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

DOMStructure

public DOMStructure(Node node)
创建包含指定节点的 DOMStructure

参数:
node - 节点
抛出:
NullPointerException - 如果 nodenull
方法详细信息

getNode

public Node getNode()
返回包含在此 DOMStructure 中的节点。

返回:
节点

isFeatureSupported

public boolean isFeatureSupported(String feature)
从接口 XMLStructure 复制的描述
指示是否支持指定的功能。

指定者:
接口 XMLStructure 中的 isFeatureSupported
参数:
feature - 功能的名称(以抽象 URI 形式)
返回:
如果支持指定功能,则返回 true,否则返回 false
抛出:
NullPointerException - 如果 featurenull

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only