Class NameContext
java.lang.Object
org.glassfish.rmic.iiop.NameContext
A NameContext enables detection of strings which differ only
in case.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate Hashtable<String, NameContext.Name> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringAdd a name to this context.voidAdd a name to this context.voidclear()Remove all entries.static NameContextforName(String name, boolean allowCollisions, BatchEnvironment env) Get a context for the given name.Get a name from the context.voidAdd a name to this context..
-
Field Details
-
table
-
allowCollisions
private final boolean allowCollisions
-
-
Constructor Details
-
NameContext
public NameContext(boolean allowCollisions) Construct a context.- Parameters:
allowCollisions- true if case-sensitive name collisions are allowed, false if not.
-
-
Method Details
-
forName
Get a context for the given name. Name may be null, in which case this method will return the default context. -
assertPut
-
put
Add a name to this context.. -
add
-
get
-
clear
public void clear()Remove all entries.
-