NetKernel APIs


com.ten60.netkernel.urii.representation
Interface ITransrepresentor

All Superinterfaces:
IURComponent
All Known Implementing Classes:
ComplexTransreptorImpl, NKFTransreptorImpl, SimpleTransreptorImpl

public interface ITransrepresentor
extends IURComponent

A ITransrepresentor (transreptor for short) generates a new IURRepresentation containing an alternate aspect to another that implements a different aspect. Transrepresentations should not change the symatics of the data in the representation just is representation.


Method Summary
 ModuleDefinition getModule()
           
 boolean supports(IURRepresentation aFrom, Class aTo)
          Returns true if the given representation can be transrepresented using this transreptor to the given interface
 IURRepresentation transrepresent(IURRepresentation aFrom, URRequest aRequest)
          Transrepresent the given Representation
 
Methods inherited from interface com.ten60.netkernel.urii.IURComponent
destroy, initialise
 

Method Detail

getModule

public ModuleDefinition getModule()

supports

public boolean supports(IURRepresentation aFrom,
                        Class aTo)
Returns true if the given representation can be transrepresented using this transreptor to the given interface

Parameters:
aFrom - the representation to transrepresent
aTo - the interface we want a new aspect to implement

transrepresent

public IURRepresentation transrepresent(IURRepresentation aFrom,
                                        URRequest aRequest)
                                 throws NetKernelException
Transrepresent the given Representation

Parameters:
aFrom - the representation to transrepresent
aRequest - the request which necessitated this transrepresentation
Returns:
a transrepresented representation
Throws:
NetKernelException - throw if the transrepresentation fails for any reason

NetKernel APIs


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