|
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
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(Class aAspectClass)
Return the first aspect which implements the given interface class |
Collection |
getAspects()
Return a collection of all unique aspects that this representation exhibits |
IURMeta |
getMeta()
Return the meta for this representation |
boolean |
hasAspect(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 aspectsMethod 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 IURRepresentation
public boolean hasAspect(Class aAspectClass)
hasAspect
in interface IURRepresentation
aAspectClass
- a IURAspect class object for an aspect to test for
public IURAspect getAspect(Class aAspectClass)
getAspect
in interface IURRepresentation
public Collection getAspects()
getAspects
in interface IURRepresentation
|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |