org.opensync.engine.xslt.extensions
Class Ext

java.lang.Object
  extended byorg.opensync.engine.xslt.extensions.XSLTExtensionFunction
      extended byorg.opensync.engine.xslt.extensions.Ext

public class Ext
extends XSLTExtensionFunction

Author:
warzee, chapuis

Constructor Summary
Ext()
           
 
Method Summary
static java.lang.String date_system(org.w3c.dom.NodeList args)
           
static java.lang.String date_system(net.sf.saxon.expr.XPathContext context, net.sf.saxon.om.SequenceIterator nsv)
          This function returns the current date of the system.
static java.lang.String formatDate(org.w3c.dom.NodeList args)
           
static java.lang.String formatDate(net.sf.saxon.expr.XPathContext context, net.sf.saxon.om.SequenceIterator nsv)
          This function returns a date with the specified format
Function compliant with Saxon extension API.
static java.lang.String getCodeNumeric(org.w3c.dom.NodeList args)
           
static java.lang.String getCodeNumeric(net.sf.saxon.expr.XPathContext context, net.sf.saxon.om.SequenceIterator nsv)
           
static java.lang.String getCodeString(java.lang.String source, java.lang.String table, java.lang.String fieldIDName, java.lang.String fieldName, java.lang.String fieldValue)
          getCodeString
static java.lang.String getDeviceID(org.w3c.dom.NodeList args)
           
static java.lang.String getDeviceID(net.sf.saxon.expr.XPathContext context, net.sf.saxon.om.SequenceIterator nsv)
           
static java.lang.String getETAT_LIG(org.w3c.dom.NodeList args)
           
static java.lang.String getETAT_LIG(net.sf.saxon.expr.XPathContext context, net.sf.saxon.om.SequenceIterator nsv)
           
static java.lang.String getNUMCOMM(org.w3c.dom.NodeList args)
           
static java.lang.String getNUMCOMM(net.sf.saxon.expr.XPathContext context, net.sf.saxon.om.SequenceIterator nsv)
           
static java.lang.String lastChar(org.w3c.dom.NodeList args)
           
static java.lang.String lastChar(net.sf.saxon.expr.XPathContext context, net.sf.saxon.om.SequenceIterator nsv)
          lastChar.
static java.lang.String query_autoid_check(org.w3c.dom.NodeList args)
           
static java.lang.String query_autoid_check(net.sf.saxon.expr.XPathContext context, net.sf.saxon.om.SequenceIterator nsv)
          query_autoid
Function compliant with Saxon extension API
static java.lang.String query_autoid(org.w3c.dom.NodeList args)
           
static java.lang.String query_autoid(net.sf.saxon.expr.XPathContext context, net.sf.saxon.om.SequenceIterator nsv)
          query_autoid
Function compliant with Saxon extension API
static java.lang.String query_id(org.w3c.dom.NodeList args)
          query_id returns the ID of a record based on the given input fields if it exists or an empty string if it doesn't exist.
static java.lang.String query_id(net.sf.saxon.expr.XPathContext context, net.sf.saxon.om.SequenceIterator nsv)
          query_id returns the ID of a record based on the given input fields if it exists or an empty string if it doesn't exist.
static java.lang.String removeLastChar(org.w3c.dom.NodeList args)
           
static java.lang.String removeLastChar(net.sf.saxon.expr.XPathContext context, net.sf.saxon.om.SequenceIterator nsv)
          removeLastChar.
static java.lang.String spaceLength(org.w3c.dom.NodeList args)
           
static java.lang.String spaceLength(net.sf.saxon.expr.XPathContext context, net.sf.saxon.om.SequenceIterator nsv)
          Function compliant with Saxon extension API spaceLength
static java.lang.String subString(org.w3c.dom.NodeList args)
           
static java.lang.String subString(net.sf.saxon.expr.XPathContext context, net.sf.saxon.om.SequenceIterator nsv)
          subString.
static java.lang.String subStringWithFactor(org.w3c.dom.NodeList args)
           
static java.lang.String subStringWithFactor(net.sf.saxon.expr.XPathContext context, net.sf.saxon.om.SequenceIterator nsv)
          subStringWithFactor.
static java.lang.String textWithoutLineBreak(org.w3c.dom.NodeList args)
           
static java.lang.String textWithoutLineBreak(net.sf.saxon.expr.XPathContext context, net.sf.saxon.om.SequenceIterator nsv)
          textWithoutLineBreak.
static java.lang.String truncateString(org.w3c.dom.NodeList args)
           
static java.lang.String truncateString(net.sf.saxon.expr.XPathContext context, net.sf.saxon.om.SequenceIterator nsv)
          truncateString.
static java.lang.String updateND_Link_EF_Eqt(org.w3c.dom.NodeList args)
          Update the links between PCs and their components (UC, Printers, Screens, etc).
static java.lang.String updateND_Link_EF_Eqt(net.sf.saxon.expr.XPathContext context, net.sf.saxon.om.SequenceIterator nsv)
           
static java.lang.String updateND_Link_EFandEqt_Dept(org.w3c.dom.NodeList args)
          Update the links between PCs and users.
static java.lang.String updateND_Link_EFandEqt_Dept(net.sf.saxon.expr.XPathContext context, net.sf.saxon.om.SequenceIterator nsv)
           
static java.lang.String updateND_Link_EFandEqt_User(org.w3c.dom.NodeList args)
          Update the links between PCs and users.
static java.lang.String updateND_Link_EFandEqt_User(net.sf.saxon.expr.XPathContext context, net.sf.saxon.om.SequenceIterator nsv)
           
static java.lang.String updateNetworkDiscovery(org.w3c.dom.NodeList args)
           
static java.lang.String updateNetworkDiscovery(net.sf.saxon.expr.XPathContext context, net.sf.saxon.om.SequenceIterator nsv)
           
 
Methods inherited from class org.opensync.engine.xslt.extensions.XSLTExtensionFunction
freeConnection, getConnection, getNodeList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ext

public Ext()
Method Detail

date_system

public static java.lang.String date_system(net.sf.saxon.expr.XPathContext context,
                                           net.sf.saxon.om.SequenceIterator nsv)
                                    throws net.sf.saxon.xpath.XPathException
This function returns the current date of the system.
Function compliant with Saxon extension API.

Parameters:
context - : xpath context
nsv - : empty
Returns:
String
Throws:
net.sf.saxon.xpath.XPathException

date_system

public static java.lang.String date_system(org.w3c.dom.NodeList args)

formatDate

public static java.lang.String formatDate(net.sf.saxon.expr.XPathContext context,
                                          net.sf.saxon.om.SequenceIterator nsv)
                                   throws net.sf.saxon.xpath.XPathException
This function returns a date with the specified format
Function compliant with Saxon extension API.

Parameters:
context - : xpath context
nsv - : dataDate : date to format, formatDateIn : the current format of the date in input, formatDateOut : the specified format to return the date
Returns:
String
Throws:
net.sf.saxon.xpath.XPathException

formatDate

public static java.lang.String formatDate(org.w3c.dom.NodeList args)

spaceLength

public static java.lang.String spaceLength(net.sf.saxon.expr.XPathContext context,
                                           net.sf.saxon.om.SequenceIterator nsv)
                                    throws net.sf.saxon.xpath.XPathException
Function compliant with Saxon extension API spaceLength

Parameters:
context -
nsv -
Returns:
Throws:
net.sf.saxon.xpath.XPathException

spaceLength

public static java.lang.String spaceLength(org.w3c.dom.NodeList args)

truncateString

public static java.lang.String truncateString(net.sf.saxon.expr.XPathContext context,
                                              net.sf.saxon.om.SequenceIterator nsv)
                                       throws net.sf.saxon.xpath.XPathException
truncateString.
Function compliant with Saxon extension API Actual args: data: string to truncate length: length of the returned string

Parameters:
context -
nsv -
Returns:
Throws:
net.sf.saxon.xpath.XPathException

truncateString

public static java.lang.String truncateString(org.w3c.dom.NodeList args)

subStringWithFactor

public static java.lang.String subStringWithFactor(net.sf.saxon.expr.XPathContext context,
                                                   net.sf.saxon.om.SequenceIterator nsv)
                                            throws net.sf.saxon.xpath.XPathException,
                                                   java.lang.NumberFormatException
subStringWithFactor.
Function compliant with Saxon extension API

Parameters:
context -
Returns:
Throws:
net.sf.saxon.xpath.XPathException
java.lang.NumberFormatException

subStringWithFactor

public static java.lang.String subStringWithFactor(org.w3c.dom.NodeList args)
                                            throws java.lang.NumberFormatException
Throws:
java.lang.NumberFormatException

lastChar

public static java.lang.String lastChar(net.sf.saxon.expr.XPathContext context,
                                        net.sf.saxon.om.SequenceIterator nsv)
                                 throws net.sf.saxon.xpath.XPathException,
                                        java.lang.NumberFormatException
lastChar.
Function compliant with Saxon extension API

Parameters:
context -
Returns:
String
Throws:
net.sf.saxon.xpath.XPathException
java.lang.NumberFormatException

lastChar

public static java.lang.String lastChar(org.w3c.dom.NodeList args)
                                 throws java.lang.NumberFormatException
Throws:
java.lang.NumberFormatException

removeLastChar

public static java.lang.String removeLastChar(net.sf.saxon.expr.XPathContext context,
                                              net.sf.saxon.om.SequenceIterator nsv)
                                       throws net.sf.saxon.xpath.XPathException,
                                              java.lang.NumberFormatException
removeLastChar.
Function compliant with Saxon extension API

Parameters:
context -
Returns:
String
Throws:
net.sf.saxon.xpath.XPathException
java.lang.NumberFormatException

removeLastChar

public static java.lang.String removeLastChar(org.w3c.dom.NodeList args)
                                       throws java.lang.NumberFormatException
Throws:
java.lang.NumberFormatException

subString

public static java.lang.String subString(net.sf.saxon.expr.XPathContext context,
                                         net.sf.saxon.om.SequenceIterator nsv)
                                  throws net.sf.saxon.xpath.XPathException,
                                         java.lang.NumberFormatException
subString.
Function compliant with Saxon extension API

Parameters:
context -
Returns:
String
Throws:
net.sf.saxon.xpath.XPathException
java.lang.NumberFormatException

subString

public static java.lang.String subString(org.w3c.dom.NodeList args)
                                  throws java.lang.NumberFormatException
Throws:
java.lang.NumberFormatException

query_id

public static java.lang.String query_id(net.sf.saxon.expr.XPathContext context,
                                        net.sf.saxon.om.SequenceIterator nsv)
                                 throws net.sf.saxon.xpath.XPathException,
                                        java.sql.SQLException
query_id returns the ID of a record based on the given input fields if it exists or an empty string if it doesn't exist.
Function compliant with Saxon extension API

Parameters:
context - : XPathContext
Returns:
String
Throws:
net.sf.saxon.xpath.XPathException
java.sql.SQLException

query_id

public static java.lang.String query_id(org.w3c.dom.NodeList args)
                                 throws java.sql.SQLException
query_id returns the ID of a record based on the given input fields if it exists or an empty string if it doesn't exist. The actual arguments are: String TargetSourceName, String currentTable, String pk1Name, String[] pkeys

Parameters:
args - : org.w3c.dom.NodeList
Returns:
String
Throws:
java.sql.SQLException

query_autoid

public static java.lang.String query_autoid(net.sf.saxon.expr.XPathContext context,
                                            net.sf.saxon.om.SequenceIterator nsv)
                                     throws net.sf.saxon.xpath.XPathException,
                                            java.sql.SQLException
query_autoid
Function compliant with Saxon extension API

Parameters:
context -
Returns:
Throws:
net.sf.saxon.xpath.XPathException
java.sql.SQLException

query_autoid

public static java.lang.String query_autoid(org.w3c.dom.NodeList args)
                                     throws java.sql.SQLException
Throws:
java.sql.SQLException

query_autoid_check

public static java.lang.String query_autoid_check(net.sf.saxon.expr.XPathContext context,
                                                  net.sf.saxon.om.SequenceIterator nsv)
                                           throws net.sf.saxon.xpath.XPathException,
                                                  java.sql.SQLException
query_autoid
Function compliant with Saxon extension API

Parameters:
context -
Returns:
Throws:
net.sf.saxon.xpath.XPathException
java.sql.SQLException

query_autoid_check

public static java.lang.String query_autoid_check(org.w3c.dom.NodeList args)
                                           throws java.sql.SQLException
Throws:
java.sql.SQLException

textWithoutLineBreak

public static java.lang.String textWithoutLineBreak(net.sf.saxon.expr.XPathContext context,
                                                    net.sf.saxon.om.SequenceIterator nsv)
                                             throws net.sf.saxon.xpath.XPathException,
                                                    java.sql.SQLException
textWithoutLineBreak.
Function compliant with Saxon extension API

Parameters:
context -
nsv -
Returns:
Throws:
net.sf.saxon.xpath.XPathException
java.sql.SQLException

textWithoutLineBreak

public static java.lang.String textWithoutLineBreak(org.w3c.dom.NodeList args)
                                             throws java.sql.SQLException
Throws:
java.sql.SQLException

getCodeString

public static java.lang.String getCodeString(java.lang.String source,
                                             java.lang.String table,
                                             java.lang.String fieldIDName,
                                             java.lang.String fieldName,
                                             java.lang.String fieldValue)
                                      throws java.sql.SQLException
getCodeString

Parameters:
source -
table -
fieldIDName -
fieldName -
fieldValue -
Returns:
Throws:
java.sql.SQLException

getCodeNumeric

public static java.lang.String getCodeNumeric(net.sf.saxon.expr.XPathContext context,
                                              net.sf.saxon.om.SequenceIterator nsv)
                                       throws net.sf.saxon.xpath.XPathException,
                                              java.sql.SQLException
Throws:
net.sf.saxon.xpath.XPathException
java.sql.SQLException

getCodeNumeric

public static java.lang.String getCodeNumeric(org.w3c.dom.NodeList args)
                                       throws java.sql.SQLException
Throws:
java.sql.SQLException

updateND_Link_EF_Eqt

public static java.lang.String updateND_Link_EF_Eqt(net.sf.saxon.expr.XPathContext context,
                                                    net.sf.saxon.om.SequenceIterator nsv)
                                             throws net.sf.saxon.xpath.XPathException,
                                                    java.sql.SQLException
Throws:
net.sf.saxon.xpath.XPathException
java.sql.SQLException

updateND_Link_EF_Eqt

public static java.lang.String updateND_Link_EF_Eqt(org.w3c.dom.NodeList args)
                                             throws java.sql.SQLException
Update the links between PCs and their components (UC, Printers, Screens, etc). The Pytheas database defines a father link between PCs and their components.

Parameters:
args -
Returns:
Throws:
java.sql.SQLException

updateND_Link_EFandEqt_User

public static java.lang.String updateND_Link_EFandEqt_User(net.sf.saxon.expr.XPathContext context,
                                                           net.sf.saxon.om.SequenceIterator nsv)
                                                    throws net.sf.saxon.xpath.XPathException,
                                                           java.sql.SQLException
Throws:
net.sf.saxon.xpath.XPathException
java.sql.SQLException

updateND_Link_EFandEqt_User

public static java.lang.String updateND_Link_EFandEqt_User(org.w3c.dom.NodeList args)
                                                    throws java.sql.SQLException
Update the links between PCs and users. The Pytheas database defines a relation between PCs and users.

Parameters:
args -
Returns:
Throws:
java.sql.SQLException

updateND_Link_EFandEqt_Dept

public static java.lang.String updateND_Link_EFandEqt_Dept(net.sf.saxon.expr.XPathContext context,
                                                           net.sf.saxon.om.SequenceIterator nsv)
                                                    throws net.sf.saxon.xpath.XPathException,
                                                           java.sql.SQLException
Throws:
net.sf.saxon.xpath.XPathException
java.sql.SQLException

updateND_Link_EFandEqt_Dept

public static java.lang.String updateND_Link_EFandEqt_Dept(org.w3c.dom.NodeList args)
                                                    throws java.sql.SQLException
Update the links between PCs and users. The Pytheas database defines a relation between PCs and users.

Parameters:
args -
Returns:
Throws:
java.sql.SQLException

updateNetworkDiscovery

public static java.lang.String updateNetworkDiscovery(net.sf.saxon.expr.XPathContext context,
                                                      net.sf.saxon.om.SequenceIterator nsv)
                                               throws net.sf.saxon.xpath.XPathException,
                                                      java.sql.SQLException
Throws:
net.sf.saxon.xpath.XPathException
java.sql.SQLException

updateNetworkDiscovery

public static java.lang.String updateNetworkDiscovery(org.w3c.dom.NodeList args)
                                               throws java.sql.SQLException
Throws:
java.sql.SQLException

getDeviceID

public static java.lang.String getDeviceID(net.sf.saxon.expr.XPathContext context,
                                           net.sf.saxon.om.SequenceIterator nsv)
                                    throws net.sf.saxon.xpath.XPathException,
                                           java.sql.SQLException
Throws:
net.sf.saxon.xpath.XPathException
java.sql.SQLException

getDeviceID

public static java.lang.String getDeviceID(org.w3c.dom.NodeList args)
                                    throws java.sql.SQLException
Throws:
java.sql.SQLException

getETAT_LIG

public static java.lang.String getETAT_LIG(net.sf.saxon.expr.XPathContext context,
                                           net.sf.saxon.om.SequenceIterator nsv)
                                    throws net.sf.saxon.xpath.XPathException,
                                           java.sql.SQLException
Throws:
net.sf.saxon.xpath.XPathException
java.sql.SQLException

getETAT_LIG

public static java.lang.String getETAT_LIG(org.w3c.dom.NodeList args)
                                    throws java.sql.SQLException
Throws:
java.sql.SQLException

getNUMCOMM

public static java.lang.String getNUMCOMM(net.sf.saxon.expr.XPathContext context,
                                          net.sf.saxon.om.SequenceIterator nsv)
                                   throws net.sf.saxon.xpath.XPathException,
                                          java.sql.SQLException
Throws:
net.sf.saxon.xpath.XPathException
java.sql.SQLException

getNUMCOMM

public static java.lang.String getNUMCOMM(org.w3c.dom.NodeList args)
                                   throws java.sql.SQLException
Throws:
java.sql.SQLException


Copyright © 2004 sourceforge. All Rights Reserved.