NetKernel APIs


com.ten60.netkernel.urii.representation
Class MonoRepresentationImpl

java.lang.Object
  extended bycom.ten60.netkernel.urii.representation.MonoRepresentationImpl
All Implemented Interfaces:
IURRepresentation

public final class MonoRepresentationImpl
extends Object
implements IURRepresentation

Generic implementation of an IURRepresentation that has only one interface implementor


Constructor Summary
MonoRepresentationImpl(IURMeta aMeta, IURAspect aAspect)
          Construct a new RepresentationImpl
 
Method Summary
 IURAspect getAspect(Class aAspectClass)
          Return the aspect
 Collection getAspects()
          Return just the single aspect
 IURMeta getMeta()
          return the meta
 boolean hasAspect(Class aAspectClass)
          Returns true if the aspect implements the given interface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonoRepresentationImpl

public MonoRepresentationImpl(IURMeta aMeta,
                              IURAspect aAspect)
Construct a new RepresentationImpl

Parameters:
aMeta - the meta for our new representation
Method Detail

getMeta

public IURMeta getMeta()
return the meta

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

hasAspect

public boolean hasAspect(Class aAspectClass)
Returns true if the aspect implements the given interface

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 IURAspect getAspect(Class aAspectClass)
Return the aspect

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

getAspects

public Collection getAspects()
Return just the single aspect

Specified by:
getAspects in interface IURRepresentation

NetKernel APIs


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