Skip navigation links

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

E12907-03


oracle.irm.engine.content.schema
Interface SchemaVersion

All Superinterfaces:
Comparable<SchemaVersion>

public interface SchemaVersion
extends Comparable<SchemaVersion>

A schema version. A version numbering scheme for a ContentSchema.

Creation

Instances of Schema Version objects can be created using the following factory style method(s).

SchemaVersion object = createSchemaVersion(
    major,
    minor);
SchemaVersion object = createSchemaVersion(version);

XML Serialization

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

<?xml version="1.0" encoding="UTF-8"?>
<content:SchemaVersion xmlns:content="http://xmlns.oracle.com/irm/content">
    <version>6.0</version>
</content:SchemaVersion>


Method Summary
 int getMajor()
          Major version number.
 int getMinor()
          Minor version number.
 String getVersion()
          Version string.

 

Methods inherited from interface java.lang.Comparable
compareTo

 

Method Detail

getVersion

String getVersion()
Version string. e.g. 6.0
Returns:
the value of the property. This method will never return null.

getMajor

int getMajor()
Major version number.

Transient

This property is transient and will not be serialized (e.g into XML, remote method calls).
Returns:
the value of the property.

getMinor

int getMinor()
Minor version number.

Transient

This property is transient and will not be serialized (e.g into XML, remote method calls).
Returns:
the value of 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.