|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jxl.binding.BindingContext
public final class BindingContext
Binds Serializale objects with String name key. Supports creation and remove of subcontexts.
Field Summary | |
---|---|
static java.lang.String |
BINDING_DIR_KEY
This is the java property key to specify a directory to save bound data. |
Method Summary | |
---|---|
void |
bind(java.lang.String name,
java.io.Serializable o)
Bind name to o |
void |
checkPermission()
|
void |
destroySubcontext(java.lang.String name)
Recursively destroys all bindings and subcontexts beneath the subcontext denoted by name . |
boolean |
equals(java.lang.Object o)
An equality evaluation based on hashCode() |
static BindingContext |
getContext(javax.naming.Name n,
java.security.Permission check)
Get a BindingContext |
BindingContext |
getSubcontext(java.lang.String name)
Returns the named subcontext |
int |
hashCode()
Every BindingContext creatd with name A will here return A.hashCode() . |
boolean |
isBound(java.lang.String name)
Check if name is bound to an object. |
java.util.Set<java.lang.String> |
listBindings()
List the names of object bindings in this context |
java.util.Set<java.lang.String> |
listSubcontexts()
List the names of subcontext of this context |
java.io.Serializable |
lookup(java.lang.String name)
Get object bound to name or null if it is not bound. |
java.lang.String |
nextUniqueSubcontext()
Get a name for new subcontext |
java.lang.String |
toString()
|
void |
unbind(java.lang.String name)
Removes the binding to name . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BINDING_DIR_KEY
Installer
is
used instead.
Method Detail |
---|
public static BindingContext getContext(javax.naming.Name n, java.security.Permission check) throws BindingException
n
- Name of the context to return
BindingException
- If an error occurs in iopublic void checkPermission() throws java.lang.SecurityException
java.lang.SecurityException
public java.lang.String nextUniqueSubcontext() throws BindingException
BindingException
- if an io error occurspublic void bind(java.lang.String name, java.io.Serializable o) throws BindingException
name
to o
name
- o
-
BindingException
public java.util.Set<java.lang.String> listBindings() throws BindingException
BindingException
public java.util.Set<java.lang.String> listSubcontexts() throws BindingException
BindingException
public boolean isBound(java.lang.String name)
name is bound
to an object. Does not check subcontexts.
name
-
name
is bound to an object, false otherwisepublic java.io.Serializable lookup(java.lang.String name) throws BindingException
name
or null if it is not bound.
name
-
BindingException
public void unbind(java.lang.String name) throws BindingException
name
.
name
-
BindingException
public BindingContext getSubcontext(java.lang.String name) throws BindingException
name
-
BindingException
public void destroySubcontext(java.lang.String name) throws BindingException
name
. So if this BindingContext contained a subcontext foo
,
every binding and subcontext below foo
would be destroyed.
name
-
BindingException
public int hashCode()
A.hashCode()
.
Thus hashCode() is consistent across sessions. This is to facilitate serialization.
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |