INRIA & FluxMedia

fr.fluxmedia.transmorpher.TProcessFactory
Class TProcessFactory

java.lang.Object
  |
  +--fr.fluxmedia.transmorpher.TProcessFactory.TProcessFactory

public final class TProcessFactory
extends Object


Field Summary
(package private) static int debug
          flag for debuging level
(package private)  Vector iGeneratorList
           
(package private) static int INFINITY
           
(package private) static LinearIndexedStruct listType
          name of the class of all Transmorpher built-in (and soon other) component types
(package private) static int NB_READER_RISE
           
(package private) static SAXTransformerFactory saxTFactory
          the SAXTransformerFactory
(package private) static boolean testReader
          flag when a standard input generator has been created
(package private) static boolean testSerializer
          flag when a standard output serializer has been created
(package private) static TransformerFactory tFactory
          The Transformer factory
 
Constructor Summary
TProcessFactory(LinearIndexedStruct externs, int d)
          The constructor
 
Method Summary
(package private) static void ()
          Class constructor
(package private) static SAXTransformerFactory getSAXTFactory()
          Return the sax factory
 void initFactory()
           
static TProcess newApplyProcess(String[] pIn, String[] pOut, String type, Parameters pParam, StringParameters staticAttributes)
           
static TProcess newApplyQuery(String[] pIn, String[] pOut, String type, Parameters pParam, StringParameters staticAttributes)
          Build a new query. currently only build a internal one.
static TProcess newApplyRuleset(String[] pIn, String[] pOut, String type, Parameters pParam, StringParameters staticAttributes)
          Build an new ruleset process
static TProcess newConnector(String[] pIn, String[] pOut, String type, Parameters pParam)
          Build a new Connector. currently only build a basic one.
static TProcess newDispatcher(String[] pIn, String[] pOut, String type, Parameters pParam)
          Build a new dispatcher. currently only build a basic one.
static TProcess newExternal(String[] pIn, String[] pOut, String type, Parameters pParam)
          Build a new Transformer according th the given type.
 TProcess newGenerator(String[] pOut, String type, Parameters pParam, StringParameters staticAttributes)
          Create a new generator.
 TProcess newLoop(String[] pIn, String[] pOut, String type, String pRefOn, int pCount, TProcessComposite pTemplateList)
          Create a new loop
static TProcess newMain(String[] pIn, String[] pOut, Parameters p)
          Create a new Main, Servlet, Transformer Note: there is no type here - because these two things are Transformations (and not Calls) - because we do not expect the users to create new ones...
static TProcess newProcess(String type, Object[] params)
          This method creates a TProcess object corresponding to the type.
static TProcess newSerializer(String[] pIn, String type, Parameters pParam, StringParameters staticAttributes)
           
static TProcess newServlet(String[] pIn, String[] pOut, Parameters p)
           
static TProcess newTransformer(String[] pIn, String[] pOut, Parameters p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

NB_READER_RISE

static final int NB_READER_RISE

INFINITY

static final int INFINITY

debug

static int debug
flag for debuging level

testSerializer

static boolean testSerializer
flag when a standard output serializer has been created

testReader

static boolean testReader
flag when a standard input generator has been created

iGeneratorList

Vector iGeneratorList

listType

static LinearIndexedStruct listType
name of the class of all Transmorpher built-in (and soon other) component types

tFactory

static TransformerFactory tFactory
The Transformer factory

saxTFactory

static SAXTransformerFactory saxTFactory
the SAXTransformerFactory
Constructor Detail

TProcessFactory

public TProcessFactory(LinearIndexedStruct externs,
                       int d)
The constructor
Method Detail

static void ()
Class constructor

getSAXTFactory

static final SAXTransformerFactory getSAXTFactory()
Return the sax factory

initFactory

public void initFactory()

newProcess

public static final TProcess newProcess(String type,
                                        Object[] params)
This method creates a TProcess object corresponding to the type.

newGenerator

public final TProcess newGenerator(String[] pOut,
                                   String type,
                                   Parameters pParam,
                                   StringParameters staticAttributes)
Create a new generator. Currently, this generator is a TReader. In the futur, it will be suitable to create different generator according to the type. ps : may be, the paramer must be a ParserAnswer instead of String and String[]

newSerializer

public static final TProcess newSerializer(String[] pIn,
                                           String type,
                                           Parameters pParam,
                                           StringParameters staticAttributes)

newDispatcher

public static final TProcess newDispatcher(String[] pIn,
                                           String[] pOut,
                                           String type,
                                           Parameters pParam)
Build a new dispatcher. currently only build a basic one. In the next version more complex dispatcher can be developed. (With filter, ...)

newConnector

public static final TProcess newConnector(String[] pIn,
                                          String[] pOut,
                                          String type,
                                          Parameters pParam)
Build a new Connector. currently only build a basic one. In the next version more complex Connector can be developed. (With filter, ...)

newLoop

public final TProcess newLoop(String[] pIn,
                              String[] pOut,
                              String type,
                              String pRefOn,
                              int pCount,
                              TProcessComposite pTemplateList)
Create a new loop

newExternal

public static final TProcess newExternal(String[] pIn,
                                         String[] pOut,
                                         String type,
                                         Parameters pParam)
Build a new Transformer according th the given type. Currently only build transformer with a XSL file in parameter.

newApplyQuery

public static final TProcess newApplyQuery(String[] pIn,
                                           String[] pOut,
                                           String type,
                                           Parameters pParam,
                                           StringParameters staticAttributes)
Build a new query. currently only build a internal one. In the next version more complex query can be developp.

newApplyProcess

public static final TProcess newApplyProcess(String[] pIn,
                                             String[] pOut,
                                             String type,
                                             Parameters pParam,
                                             StringParameters staticAttributes)

newApplyRuleset

public static final TProcess newApplyRuleset(String[] pIn,
                                             String[] pOut,
                                             String type,
                                             Parameters pParam,
                                             StringParameters staticAttributes)
Build an new ruleset process

newMain

public static final TProcess newMain(String[] pIn,
                                     String[] pOut,
                                     Parameters p)
Create a new Main, Servlet, Transformer Note: there is no type here - because these two things are Transformations (and not Calls) - because we do not expect the users to create new ones...

newServlet

public static final TProcess newServlet(String[] pIn,
                                        String[] pOut,
                                        Parameters p)

newTransformer

public static final TProcess newTransformer(String[] pIn,
                                            String[] pOut,
                                            Parameters p)

INRIA & FluxMedia

..no bottom yet...