XPathType
XPathType (XPath 유형)
W3C 권장 사항인 XML-Signature XPath Filter 2.0에 정의된 XPath 요소의 XML 스키마 정의입니다.
본문
XML 스키마 정의는 다음과 같습니다.
<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="1.0" 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>
</schema>
주요 메서드와 상수는 다음과 같습니다.
getExpression()– XPath 식을 반환합니다.getFilter()– 이 XPath의 필터 유형(Filter.INTERSECT,Filter.SUBTRACT,Filter.UNION)을 반환합니다.getNamespaceMap()– 네임스페이스 접두사 매핑을 반환합니다.
Filter 중첩 클래스는 필터 유형을 나타냅니다.
Filter.INTERSECT–intersect필터로, 원래 노드 집합과 XPath 교집합을 사용합니다.Filter.SUBTRACT–subtract필터로, XPath 결과를 원래 노드 집합에서 뺍니다.Filter.UNION–union필터로, XPath 결과를 원래 노드 집합에 더합니다.
XPathType는 Object를 상속합니다.