|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.kilim.model.services.Annotations
Thids class is a simple container for annotations (i.e. a couple made of a name and a value).
Field Summary | |
private java.util.HashMap |
externalServices
|
Constructor Summary | |
Annotations()
|
Method Summary | |
void |
addAnnotation(java.lang.String aName,
java.lang.Object xService)
adds a new annotation |
java.lang.Object |
getAnnotation(java.lang.String aName)
returns an annotation. |
java.util.Iterator |
getAnnotationNames()
returns an iterator containing the names of all the currently added annotations. |
void |
removeAnnotation(java.lang.String aName)
removes an annotation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.HashMap externalServices
Constructor Detail |
public Annotations()
Object.Object()
Method Detail |
public void addAnnotation(java.lang.String aName, java.lang.Object xService) throws KilimException
aName
- : the name of the annotation to be added.xService
- : the reference of the object offering the annotation
KilimException
- : the exception is generated if the name or the reference is null or if the annotation
has already been added (It should be removed first).public void removeAnnotation(java.lang.String aName) throws KilimException
aName
- : the name of the annotation to be removed.
KilimException
- : the exception is generated if the name is null or if the annotation name is unknown.public java.lang.Object getAnnotation(java.lang.String aName) throws KilimException
aName
- : the name of the annotation to be returned.
KilimException
- : the exception is generated if the name is null.public java.util.Iterator getAnnotationNames()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |