Package com.sun.corba.se.impl.corba
Class ContextImpl
java.lang.Object
org.omg.CORBA.Context
com.sun.corba.se.impl.corba.ContextImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the name of thisContextobject.create_child(String name) Creates aContextobject with the given string as its name and with thisContextobject set as its parent.voiddelete_values(String propName) Deletes from thisContextobject theNamedValueobject(s) whosenamefield matches the given property name.get_values(String startScope, int opFlags, String propName) Retrieves theNamedValueobjects whosenamefield matches the given name or name pattern.parent()Retrieves the parent of thisContextobject.voidset_one_value(String propName, Any propValue) Creates aNamedValueobject and adds it to thisContextobject.voidset_values(NVList values) I Sets one or more property values in thisContextobject.
-
Constructor Details
-
ContextImpl
-
ContextImpl
-
-
Method Details
-
context_name
Description copied from class:ContextRetrieves the name of thisContextobject.- Specified by:
context_namein classContext- Returns:
- the name of this
Contextobject
-
parent
Description copied from class:ContextRetrieves the parent of thisContextobject. -
create_child
Description copied from class:ContextCreates aContextobject with the given string as its name and with thisContextobject set as its parent.The new
Contextobject is chained into its parentContextobject. This means that in a search for matching property names, if a match is not found in this context, the search will continue in the parent. If that is not successful, the search will continue in the grandparent, if there is one, and so on.- Specified by:
create_childin classContext- Parameters:
name- theStringobject to be set as the name of the newContextobject- Returns:
- the newly-created child
Contextobject initialized with the specified name
-
set_one_value
Description copied from class:ContextCreates aNamedValueobject and adds it to thisContextobject. Thenamefield of the newNamedValueobject is set to the given string, thevaluefield is set to the givenAnyobject, and theflagsfield is set to zero.- Specified by:
set_one_valuein classContext- Parameters:
propName- the name of the property to be setpropValue- theAnyobject to which the value of the property will be set. TheAnyobject'svaluefield contains the value to be associated with the given propname; thekindfield must be set toTCKind.tk_string.
-
set_values
Description copied from class:ContextI Sets one or more property values in thisContextobject. TheNVListsupplied to this method contains one or moreNamedValueobjects. In eachNamedValueobject, thenamefield holds the name of the property, and theflagsfield must be set to zero. TheNamedValueobject'svaluefield contains anAnyobject, which, in turn, contains the value for the property. Since the value is always a string, theAnyobject must have thekindfield of itsTypeCodeset toTCKind.tk_string.- Specified by:
set_valuesin classContext- Parameters:
values- an NVList containing the property names and associated values to be set- See Also:
-
delete_values
Description copied from class:ContextDeletes from thisContextobject theNamedValueobject(s) whosenamefield matches the given property name. If theStringobject supplied forpropnamehas a trailing wildcard character ("*"), then allNamedValueobjects whosenamefields match will be deleted. The search scope is always limited to thisContextobject.If no matching property is found, an exception is returned.
- Specified by:
delete_valuesin classContext- Parameters:
propName- name of the property to be deleted
-
get_values
Description copied from class:ContextRetrieves theNamedValueobjects whosenamefield matches the given name or name pattern. This method allows for wildcard searches, which means that there can be multiple matches and therefore multiple values returned. If the property is not found at the indicated level, the search continues up the context object tree until a match is found or allContextobjects in the chain have been exhausted.If no match is found, an error is returned and no property list is returned.
- Specified by:
get_valuesin classContext- Parameters:
startScope- aStringobject indicating the context object level at which to initiate the search for the specified properties (for example, "_USER", "_GROUP", "_SYSTEM"). Valid scope names are implementation-specific. If a scope name is omitted, the search begins with the specified context object. If the specified scope name is not found, an exception is returned.opFlags- an operation flag. The one flag that may be specified isCTX_RESTRICT_SCOPE. If this flag is specified, searching is limited to the specifiedstart_scopeor thisContextobject.propName- the property name whose values are to be retrieved.patternmay be a name or a name with a trailing wildcard character ("*").- Returns:
- an
NVListcontaining all the property values (in the form ofNamedValueobjects) whose associated property name matches the given name or name pattern - See Also:
-