|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.kilim.model.services.DefaultNamingContext
Field Summary | |
private java.util.HashMap |
boundNames
|
private java.util.HashMap |
childContexts
|
private ExternalValueReferences |
externalNames
|
private java.lang.String |
localName
|
private NamingContext |
parentContext
|
Constructor Summary | |
DefaultNamingContext(java.lang.String aName,
NamingContext aParent)
a public constructor for a naming context. |
|
DefaultNamingContext(java.lang.String aName,
NamingContext aParent,
ExternalValueReferences extNames)
a public constructor for a naming context. |
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 origin)
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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.lang.String localName
private NamingContext parentContext
private java.util.HashMap childContexts
private java.util.HashMap boundNames
private ExternalValueReferences externalNames
Constructor Detail |
public DefaultNamingContext(java.lang.String aName, NamingContext aParent, ExternalValueReferences extNames) throws KilimException
aName
- : the local name of the naming context.aParent
- : the parent naming context.extNames
- : a table of external references (instanciateds objects not associated to a kilim representation).
KilimException
- : generated if aName is null.public DefaultNamingContext(java.lang.String aName, NamingContext aParent) throws KilimException
aName
- : the local name of the naming context.aParent
- : the parent naming context.
KilimException
- :: generated if aName is null.Method Detail |
public NamingContext getParentNamingContext()
NamingContext
getParentNamingContext
in interface NamingContext
NamingContext.getParentNamingContext()
public void addChildNamingContext(java.lang.String aName, NamingContext aContext) throws KilimException
NamingContext
addChildNamingContext
in interface NamingContext
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.NamingContext.addChildNamingContext(String, NamingContext)
public void removeChildNamingContext(java.lang.String aName) throws KilimException
NamingContext
removeChildNamingContext
in interface NamingContext
aName
- : the name of the naming context to be removed.
KilimException
- : generated if aName is null or unknown.NamingContext.removeChildNamingContext(String)
public java.util.Iterator getChildNamingContexts()
NamingContext
getChildNamingContexts
in interface NamingContext
NamingContext.getChildNamingContexts()
public void setParentNamingContext(NamingContext aContext)
NamingContext
setParentNamingContext
in interface NamingContext
aContext
- : the parent context. Is null for making thje current context a root context.NamingContext.setParentNamingContext(NamingContext)
public void setExternalReferences(ExternalValueReferences xReferences)
NamingContext
setExternalReferences
in interface NamingContext
xReferences
- : the external references map.org.objectweb.kilim.model.services.NamingContext#setExternalReferenceMap(HashMap)
public ExternalValueReferences getExternalReferenceMap()
NamingContext
getExternalReferenceMap
in interface NamingContext
NamingContext.getExternalReferenceMap()
public java.lang.String getQualifiedName()
NamingContext
getQualifiedName
in interface NamingContext
NamingContext.getQualifiedName()
public java.lang.String getLocalName()
NamingContext
getLocalName
in interface NamingContext
NamingContext.getLocalName()
public java.lang.String toString()
Object.toString()
public void addBoundName(java.lang.String aName, ComponentElement aElement) throws KilimException
NamingContext
addBoundName
in interface NamingContext
aName
- : the name to be bound.aElement
- : the element.
KilimException
- : generated if aName is null or is already known.org.objectweb.kilim.model.services.NamingContext#addBoundName(String, Object)
public void removeBoundName(java.lang.String aName) throws KilimException
NamingContext
removeBoundName
in interface NamingContext
aName
- : the name of the context to remove.
KilimException
- : generated if aName is null or unknown in the naming context.NamingContext.removeBoundName(String)
public java.util.Iterator getBoundNames()
NamingContext
getBoundNames
in interface NamingContext
NamingContext.getBoundNames()
public ComponentElement resolveReference(java.lang.String aName, Component origin) throws KilimException
NamingContext
resolveReference
in interface NamingContext
aName
- : the name to be resolved.origin
- : the component from which the resolve request is performed (required for printing error messages)
KilimException
- : generated if aName is null or unknown.NamingContext.resolveReference(String, Component)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |