Lines Matching refs:scope

71      * This is the engine scope bindings.
79 * This is the global scope bindings.
80 * By default, a null value (which means no global scope) is used. Accessor
95 * Sets a <code>Bindings</code> of attributes for the given scope. If the value
96 * of scope is <code>ENGINE_SCOPE</code> the given <code>Bindings</code> replaces the
98 * of scope is <code>GLOBAL_SCOPE</code> the given <code>Bindings</code> replaces the
102 * @param scope The value of the scope in which the attributes are set.
104 * @throws IllegalArgumentException if scope is invalid.
105 * @throws NullPointerException if the value of scope is <code>ENGINE_SCOPE</code> and
108 public void setBindings(Bindings bindings, int scope) {
110 switch (scope) {
114 throw new NullPointerException("Engine scope cannot be null.");
122 throw new IllegalArgumentException("Invalid scope value.");
129 * the scope occurring earliest in the search order. The order
130 * is determined by the numeric value of the scope parameter (lowest
131 * scope values first.)
134 * @return The value of the attribute in the lowest scope for
136 * null if no attribute with the name exists in any scope.
151 * Gets the value of an attribute in a given scope.
154 * @param scope The scope in which to retrieve the attribute.
156 * does not exist in the given scope.
159 * if the name is empty or if the value of scope is invalid.
162 public Object getAttribute(String name, int scope) {
164 switch (scope) {
176 throw new IllegalArgumentException("Illegal scope value.");
181 * Remove an attribute in a given scope.
184 * @param scope The scope in which to remove the attribute
188 * if the name is empty or if the scope is invalid.
191 public Object removeAttribute(String name, int scope) {
193 switch (scope) {
208 throw new IllegalArgumentException("Illegal scope value.");
213 * Sets the value of an attribute in a given scope.
217 * @param scope The scope in which to set the attribute
220 * if the name is empty or if the scope is invalid.
223 public void setAttribute(String name, Object value, int scope) {
225 switch (scope) {
238 throw new IllegalArgumentException("Illegal scope value.");
273 * Get the lowest scope in which an attribute is defined.
276 * @return The lowest scope. Returns -1 if no attribute with the given
277 * name is defined in any scope.
292 * Returns the value of the <code>engineScope</code> field if specified scope is
293 * <code>ENGINE_SCOPE</code>. Returns the value of the <code>globalScope</code> field if the specified scope is
296 * @param scope The specified scope
298 * @throws IllegalArgumentException if the value of scope is invalid.
300 public Bindings getBindings(int scope) {
301 if (scope == ENGINE_SCOPE) {
303 } else if (scope == GLOBAL_SCOPE) {
306 throw new IllegalArgumentException("Illegal scope value.");