|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the method to be used when dealing which naming contexts.
Method Summary | |
void |
addBoundName(java.lang.String aName,
ComponentElement aElement)
adds a new lname in the naming context. |
void |
addChildNamingContext(java.lang.String aName,
NamingContext aContext)
adds a child naming context. |
java.util.Iterator |
getBoundNames()
returns as an iterator all names known in the naming context. |
java.util.Iterator |
getChildNamingContexts()
returns as an iterator the names of child naming contexts. |
ExternalValueReferences |
getExternalReferenceMap()
gets the ExternalReferenceMap associated to the naming context. |
java.lang.String |
getLocalName()
returns the local name of the context. |
NamingContext |
getParentNamingContext()
Naming contexts follow a tree-like structure. |
java.lang.String |
getQualifiedName()
returns the qualified name of the context. |
void |
removeBoundName(java.lang.String aName)
removes a name from the naming context. |
void |
removeChildNamingContext(java.lang.String aName)
removes a child naming context. |
ComponentElement |
resolveReference(java.lang.String aName,
Component aOrigin)
returns the element associated to a name. |
void |
setExternalReferences(ExternalValueReferences xReferences)
A map of external references can be associated to each naming context. |
void |
setParentNamingContext(NamingContext aContext)
sets a new parent naming context. |
Method Detail |
public NamingContext getParentNamingContext()
public void setParentNamingContext(NamingContext aContext)
aContext
- : the parent context. Is null for making thje current context a root context.public void addChildNamingContext(java.lang.String aName, NamingContext aContext) throws KilimException
aName
- : the local name of the naming context.aContext
- : the naming context
KilimException
- : generated if aName is null, if aName is already used, if aContext is null.public void removeChildNamingContext(java.lang.String aName) throws KilimException
aName
- : the name of the naming context to be removed.
KilimException
- : generated if aName is null or unknown.public java.util.Iterator getChildNamingContexts()
public void setExternalReferences(ExternalValueReferences xReferences)
xReferences
- : the external references map.public ExternalValueReferences getExternalReferenceMap()
public java.lang.String getQualifiedName()
public java.lang.String getLocalName()
public void addBoundName(java.lang.String aName, ComponentElement aElement) throws KilimException
aName
- : the name to be bound.aElement
- : the element.
KilimException
- : generated if aName is null or is already known.public void removeBoundName(java.lang.String aName) throws KilimException
aName
- : the name of the context to remove.
KilimException
- : generated if aName is null or unknown in the naming context.public java.util.Iterator getBoundNames()
public ComponentElement resolveReference(java.lang.String aName, Component aOrigin) throws KilimException
aName
- : the name to be resolved.aOrigin
- : the component from which the resolve request is performed (required for printing error messages)
KilimException
- : generated if aName is null or unknown.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |