org.jboss.metadata.spi.scope
Class ScopeLevel

java.lang.Object
  extended by org.jboss.metadata.spi.scope.ScopeLevel
All Implemented Interfaces:
Serializable, Comparable<ScopeLevel>

public class ScopeLevel
extends Object
implements Serializable, Comparable<ScopeLevel>

ScopeLevel.

Version:
$Revision: 46146 $
Author:
Adrian Brock
See Also:
Serialized Form

Constructor Summary
ScopeLevel(int level, String name)
          Create a new ScopeLevel.
 
Method Summary
 int compareTo(ScopeLevel o)
           
 boolean equals(Object object)
           
 int getLevel()
           
 String getName()
           
static int getScopeLevel(String name)
          Get the scope level for a name
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScopeLevel

public ScopeLevel(int level,
                  String name)
Create a new ScopeLevel.

Parameters:
level - the level
name - the name
Method Detail

getScopeLevel

public static int getScopeLevel(String name)
Get the scope level for a name

Parameters:
name - the name
Returns:
the level or zero if no such level name

getLevel

public int getLevel()

getName

public String getName()

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(ScopeLevel o)
Specified by:
compareTo in interface Comparable<ScopeLevel>

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.