Skip navigation links

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

E12907-03


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

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

All Implemented Interfaces:
Serializable

public class PageRange
extends Object
implements Serializable

Page Range type. A page range specifies a range of records starting from the First record index and ending at the Last record index time.

XML Serialization

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

<?xml version="1.0" encoding="UTF-8"?>
<core:PageRange xmlns:core="http://xmlns.oracle.com/irm/core">
    <first>20</first>
    <last>40</last>
</core:PageRange>

See Also:
Serialized Form

Constructor Summary
PageRange()
          No argument constructor.
PageRange(int first, int last)
          Constructor.

 

Method Summary
 int getFirst()
          First record index.
 int getLast()
          Last record index.
 void setFirst(int value)
          First record index.
 void setLast(int value)
          Last record index.

 

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

 

Constructor Detail

PageRange

public PageRange()
No argument constructor.

PageRange

public PageRange(int first,
                 int last)
Constructor.

Method Detail

getFirst

public int getFirst()
First record index. Indexes start at one.
Returns:
the value of the property.

setFirst

public void setFirst(int value)
First record index. Indexes start at one.
Parameters:
value - the new value for the property.

getLast

public int getLast()
Last record index. Must be greater than the first record index.
Returns:
the value of the property.

setLast

public void setLast(int value)
Last record index. Must be greater than the first record index.
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-03


Copyright © 2011, Oracle. All rights reserved.