|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.cog.gridshell.model.ScopeImpl
An implementation of Scope
| Nested Class Summary |
| Nested classes inherited from class org.globus.cog.gridshell.interfaces.Scope |
Scope.Mode |
| Field Summary |
| Fields inherited from interface org.globus.cog.gridshell.interfaces.Scope |
READ_ONLY, READ_WRITE |
| Constructor Summary | |
ScopeImpl()
Default Constructor |
|
ScopeImpl(Scope _super)
Allows a superclass to be specified |
|
| Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener pcListener)
Add a property change listener |
void |
addPropertyChangeListener(String name,
PropertyChangeListener pcListener)
Add a property change listener for propertyName |
static Scope |
createImmutableScope(Scope scope)
Creates a scope whos variables can't be modified |
Scope.Mode |
getMode(String name)
Returns the mode the variable is |
Scope |
getSuper()
Returns a super class if one is defined, otherwise returns null |
static Scope |
getSystemScope()
Returns a Scope of the system |
Set |
getUniqueValues()
Returns values (no duplicates) |
Object |
getValue(String name)
Gets the value associated with variable name for this or superclass |
Collection |
getValues()
Returns all the values (duplicates included) |
Set |
getVariableNames()
Returns a collection of the variable names for this scope and any superclass |
void |
removePropertyChangeListener(PropertyChangeListener pcListener)
Remove a property change listener |
void |
setMode(String name,
Scope.Mode value)
Sets the mode of a variable |
void |
setVariableTo(String name,
Object value)
If a variable "name" is defined in "this" sets the variable to value, next checks for the variable "name" up the superclass chain. |
boolean |
variableExists(String name)
Returns true of the variable exists either in "this" or up the super chain |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ScopeImpl(Scope _super)
_super - - the superclasspublic ScopeImpl()
| Method Detail |
public Set getVariableNames()
Scope
getVariableNames in interface Scopepublic Collection getValues()
Scope
getValues in interface Scopepublic Set getUniqueValues()
Scope
getUniqueValues in interface Scopepublic Scope getSuper()
Scope
getSuper in interface Scopepublic Object getValue(String name)
Scope
getValue in interface Scopename - - the name of the variable to look for
public void setVariableTo(String name,
Object value)
throws ScopeException
Scope
setVariableTo in interface Scopename - - the name of the variablevalue - - the value to set the variable to
ScopeException - - thrown if failed to set the variablepublic boolean variableExists(String name)
Scope
variableExists in interface Scopename -
public void addPropertyChangeListener(PropertyChangeListener pcListener)
PropertyChangeNotifier
addPropertyChangeListener in interface PropertyChangeNotifierpcListener -
public void addPropertyChangeListener(String name,
PropertyChangeListener pcListener)
PropertyChangeNotifier
addPropertyChangeListener in interface PropertyChangeNotifiername - pcListener - public void removePropertyChangeListener(PropertyChangeListener pcListener)
PropertyChangeNotifier
removePropertyChangeListener in interface PropertyChangeNotifierpcListener - public Scope.Mode getMode(String name)
Scope
getMode in interface Scopename -
public void setMode(String name,
Scope.Mode value)
Scope
setMode in interface Scopename - value - public static Scope createImmutableScope(Scope scope)
scope -
public static Scope getSystemScope()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||