|
NetKernel APIs |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ten60.netkernel.layer1.representation.MultiRepresentationImpl
public final class MultiRepresentationImpl
Implementation of IURRepresentation that can hold may IURAspects
| Constructor Summary | |
|---|---|
MultiRepresentationImpl(IURMeta aMeta,
int aInitialSize)
Construct a new MultiRepresentationImpl |
|
| Method Summary | |
|---|---|
void |
addAspect(IURAspect aAspect)
Add an aspect to the representation |
void |
addAspectsOf(IURRepresentation aRepresentation)
Add all aspects of another representation |
IURAspect |
getAspect(java.lang.Class aAspectClass)
Return the first aspect which implements the given interface class |
java.util.Collection |
getAspects()
Return a collection of all unique aspects that this representation exhibits |
IURMeta |
getMeta()
Return the meta for this representation |
boolean |
hasAspect(java.lang.Class aAspectClass)
Return true if this representation can return an aspect which implements the given interface |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiRepresentationImpl(IURMeta aMeta,
int aInitialSize)
aMeta - the meta the representation should holdaInitialSize - the initial size of the list to hold aspects| Method Detail |
|---|
public void addAspect(IURAspect aAspect)
aAspect - the aspect to addpublic void addAspectsOf(IURRepresentation aRepresentation)
aRepresentation - the other representationpublic IURMeta getMeta()
IURRepresentation
getMeta in interface IURRepresentationpublic boolean hasAspect(java.lang.Class aAspectClass)
hasAspect in interface IURRepresentationaAspectClass - a IURAspect class object for an aspect to test for
public IURAspect getAspect(java.lang.Class aAspectClass)
getAspect in interface IURRepresentationpublic java.util.Collection getAspects()
getAspects in interface IURRepresentation
|
NetKernel APIs |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||