|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for AttributeRepository
implementation.
A AttributeRepository answers to questions as to wheter a
certain attribute (value) can be associated with a certain
identity (key).
Insert 'the right' copyright
Method Summary | |
boolean |
evalAttributeBinding(java.lang.String identity,
java.lang.String attribute)
Method evalAttributeBinding. |
java.util.List |
findAllAttributesFor(java.lang.String identity)
Method findAllAttributesFor. |
java.lang.String |
findFirstAttributeFor(java.lang.String identity)
Method findFirstAttributeFor. |
void |
terminate()
Terminate all Timer objects responsible for refreshing the content of the AttributeRepository. |
Method Detail |
public java.util.List findAllAttributesFor(java.lang.String identity)
identity
- The subject in question.
List
of attributes.public java.lang.String findFirstAttributeFor(java.lang.String identity)
List l = findAllAttributesFor(identity);
return l.isEmpty() ? null : (String) l.get(0);
but can be implemented in a more efficient manner.
identity
- The subject in question.
public boolean evalAttributeBinding(java.lang.String identity, java.lang.String attribute)
findAllAttributesFor(identity).contains(attribute)
identity
- The subject in question.attribute
- The attribute asked for
public void terminate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |