Module java.xml.crypto

Class XPathType

java.lang.Object
javax.xml.crypto.dsig.spec.XPathType

public class XPathType extends Object
XML Schema Definition of the XPath element as defined in the W3C Recommendation for XML-Signature XPath Filter 2.0:

 <schema xmlns="http://www.w3.org/2001/XMLSchema"
         xmlns:xf="http://www.w3.org/2002/06/xmldsig-filter2"
         targetNamespace="http://www.w3.org/2002/06/xmldsig-filter2"
         version="0.1" elementFormDefault="qualified">

 <element name="XPath"
          type="xf:XPathType"/>

 <complexType name="XPathType">
   <simpleContent>
     <extension base="string">
       <attribute name="Filter">
         <simpleType>
           <restriction base="string">
             <enumeration value="intersect"/>
             <enumeration value="subtract"/>
             <enumeration value="union"/>
           </restriction>
         </simpleType>
       </attribute>
     </extension>
   </simpleContent>
 </complexType>
 
自版本:
1.6
参见:
  • Constructor Details

  • Method Details

    • getExpression

      public String getExpression()
      返回要评估的XPath表达式。
      返回:
      要评估的XPath表达式
    • getFilter

      public XPathType.Filter getFilter()
      返回过滤操作。
      返回:
      过滤操作
    • getNamespaceMap

      public Map<String,String> getNamespaceMap()
      返回命名空间前缀的映射。每个键是一个命名空间前缀String,映射到相应的命名空间URIString

      此实现返回一个不可修改的映射

      返回:
      一个命名空间前缀到命名空间URI的Map(可能为空,但不会为null