Package org.apache.xml.security.transforms.implementations

Examples of org.apache.xml.security.transforms.implementations.FuncHere


         */
        try {
            Class<?>[] args = {String.class, Expression.class};
            Method installFunction = FunctionTable.class.getMethod("installFunction", args);
            if ((installFunction.getModifiers() & Modifier.STATIC) != 0) {
                Object[] params = {"here", new FuncHere()};
                installFunction.invoke(null, params);
                installed = true;
            }
        } catch (Exception ex) {
            log.debug("Error installing function using the static installFunction method", ex);
View Full Code Here


private static void registerHereFunction() {
  /**
   * Try to register our here() implementation as internal function.
   */           
  {     
      FunctionTable.installFunction("here", new FuncHere());
        if (log.isDebugEnabled())
          log.debug("Registered class " + FuncHere.class.getName()
              + " for XPath function 'here()' function in internal table");

      /* The following tweak by "Eric Olson" <ego@alum.mit.edu>
View Full Code Here

      /**
       * Method getFunction
       * @return  a New function      
       */
      public Function getFunction() {
         return new FuncHere();
      }
View Full Code Here

        Class []args={String.class, Expression.class};
        try {
      Method installFunction=FunctionTable.class.getMethod("installFunction",args);
            if ((installFunction.getModifiers() & Modifier.STATIC)!=0) {
              //xalan 1.1
                Object []params={"here",new FuncHere()};
                installFunction.invoke(null, params );
            } else {
              log.warn("Xalan new, install function not installed.");
                //TODO: Right now not a good way to install the function. Let see how this
                //is resolv, latter in xalan.
View Full Code Here

      /**
       * Method getFunction
       * @return  a New function      
       */
      public Function getFunction() {
         return new FuncHere();
      }
View Full Code Here

TOP

Related Classes of org.apache.xml.security.transforms.implementations.FuncHere

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.