NetKernel APIs


org.ten60.netkernel.layer1.representation
Class SimpleRepresentationImpl

java.lang.Object
  extended byorg.ten60.netkernel.layer1.representation.SimpleRepresentationImpl
All Implemented Interfaces:
IURAspect, IURRepresentation
Direct Known Subclasses:
AccessorImpl, NKFAccessorImpl

public abstract class SimpleRepresentationImpl
extends Object
implements IURRepresentation, IURAspect

Implementation of a Representation where the only aspect is the Representation class itself- this has the problem that creating a mirror of this representation will stop this representation from being GCed so only realy useful in limited cases

See Also:
com.ten60.netkernel.component.ComponentImpl

Field Summary
protected  IURMeta mMeta
          storage of our meta
 
Constructor Summary
SimpleRepresentationImpl(IURMeta aMeta)
          Construct a new SimpleRepresentationImpl with the given meta
 
Method Summary
 IURAspect getAspect(Class aAspectClass)
          Representation only exibits interfaces on the representation itself
 Collection getAspects()
          Representation only exibits interfaces on the representation itself
 IURMeta getMeta()
          return the meta
 boolean hasAspect(Class aAspectClass)
          Representation only exibits interfaces on the representation itself
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mMeta

protected IURMeta mMeta
storage of our meta

Constructor Detail

SimpleRepresentationImpl

public SimpleRepresentationImpl(IURMeta aMeta)
Construct a new SimpleRepresentationImpl with the given meta

Method Detail

getMeta

public IURMeta getMeta()
return the meta

Specified by:
getMeta in interface IURRepresentation
Returns:
the meta for this representation

hasAspect

public final boolean hasAspect(Class aAspectClass)
Representation only exibits interfaces on the representation itself

Specified by:
hasAspect in interface IURRepresentation
Parameters:
aAspectClass - a IURAspect class object for an aspect to test for
Returns:
true if any of the aspects which this representation holds implement the given interface

getAspect

public final IURAspect getAspect(Class aAspectClass)
Representation only exibits interfaces on the representation itself

Specified by:
getAspect in interface IURRepresentation
Returns:
the aspect, null if none is found

getAspects

public final Collection getAspects()
Representation only exibits interfaces on the representation itself

Specified by:
getAspects in interface IURRepresentation

NetKernel APIs


Copyright © 2002-2004 1060 Research Ltd. All Rights Reserved.