org.kohsuke.jnt
Class JNRole

java.lang.Object
  extended by org.kohsuke.jnt.JNRole
All Implemented Interfaces:
Comparable

public class JNRole
extends Object
implements Comparable

An role on java.net.

Instance of this can be obtained from JavaNet.getRole(String).

Author:
Kohsuke Kawaguchi

Method Summary
 int compareTo(Object o)
           
 boolean equals(Object obj)
           
 String getName()
          Obtains the full role name.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public final String getName()
Obtains the full role name.

Returns:
non-null valid string.

compareTo

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003-2008 Kohsuke Kawaguchi. All Rights Reserved.