Enum NamingConstants.JavaColonNamespace
java.lang.Object
java.lang.Enum<NamingConstants.JavaColonNamespace>
com.ibm.ws.container.service.naming.NamingConstants.JavaColonNamespace
- All Implemented Interfaces:
Serializable
,Comparable<NamingConstants.JavaColonNamespace>
- Enclosing interface:
- NamingConstants
public static enum NamingConstants.JavaColonNamespace
extends Enum<NamingConstants.JavaColonNamespace>
This enum represents the different namespaces of java:
- COMP = java:comp
- COMP_ENV = java:comp/env
- COMP_WS = java:comp/websphere
- GLOBAL = java:global
- APP = java:app
- MODULE = java:module
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionThis method returns an instance of the enum based on the passed-in string name.boolean
isComp()
Returns true if the namespace belongs to java:comp.prefix()
toString()
Returns the enum constant of this type with the specified name.static NamingConstants.JavaColonNamespace[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COMP
-
COMP_ENV
-
COMP_WS
-
GLOBAL
-
APP
-
MODULE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
match
-
fromName
This method returns an instance of the enum based on the passed-in string name. It must match the qualified name of the namespace - i.e. "java:comp" - without the trailing slash. This differs from thematch
method in that it requires the passed-in string to be exactly the same as the qualified name.- Parameters:
name
- - qualified name of the JCN enum requested- Returns:
- - the JavaColonNamespace enum instance or null if the passed-in string does not match any JCN instances.
-
toString
- Overrides:
toString
in classEnum<NamingConstants.JavaColonNamespace>
-
qualifiedName
-
prefix
-
unprefix
-
isComp
public boolean isComp()Returns true if the namespace belongs to java:comp.
-