|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The type of the NamedAssociation.public interface NamedAssociation<T>
A NamedAssociation can be looked-up in its local context (the set of associations) via a name (java.lang.String).
The Iterable<String&ht; returns the names in the association set.
Method Summary | |
---|---|
String |
contains(T entity)
Checks if the entity is present. |
boolean |
containsKey(String name)
Checks if there is an association with the given name. |
int |
count()
|
T |
get(String name)
Retrieves a named association. |
Iterable<String> |
names()
Returns the names in this set of association. |
void |
put(String name,
T entity)
Adds an assocation. |
Map<String,T> |
toMap()
Converts this NamedAssociation into a standard Java Map. |
Methods inherited from interface org.qi4j.api.entity.association.AssociationInfo |
---|
isAggregated, isImmutable, metaInfo, qualifiedName, type |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
void put(String name, T entity)
name
- The name of the associated entity.entity
- The entity for this named association.T get(String name)
name
- The name of the association.
int count()
boolean containsKey(String name)
name
- The name of the association we are checking if it exists.
String contains(T entity)
NamedAssociation
.
entity
- The entity to look for.
null
.Iterable<String> names()
Map<String,T> toMap()
NamedAssociation
into a standard Java Map.
Map
with the content of this NamedAssociation
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |