Skip navigation links

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

E12907-01


oracle.irm.engine.types.classifications.item
Class ItemCode

java.lang.Object
  extended by oracle.irm.engine.types.classifications.item.ItemCode

All Implemented Interfaces:
Serializable

public class ItemCode
extends Object
implements Serializable

Item Code type. An item code is a fine-grained way of identifying sealed content. An item code is made up of a string based Value and an optional Time stamp. When sealed content contains an item code the value and time stamp can be used to identify the content. The item code value is typically the file name and the time stamp indicates when the sealed content was created. However, these are just suggested uses - there is no requirement that these the file name/current time be used for these values.

Two item codes are considered logically identical if the item code values are the same and, if present, the time stamps are the same.

XML Serialization

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

<?xml version="1.0" encoding="UTF-8"?>
<classifications:ItemCode xmlns:classifications="http://xmlns.oracle.com/irm/classifications">
    <value>sample.sdoc</value>
    <time>2007-05-10T12:00:00.000+00:00</time>
</classifications:ItemCode>

See Also:
Serialized Form

Constructor Summary
ItemCode()
          No argument constructor.
ItemCode(String value, Date time)
          Constructor.

 

Method Summary
 Date getTime()
          The item code time stamp.
 String getValue()
          The item code value.
 void setTime(Date value)
          The item code time stamp.
 void setValue(String value)
          The item code value.

 

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

 

Constructor Detail

ItemCode

public ItemCode()
No argument constructor.

ItemCode

public ItemCode(String value,
                Date time)
Constructor.

Method Detail

getValue

public String getValue()
The item code value. There is no requirement for item codes to be unique.
Returns:
the value of the property.

setValue

public void setValue(String value)
The item code value. There is no requirement for item codes to be unique.
Parameters:
value - the new value for the property.

getTime

public Date getTime()
The item code time stamp. This time stamp usually indicates the time the item was created.
Returns:
the value of the property.

setTime

public void setTime(Date value)
The item code time stamp. This time stamp usually indicates the time the item was created.
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-01


Copyright © 2010, Oracle. All rights reserved.