Skip navigation links

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

E12907-02


oracle.irm.engine.types.core.general
Class XPathExpression

java.lang.Object
  extended by oracle.irm.engine.types.core.general.XPathExpression

All Implemented Interfaces:
Serializable

public class XPathExpression
extends Object
implements Serializable

X Path Expression type.

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>

See Also:
Serialized Form

Constructor Summary
XPathExpression()
          No argument constructor.
XPathExpression(QName[] namespaceContexts, String value)
          Constructor.

 

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

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

XPathExpression

public XPathExpression()
No argument constructor.

XPathExpression

public XPathExpression(QName[] namespaceContexts,
                       String value)
Constructor.

Method Detail

getNamespaceContexts

public QName[] getNamespaceContexts()
The namespace contexts used in the expression.
Returns:
the value of the property.

setNamespaceContexts

public void setNamespaceContexts(QName[] value)
The namespace contexts used in the expression.
Parameters:
value - the new value for the property.

getValue

public String getValue()
The XPath expression value.
Returns:
the value of the property.

setValue

public void setValue(String value)
The XPath expression value.
Parameters:
value - the new value for the property.

Skip navigation links

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

E12907-02


Copyright © 2010, Oracle. All rights reserved.