Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

oracle.jdeveloper.history
Class RevisionIdentifier

java.lang.Object
  extended by oracle.jdeveloper.history.RevisionIdentifier
All Implemented Interfaces:
java.lang.Comparable

public class RevisionIdentifier
extends java.lang.Object
implements java.lang.Comparable

Class of objects returned from HistoryEntry.getValue() for the SharedProperties.REVISION property. This simply consists of an icon and a string.

Since:
10.0.3

Constructor Summary
RevisionIdentifier(javax.swing.Icon icon, java.lang.String label)
          Construct the identifier.
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object that)
          Simple implementation of equals() that compares two RevisionIdentifiers based on their label.
 javax.swing.Icon getIcon()
          Get the icon.
 java.lang.String getLabel()
          Get the label.
 boolean isCurrent()
          Get whether this identifies the current document revision.
 void setCurrent(boolean current)
          Set whether this identifies the current document revision.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RevisionIdentifier

public RevisionIdentifier(javax.swing.Icon icon,
                          java.lang.String label)
Construct the identifier.

Parameters:
icon - the icon
revision - the revision number (and label).
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

getIcon

public javax.swing.Icon getIcon()
Get the icon.

Returns:
the icon.

getLabel

public java.lang.String getLabel()
Get the label.

Returns:
the label.

setCurrent

public void setCurrent(boolean current)
Set whether this identifies the current document revision.

Parameters:
current - true if the revision is current.

isCurrent

public boolean isCurrent()
Get whether this identifies the current document revision.

Returns:
true if the revision is current.

equals

public boolean equals(java.lang.Object that)
Simple implementation of equals() that compares two RevisionIdentifiers based on their label.

Overrides:
equals in class java.lang.Object
Parameters:
that - the other object to compare with
Returns:
true if the other object represents the same revision as this

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

Copyright © 1997, 2011, Oracle. All rights reserved.