Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


oracle.irm.engine.core.general
Interface XPathExpression


public interface XPathExpression

XPath expression.

Creation

Instances of X Path Expression objects can be created using the following factory style method(s).

XPathExpression object = createXPathExpression(
    contexts,
    value);
XPathExpression object = createXPathExpression(
    namespaceContexts,
    value);

XML Serialization

X Path Expression instances can be serialized as an XML document. This XML document can also be used to recreate a X Path Expression object. The following XML document shows an example X Path Expression in XML form.

<?xml version="1.0" encoding="UTF-8"?>
<core:XPathExpression xmlns:core="http://xmlns.oracle.com/irm/core">
    <namespaceContexts xmlns:example1="http://www.example.com">example1:e1</namespaceContexts>
    <namespaceContexts xmlns:example2="http://www.example2.com">example2:e2</namespaceContexts>
    <value>e1:node[@name='hello']</value>
</core:XPathExpression>


Method Summary
 QName[] getNamespaceContexts()
          The namespace contexts used in the expression.
 String getValue()
          The XPath expression value.

 

Method Detail

getNamespaceContexts

QName[] getNamespaceContexts()
The namespace contexts used in the expression.

State

The array returned by this method can be safely altered without affecting the internal state of the object.
Returns:
the value of the property. This method can return null.

getValue

String getValue()
The XPath expression value.
Returns:
the value of the property. This method will never return null.

Skip navigation links

Oracle® Information Rights Management Server Java API Reference
11g Release 1 (11.1.1)

E12907-03


Copyright © 2011, Oracle. All rights reserved.