org.talika.tarsis.security
Class RoleImpl

java.lang.Object
  extended by org.talika.tarsis.security.RoleImpl
All Implemented Interfaces:
java.io.Serializable, Role

public final class RoleImpl
extends java.lang.Object
implements Role, java.io.Serializable

Implementation of Role interface.

Version:
$Revision: 124 $
Author:
Jose M. Palomar
See Also:
Serialized Form

Constructor Summary
RoleImpl(java.lang.String name)
          Creates a new RoleImpl.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 java.lang.String getName()
          Returns name of role.
 int hashCode()
          Returns a hash code value for the object.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RoleImpl

public RoleImpl(java.lang.String name)
Creates a new RoleImpl.

Parameters:
name - String name of role.
Method Detail

getName

public java.lang.String getName()
Returns name of role.

Specified by:
getName in interface Role
Returns:
String name of role.
See Also:
Role.getName()

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class java.lang.Object
Parameters:
obj - Object the reference object with which to compare.
Returns:
boolean true if this object is the same as the obj argument; false otherwise.

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class java.lang.Object
Returns:
int a hash code value for this object.

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
String a string representation of the object.


Copyright © 2002-2012 Talika Open Source Group. All Rights Reserved.