railo.transformer.library.function
Class FunctionLibFactory

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by railo.transformer.library.function.FunctionLibFactory
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public final class FunctionLibFactory
extends DefaultHandler

Die FunctionLibFactory ist der Produzent f�r eine oder mehrere FunctionLib, d.H. �ber statische Methoden (get, getDir) k�nnen FunctionLibs geladen werden. Die FunctionLibFactory erbt sich vom DefaultHandler.


Field Summary
static String DEFAULT_SAX_PARSER
          Definiert den Default SAX Parser
 
Method Summary
 void characters(char[] ch, int start, int length)
          Geerbte Methode von org.xml.sax.ContentHandler, wird bei durchparsen des XML, zum einlesen des Content eines Body Element aufgerufen.
static FunctionLib combineFLDs(FunctionLib[] flds)
          return one FunctionLib contain content of all given Function Libs
static FunctionLib combineFLDs(Set flds)
           
 void endElement(String uri, String name, String qName)
          Geerbte Methode von org.xml.sax.ContentHandler, wird bei durchparsen des XML, beim auftreten eines End-Tag aufgerufen.
static FunctionLib[] loadFromDirectory(Resource dir)
          L�dt mehrere FunctionLib's die innerhalb eines Verzeichnisses liegen.
static FunctionLib[] loadFromDirectory(Resource dir, String saxParser)
          L�dt mehrere FunctionLib's die innerhalb eines Verzeichnisses liegen.
static FunctionLib loadFromFile(Resource file)
          L�dt eine einzelne FunctionLib.
static FunctionLib loadFromFile(Resource res, String saxParser)
          L�dt eine einzelne FunctionLib.
static FunctionLib loadFromSystem()
          L�dt die Systeminterne FLD.
static FunctionLib loadFromSystem(String saxParser)
          L�dt die Systeminterne FLD.
 void startElement(String uri, String name, String qName, Attributes atts)
          Geerbte Methode von org.xml.sax.ContentHandler, wird bei durchparsen des XML, beim Auftreten eines Start-Tag aufgerufen.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SAX_PARSER

public static final String DEFAULT_SAX_PARSER
Definiert den Default SAX Parser

See Also:
Constant Field Values
Method Detail

startElement

public void startElement(String uri,
                         String name,
                         String qName,
                         Attributes atts)
Geerbte Methode von org.xml.sax.ContentHandler, wird bei durchparsen des XML, beim Auftreten eines Start-Tag aufgerufen.

Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler
See Also:
ContentHandler.startElement(String, String, String, Attributes)

endElement

public void endElement(String uri,
                       String name,
                       String qName)
Geerbte Methode von org.xml.sax.ContentHandler, wird bei durchparsen des XML, beim auftreten eines End-Tag aufgerufen.

Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class DefaultHandler
See Also:
ContentHandler.endElement(String, String, String)

characters

public void characters(char[] ch,
                       int start,
                       int length)
Geerbte Methode von org.xml.sax.ContentHandler, wird bei durchparsen des XML, zum einlesen des Content eines Body Element aufgerufen.

Specified by:
characters in interface ContentHandler
Overrides:
characters in class DefaultHandler
See Also:
ContentHandler.characters(char[], int, int)

loadFromDirectory

public static FunctionLib[] loadFromDirectory(Resource dir)
                                       throws FunctionLibException
L�dt mehrere FunctionLib's die innerhalb eines Verzeichnisses liegen.

Parameters:
dir - Verzeichnis im dem die FunctionLib's liegen.
Returns:
FunctionLib's als Array
Throws:
FunctionLibException

loadFromDirectory

public static FunctionLib[] loadFromDirectory(Resource dir,
                                              String saxParser)
                                       throws FunctionLibException
L�dt mehrere FunctionLib's die innerhalb eines Verzeichnisses liegen.

Parameters:
dir - Verzeichnis im dem die FunctionLib's liegen.
saxParser - Definition des Sax Parser mit dem die FunctionLib's eingelesen werden sollen.
Returns:
FunctionLib's als Array
Throws:
FunctionLibException

loadFromFile

public static FunctionLib loadFromFile(Resource file)
                                throws FunctionLibException
L�dt eine einzelne FunctionLib.

Parameters:
file - FLD die geladen werden soll.
Returns:
FunctonLib
Throws:
FunctionLibException

loadFromFile

public static FunctionLib loadFromFile(Resource res,
                                       String saxParser)
                                throws FunctionLibException
L�dt eine einzelne FunctionLib.

Parameters:
res - FLD die geladen werden soll.
saxParser - Definition des Sax Parser mit dem die FunctionLib eingelsesen werden soll.
Returns:
FunctionLib
Throws:
FunctionLibException

loadFromSystem

public static FunctionLib loadFromSystem()
                                  throws FunctionLibException
L�dt die Systeminterne FLD.

Returns:
FunctionLib
Throws:
FunctionLibException

loadFromSystem

public static FunctionLib loadFromSystem(String saxParser)
                                  throws FunctionLibException
L�dt die Systeminterne FLD.

Parameters:
saxParser - Definition des Sax Parser mit dem die FunctionLib eingelsesen werden soll.
Returns:
FunctionLib
Throws:
FunctionLibException

combineFLDs

public static FunctionLib combineFLDs(FunctionLib[] flds)
return one FunctionLib contain content of all given Function Libs

Parameters:
flds -
Returns:
combined function lib

combineFLDs

public static FunctionLib combineFLDs(Set flds)


Copyright © 2012 Railo