org.apache.geronimo.gshell.command
Interface Variables

All Known Implementing Classes:
DefaultVariables

public interface Variables

Provides command instances with nested namespace for storing context.

Version:
$Rev: 574416 $ $Date: 2007-09-10 17:49:15 -0700 (Mon, 10 Sep 2007) $

Nested Class Summary
static class Variables.ImmutableVariableException
           
 
Method Summary
 boolean contains(String name)
           
 Object get(String name)
           
 Object get(String name, Object _default)
           
 boolean isCloaked(String name)
           
 boolean isMutable(String name)
           
 Iterator<String> names()
           
 Variables parent()
           
 void set(String name, Object value)
           
 void set(String name, Object value, boolean mutable)
           
 void unset(String name)
           
 

Method Detail

set

void set(String name,
         Object value)
         throws Variables.ImmutableVariableException
Throws:
Variables.ImmutableVariableException

set

void set(String name,
         Object value,
         boolean mutable)
         throws Variables.ImmutableVariableException
Throws:
Variables.ImmutableVariableException

get

Object get(String name)

get

Object get(String name,
           Object _default)

isMutable

boolean isMutable(String name)

isCloaked

boolean isCloaked(String name)

unset

void unset(String name)
           throws Variables.ImmutableVariableException
Throws:
Variables.ImmutableVariableException

contains

boolean contains(String name)

names

Iterator<String> names()

parent

Variables parent()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.