NetKernel APIs


org.ten60.netkernel.xml.transrepresentation
Class StAXReaderToXXX

java.lang.Object
  extended byorg.ten60.netkernel.layer1.nkf.impl.NKFTransreptorImpl
      extended byorg.ten60.netkernel.xml.transrepresentation.StAXReaderToXXX
All Implemented Interfaces:
ITransrepresentor, IURComponent

public class StAXReaderToXXX
extends NKFTransreptorImpl

StAXReader transreptor - attempts to convert a StAXReader to any desired type.


Constructor Summary
StAXReaderToXXX()
           
 
Method Summary
 boolean supports(IURRepresentation aFrom, Class aTo)
          Returns true if the given representation can be transrepresented using this transreptor to the given interface
protected  void transrepresent(INKFConvenienceHelper context)
          Implement this method to provide the resultant representation on the response
 
Methods inherited from class org.ten60.netkernel.layer1.nkf.impl.NKFTransreptorImpl
destroy, getModule, initialise, transrepresent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StAXReaderToXXX

public StAXReaderToXXX()
Method Detail

supports

public boolean supports(IURRepresentation aFrom,
                        Class aTo)
Description copied from interface: ITransrepresentor
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

protected void transrepresent(INKFConvenienceHelper context)
                       throws Exception
Description copied from class: NKFTransreptorImpl
Implement this method to provide the resultant representation on the response

Specified by:
transrepresent in class NKFTransreptorImpl
Parameters:
context - the full NKF context for the request
Throws:
Exception - you can throw any exception you like and it will be mapped into a NetKernelException

NetKernel APIs


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