org.jboss.metadata.spi.scope
Class ScopeLevel
java.lang.Object
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
ScopeLevel
public ScopeLevel(int level,
String name)
- Create a new ScopeLevel.
- Parameters:
level
- the levelname
- the name
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 © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.