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>
XPathFilter2ParameterSpec
| Modifier and Type | Class and Description |
|---|---|
| public static class | XPathType.
Represents the filter set operation. |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final XPathType. | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public | |
| public | XPathType(String
the XPath expression to be evaluated expression, XPathType.the map of namespace prefixes. Each key is a
namespace prefix namespaceMap)String that maps to a corresponding
namespace URI String.Creates an |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the XPath expression to be evaluatedReturns the XPath expression to be evaluated. |
| public XPathType. | |
| public Map | Returns: aMap of namespace prefixes to namespace URIs
(may be empty, but never null)Returns a map of namespace prefixes. |
| expression | back to summary |
|---|---|
| private final String expression | |
| filter | back to summary |
|---|---|
| private final XPathType. | |
| nsMap | back to summary |
|---|---|
| private final Map<String, String> nsMap | |
| XPathType | back to summary |
|---|---|
| public XPathType(String expression, XPathType. Creates an
| |
| XPathType | back to summary |
|---|---|
| public XPathType(String expression, XPathType. Creates an
| |
| getExpression | back to summary |
|---|---|
| public String getExpression() Returns the XPath expression to be evaluated.
| |
| getFilter | back to summary |
|---|---|
| public XPathType. Returns the filter operation. | |
| getNamespaceMap | back to summary |
|---|---|
| public Map Returns a map of namespace prefixes. Each key is a namespace prefix
This implementation returns an | |
| Modifier and Type | Field and Description |
|---|---|
| public static final XPathType. | INTERSECT
The intersect filter operation. |
| private final String | |
| public static final XPathType. | SUBTRACT
The subtract filter operation. |
| public static final XPathType. | UNION
The union filter operation. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the string form of the operationOverrides java. Returns the string form of the operation. |
| INTERSECT | back to summary |
|---|---|
| public static final XPathType. The intersect filter operation. | |
| operation | back to summary |
|---|---|
| private final String operation | |
| SUBTRACT | back to summary |
|---|---|
| public static final XPathType. The subtract filter operation. | |
| UNION | back to summary |
|---|---|
| public static final XPathType. The union filter operation. | |
| Filter | back to summary |
|---|---|
| private Filter(String operation) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns the string form of the operation.
| |