ARoad0.gBaseInterface
Interface ImmutableLeaf

All Superinterfaces:
ACSObject, BaseObject, BoundBean, java.lang.Comparable, FinalizedObject, FinalizedObjectForUser
All Known Subinterfaces:
Actor, ActorMySQL, ActorUbuntu, BasesSetMySQL, Directory, DirectoryMySQL, DirectoryUbuntu, ExecutableUbuntu, ImmutableActor, ImmutableDirectory, ImmutableNode, ImmutablePrivilegeTarget, ImmutableResource, ImmutableVirtualFolder, Leaf, Node, PrivilegeTarget, Resource, ResourceMySQL, ResourceUbuntu, VirtualFolder, VirtualFolderMySQL
All Known Implementing Classes:
ActorImpl, ActorMySQLImpl, ActorUbuntuImpl, BasesSetMySQLImpl, DirectoryImpl, DirectoryMySQLImpl, DirectoryUbuntuImpl, ExecutableUbuntuImpl, ResourceImpl, ResourceMySQLImpl, ResourceUbuntuImpl, VirtualFolderImpl, VirtualFolderMySQLImpl

public interface ImmutableLeaf
extends ACSObject, java.lang.Comparable, BoundBean, FinalizedObjectForUser

This immutable interface is responsible for modeling a leaf in a tree. It is used in resources trees and virtual folder trees. It is not used in NameTree, which is based on specific nodes.


Method Summary
 int compareTo(java.lang.Object o)
          From the Comparable interface.
 ImmutableNode getEorParent()
          Gets the current parent node of the object
 
Methods inherited from interface ARoad0.gBaseInterface.ACSObject
getAcsName, getEorACS
 
Methods inherited from interface ARoad0.gBaseInterface.BaseObject
equals, getFullName, getName, getNickName, hashCode
 
Methods inherited from interface ARoad0.gBaseInterface.BoundBean
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from interface ARoad0.gBaseInterface.FinalizedObjectForUser
finalizeForUser
 
Methods inherited from interface ARoad0.gBaseInterface.FinalizedObject
finalizeForBase
 

Method Detail

getEorParent

ImmutableNode getEorParent()
Gets the current parent node of the object

Returns:
a reference on the current parent node

compareTo

int compareTo(java.lang.Object o)
              throws java.lang.ClassCastException
From the Comparable interface.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - Object to compare must be an ImmutableResource (true for Resource)
Returns:
0 is the resources are equals, a negative integer if this object is lesser than the argument, and a positive integer if this object is greater than the argument. The comparison is based on the name compareTo() method of each object when they are not equals.
Throws:
java.lang.ClassCastException - - if the specified object's type prevents it from being compared to this current Object